|
| 1 | +/*$Id: //dwh/bluetooth/DWC_ble154combo/firmware/rel/2.00a-lca01/firmware/public_inc/ll_fw_config.h#1 $*/ |
| 2 | +/** |
| 3 | + ******************************************************************************** |
| 4 | + * @file ll_fw_config.h |
| 5 | + * @brief This file contains the major configurations to the BLE controller. |
| 6 | + ****************************************************************************** |
| 7 | + * @copy |
| 8 | + * This Synopsys DWC Bluetooth Low Energy Combo Link Layer/MAC software and |
| 9 | + * associated documentation ( hereinafter the "Software") is an unsupported |
| 10 | + * proprietary work of Synopsys, Inc. unless otherwise expressly agreed to in |
| 11 | + * writing between Synopsys and you. The Software IS NOT an item of Licensed |
| 12 | + * Software or a Licensed Product under any End User Software License Agreement |
| 13 | + * or Agreement for Licensed Products with Synopsys or any supplement thereto. |
| 14 | + * Synopsys is a registered trademark of Synopsys, Inc. Other names included in |
| 15 | + * the SOFTWARE may be the trademarks of their respective owners. |
| 16 | + * |
| 17 | + * Synopsys MIT License: |
| 18 | + * Copyright (c) 2020-Present Synopsys, Inc |
| 19 | + * |
| 20 | + * Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 21 | + * the Software), to deal in the Software without restriction, including without |
| 22 | + * limitation the rights to use, copy, modify, merge, publish, distribute, |
| 23 | + * sublicense, and/or sell copies of the Software, and to permit persons to whom |
| 24 | + * the Software is furnished to do so, subject to the following conditions: |
| 25 | + * |
| 26 | + * The above copyright notice and this permission notice shall be included in all |
| 27 | + * copies or substantial portions of the Software. |
| 28 | + * |
| 29 | + * THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 30 | + * IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 31 | + * FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 32 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 33 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE ARISING FROM, |
| 34 | + * OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 35 | + * |
| 36 | + * */ |
| 37 | +#ifndef INCLUDE_LL_FW_CONFIG_H |
| 38 | +#define INCLUDE_LL_FW_CONFIG_H |
| 39 | + |
| 40 | +/*************************** General Configuration *********************************/ |
| 41 | +#ifndef SUPPORT_GNRC_SCHDLR_IF |
| 42 | +#define SUPPORT_GNRC_SCHDLR_IF 1 /* Enable\Disable event EXTRNL_GNRC in Ble event manager. Enable:1 - Disable:0 */ |
| 43 | +#endif /* SUPPORT_GNRC_SCHDLR_IF */ |
| 44 | + |
| 45 | +/*************************** BLE Configuration *************************************/ |
| 46 | +/*Configurations of BLE will apply only when BLE is enabled*/ |
| 47 | +/* Roles configurations */ |
| 48 | +#ifndef SUPPORT_EXPLCT_OBSERVER_ROLE |
| 49 | +#define SUPPORT_EXPLCT_OBSERVER_ROLE 1 /* Enable\Disable Explicit observer role. Enable:1 - Disable:0 */ |
| 50 | +#endif /* SUPPORT_EXPLCT_OBSERVER_ROLE */ |
| 51 | + |
| 52 | +#ifndef SUPPORT_EXPLCT_BROADCASTER_ROLE |
| 53 | +#define SUPPORT_EXPLCT_BROADCASTER_ROLE 1 /* Enable\Disable Explicit broadcaster role. Enable:1 - Disable:0 */ |
| 54 | +#endif /* SUPPORT_EXPLCT_BROADCASTER_ROLE */ |
| 55 | + |
| 56 | +#ifndef SUPPORT_MASTER_CONNECTION |
| 57 | +#define SUPPORT_MASTER_CONNECTION 1 /* Enable\Disable Master connection role. Enable:1 - Disable:0 */ |
| 58 | +#endif /* SUPPORT_MASTER_CONNECTION */ |
| 59 | + |
| 60 | +#ifndef SUPPORT_SLAVE_CONNECTION |
| 61 | +#define SUPPORT_SLAVE_CONNECTION 1 /* Enable\Disable Slave connection role. Enable:1 - Disable:0 */ |
| 62 | +#endif /* SUPPORT_SLAVE_CONNECTION */ |
| 63 | + |
| 64 | +/* Standard features configurations */ |
| 65 | +#ifndef SUPPORT_LE_ENCRYPTION |
| 66 | +#define SUPPORT_LE_ENCRYPTION 1 /* Enable\Disable Encryption feature. Enable:1 - Disable:0 */ |
| 67 | +#endif /* SUPPORT_LE_ENCRYPTION */ |
| 68 | + |
| 69 | +#ifndef SUPPORT_PRIVACY |
| 70 | +#define SUPPORT_PRIVACY 1 /* Enable\Disable Privacy feature. Enable:1 - Disable:0 */ |
| 71 | +#endif /* SUPPORT_PRIVACY */ |
| 72 | + |
| 73 | +#ifndef SUPPORT_LE_EXTENDED_ADVERTISING |
| 74 | +#define SUPPORT_LE_EXTENDED_ADVERTISING 0 /* Enable\Disable Extended advertising feature. Enable:1 - Disable:0 */ |
| 75 | +#endif /* SUPPORT_LE_EXTENDED_ADVERTISING */ |
| 76 | + |
| 77 | +#ifndef SUPPORT_LE_PERIODIC_ADVERTISING |
| 78 | +#define SUPPORT_LE_PERIODIC_ADVERTISING 0 /* Enable\Disable Periodic advertising feature. Enable:1 - Disable:0 */ |
| 79 | +#endif /* SUPPORT_LE_PERIODIC_ADVERTISING */ |
| 80 | + |
| 81 | +#ifndef SUPPORT_LE_POWER_CLASS_1 |
| 82 | +#define SUPPORT_LE_POWER_CLASS_1 0 /* Enable\Disable Low power class 1 feature. Enable:1 - Disable:0 */ |
| 83 | +#endif /* SUPPORT_LE_POWER_CLASS_1 */ |
| 84 | + |
| 85 | +#ifndef SUPPORT_AOA_AOD |
| 86 | +#define SUPPORT_AOA_AOD 0 /* Enable\Disable AOA_AOD feature. Enable:1 - Disable:0 */ |
| 87 | +#endif /* SUPPORT_AOA_AOD */ |
| 88 | + |
| 89 | +#ifndef SUPPORT_PERIODIC_SYNC_TRANSFER |
| 90 | +#define SUPPORT_PERIODIC_SYNC_TRANSFER 0 /* Enable\Disable PAST feature. Enable:1 - Disable:0 */ |
| 91 | +#endif /* SUPPORT_PERIODIC_SYNC_TRANSFER */ |
| 92 | + |
| 93 | +#ifndef SUPPORT_SLEEP_CLOCK_ACCURCY_UPDATES |
| 94 | +#define SUPPORT_SLEEP_CLOCK_ACCURCY_UPDATES 1 /* Enable\Disable Sleep Clock Accuracy Updates Feature. Enable:1 - Disable:0 */ |
| 95 | +#endif /* SUPPORT_SLEEP_CLOCK_ACCURCY_UPDATES */ |
| 96 | + |
| 97 | +#ifndef SUPPORT_CONNECTED_ISOCHRONOUS |
| 98 | +#define SUPPORT_CONNECTED_ISOCHRONOUS 0 /* Enable\Disable Connected Isochronous Channel Feature. Enable:1 - Disable:0 */ |
| 99 | +#endif /* SUPPORT_CONNECTED_ISOCHRONOUS */ |
| 100 | + |
| 101 | +#ifndef SUPPORT_BRD_ISOCHRONOUS |
| 102 | +#define SUPPORT_BRD_ISOCHRONOUS 0 /* Enable\Disable Broadcast Isochronous Channel Feature. Enable:1 - Disable:0 */ |
| 103 | +#endif /* SUPPORT_BRD_ISOCHRONOUS */ |
| 104 | + |
| 105 | +#ifndef SUPPORT_SYNC_ISOCHRONOUS |
| 106 | +#define SUPPORT_SYNC_ISOCHRONOUS 0 /* Enable\Disable Broadcast Isochronous Synchronizer Channel Feature. Enable:1 - Disable:0 */ |
| 107 | +#endif /* SUPPORT_SYNC_ISOCHRONOUS */ |
| 108 | + |
| 109 | +#ifndef SUPPORT_LE_POWER_CONTROL |
| 110 | +#define SUPPORT_LE_POWER_CONTROL 0 /* Enable\Disable LE Power Control Feature. Enable:1 - Disable:0 */ |
| 111 | +#endif /* SUPPORT_LE_POWER_CONTROL */ |
| 112 | + |
| 113 | +#ifndef SUPPORT_CHANNEL_CLASSIFICATION |
| 114 | +#define SUPPORT_CHANNEL_CLASSIFICATION 0 |
| 115 | +#endif /* SUPPORT_CHANNEL_CLASSIFICATION */ |
| 116 | + |
| 117 | +#ifndef SUPPORT_PERIODIC_ADV_ADI |
| 118 | +#define SUPPORT_PERIODIC_ADV_ADI 0 |
| 119 | +#endif /* SUPPORT_PERIODIC_ADV_ADI */ |
| 120 | + |
| 121 | +#ifndef SUPPORT_LE_ENHANCED_CONN_UPDATE |
| 122 | +#define SUPPORT_LE_ENHANCED_CONN_UPDATE 0 |
| 123 | +#endif /* SUPPORT_LE_ENHANCED_CONN_UPDATE */ |
| 124 | + |
| 125 | +#ifndef SUPPORT_CSSA |
| 126 | +#define SUPPORT_CSSA 0 /* Enable\Disable Coding Selection Scheme on Advertising Feature. Enable:1 - Disable:0 */ |
| 127 | +#endif /* SUPPORT_CSSA */ |
| 128 | + |
| 129 | +#ifndef SUPPORT_LE_PAWR_ADVERTISER_ROLE |
| 130 | +#define SUPPORT_LE_PAWR_ADVERTISER_ROLE 0 /* Enable\Disable PAwR Advertiser role. Enable:1 - Disable:0 */ |
| 131 | +#endif /* SUPPORT_LE_PAWR_ADVERTISER_ROLE */ |
| 132 | + |
| 133 | +#ifndef SUPPORT_LE_PAWR_SYNC_ROLE |
| 134 | +#define SUPPORT_LE_PAWR_SYNC_ROLE 0 /* Enable\Disable PAwR Synchronizer role. Enable:1 - Disable:0 */ |
| 135 | +#endif /* SUPPORT_LE_PAWR_SYNC_ROLE */ |
| 136 | + |
| 137 | +#ifndef SUPPORT_CHANNEL_SOUNDING |
| 138 | +#define SUPPORT_CHANNEL_SOUNDING 0 /* Enable\Disable Channel Sounding Feature. Enable:1 - Disable:0 */ |
| 139 | +#endif /* SUPPORT_CHANNEL_SOUNDING */ |
| 140 | + |
| 141 | +#ifndef SUPPORT_FRAME_SPACE_UPDATE |
| 142 | +#define SUPPORT_FRAME_SPACE_UPDATE 0 /* Enable\Disable Frame Space Update Feature. Enable:1 - Disable:0 */ |
| 143 | +#endif /* SUPPORT_FRAME_SPACE_UPDATE */ |
| 144 | + |
| 145 | +#ifndef SUPPORT_EXT_FEATURE_SET |
| 146 | +#define SUPPORT_EXT_FEATURE_SET 0 /* Enable\Disable Extended Feature Set Exchange. Enable:1 - Disable:0 */ |
| 147 | +#endif /* SUPPORT_EXT_FEATURE_SET */ |
| 148 | + |
| 149 | +#ifndef SUPPORT_ISO_UNSEG_MODE |
| 150 | +#define SUPPORT_ISO_UNSEG_MODE 0 /* Enable\Disable Unsegmented Mode for Framed ISO PDUs. Enable: 1 - Disable: 0*/ |
| 151 | +#endif /* SUPPORT_ISO_UNSEG_MODE */ |
| 152 | + |
| 153 | +#ifndef SUPPORT_LE_ADVERTISERS_MONITORING |
| 154 | +#define SUPPORT_LE_ADVERTISERS_MONITORING 0 /* Enable\Disable Advertisers Monitoring Feature. Enable:1 - Disable:0 */ |
| 155 | +#endif /* SUPPORT_LE_ADVERTISERS_MONITORING */ |
| 156 | + |
| 157 | +/* Capabilities configurations */ |
| 158 | +#ifndef MAX_NUM_CNCRT_STAT_MCHNS |
| 159 | +#define MAX_NUM_CNCRT_STAT_MCHNS 8 /* Set maximum number of states the controller can support */ |
| 160 | +#endif /* MAX_NUM_CNCRT_STAT_MCHNS */ |
| 161 | + |
| 162 | +#ifndef USE_NON_ACCURATE_32K_SLEEP_CLK |
| 163 | +#define USE_NON_ACCURATE_32K_SLEEP_CLK 1 /* Allow to drive the sleep clock by sources other than the default crystal oscillator source.*/ |
| 164 | + /*LL can use crystal oscillator or RTC or RCO to drive the sleep clock.This selection is done via "DEFAULT_SLEEP_CLOCK_SOURCE" macro. */ |
| 165 | +#endif /* USE_NON_ACCURATE_32K_SLEEP_CLK */ |
| 166 | + |
| 167 | +#ifndef SUPPORT_CTE_DEGRADATION_API |
| 168 | +#define SUPPORT_CTE_DEGRADATION_API 1 /* Enable\Disable CTE degradation API. Enable:1 - Disable:0 */ |
| 169 | +#endif /* SUPPORT_CTE_DEGRADATION_API */ |
| 170 | + |
| 171 | +/* Non-standard features configurations */ |
| 172 | +#ifndef NUM_OF_CTSM_EMNGR_HNDLS |
| 173 | +#define NUM_OF_CTSM_EMNGR_HNDLS 1 /* Number of custom handles in event manager to be used for app specific needs */ |
| 174 | +#endif /* NUM_OF_CTSM_EMNGR_HNDLS */ |
| 175 | + |
| 176 | +#ifndef SUPPORT_AUGMENTED_BLE_MODE |
| 177 | +#define SUPPORT_AUGMENTED_BLE_MODE 1 /* Enable\Disable Augmented BLE Support. Enable:1 - Disable:0 */ |
| 178 | +#endif /* SUPPORT_AUGMENTED_BLE_MODE */ |
| 179 | + |
| 180 | +#ifndef SUPPORT_PTA |
| 181 | +#define SUPPORT_PTA 1 /* Enable\Disable PTA Feature. Enable:1 - Disable:0 */ |
| 182 | +#endif /* SUPPORT_PTA */ |
| 183 | + |
| 184 | +#ifndef SUPPORT_CONFIGURABLE_GAIN_FIX |
| 185 | +#define SUPPORT_CONFIGURABLE_GAIN_FIX 0 /* Enable\Disable configurable gain fix support */ |
| 186 | +#endif /* SUPPORT_CONFIGURABLE_GAIN_FIX */ |
| 187 | + |
| 188 | +#ifndef CHECK_ANY_MISSED_EVENT_ON_DEEP_SLEEP_EXIT |
| 189 | +#define CHECK_ANY_MISSED_EVENT_ON_DEEP_SLEEP_EXIT 1 /* Enable\Disable calling event scheduler handler function at the end of deep sleep exit*/ |
| 190 | +#endif /* CHECK_ANY_MISSED_EVENT_ON_DEEP_SLEEP_EXIT */ |
| 191 | + |
| 192 | +#ifndef LL_BASIC |
| 193 | +#define LL_BASIC 0 |
| 194 | +#endif /* LL_BASIC */ |
| 195 | + |
| 196 | +/*************************** MAC Configuration *************************************/ |
| 197 | +/*Configurations of MAC will apply only when MAC is enabled*/ |
| 198 | +#ifndef FFD_DEVICE_CONFIG |
| 199 | +#define FFD_DEVICE_CONFIG 1 /* Enable\Disable FFD:1 - RFD:0 */ |
| 200 | +#endif /* FFD_DEVICE_CONFIG */ |
| 201 | + |
| 202 | +#ifdef RFD_DEVICE_CONFIG |
| 203 | +#undef FFD_DEVICE_CONFIG |
| 204 | +#define FFD_DEVICE_CONFIG 0 /* Enable\Disable FFD:1 - RFD:0 */ |
| 205 | +#endif |
| 206 | + |
| 207 | +#ifndef RAL_NUMBER_OF_INSTANCE |
| 208 | +#define RAL_NUMBER_OF_INSTANCE 1 /* The Number of RAL instances supported */ |
| 209 | +#endif /* RAL_NUMBER_OF_INSTANCE */ |
| 210 | + |
| 211 | +#ifndef MAX_NUMBER_OF_INDIRECT_DATA |
| 212 | +#define MAX_NUMBER_OF_INDIRECT_DATA 10 /* The maximum number of supported indirect data buffers */ |
| 213 | +#endif /* MAX_NUMBER_OF_INDIRECT_DATA */ |
| 214 | + |
| 215 | +#ifndef SUPPORT_OPENTHREAD_1_2 |
| 216 | +#define SUPPORT_OPENTHREAD_1_2 1 /* Enable / disable FW parts related to new features introduced in openthread 1.2*/ |
| 217 | +#endif /* SUPPORT_OPENTHREAD_1_2 */ |
| 218 | + |
| 219 | +#ifndef SUPPORT_SEC |
| 220 | +#define SUPPORT_SEC 1 /* The MAC Security Supported : 1 - Not Supported:0 */ |
| 221 | +#endif /* SUPPORT_SEC */ |
| 222 | + |
| 223 | +#ifndef RADIO_CSMA |
| 224 | +#define RADIO_CSMA 1 /* Enable\Disable CSMA Algorithm in Radio Layer, Must be Enabled if MAC_LAYER_BUILD */ |
| 225 | +#endif /* RADIO_CSMA */ |
| 226 | + |
| 227 | +#ifndef SUPPORT_ANT_DIV |
| 228 | +#define SUPPORT_ANT_DIV 1 /* Enable/Disable Antenna Diversity Feature */ |
| 229 | +#endif /* SUPPORT_ANT_DIV */ |
| 230 | + |
| 231 | +#ifndef SUPPORT_A_MAC |
| 232 | +#define SUPPORT_A_MAC 1 |
| 233 | +#endif /* SUPPORT_A_MAC */ |
| 234 | + |
| 235 | +#ifndef SUPPORT_CONFIG_LIB |
| 236 | +#define SUPPORT_CONFIG_LIB 1 /* Enable\Disable Configurable Library feature */ |
| 237 | +#endif /* SUPPORT_CONFIG_LIB */ |
| 238 | + |
| 239 | +#ifndef SMPL_PRTCL_TEST_ENABLE |
| 240 | +#define SMPL_PRTCL_TEST_ENABLE 0 |
| 241 | +#endif /* SMPL_PRTCL_TEST_ENABLE */ |
| 242 | + |
| 243 | +#ifndef IEEE_EUI64_VENDOR_SPECIFIC_FUNC |
| 244 | +#define IEEE_EUI64_VENDOR_SPECIFIC_FUNC 1 /* Comment to disable EUI-64 vendor specific function, in this case EUI-64 is not unique */ |
| 245 | +#endif /* IEEE_EUI64_VENDOR_SPECIFIC_FUNC */ |
| 246 | + |
| 247 | +/*************************** Zigbee Configuration **********************************/ |
| 248 | +#ifndef SUPPORT_ZIGBEE_PHY_CERTIFICATION |
| 249 | +#define SUPPORT_ZIGBEE_PHY_CERTIFICATION 0 /* Enable support of hci command required to implement zigbee phy Test cases Enable:1 - Disable:0 */ |
| 250 | +#endif /* SUPPORT_ZIGBEE_PHY_CERTIFICATION */ |
| 251 | + |
| 252 | +#endif /* INCLUDE_LL_FW_CONFIG_H */ |
0 commit comments