|
| 1 | +# Adjust Stack Sizes for reduce RAM usage |
| 2 | +CONFIG_MAIN_STACK_SIZE=1024 |
| 3 | +CONFIG_IDLE_STACK_SIZE=128 |
| 4 | +CONFIG_ISR_STACK_SIZE=1024 |
| 5 | +CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1024 |
| 6 | + |
| 7 | +# Enable Extended Scanning |
| 8 | +# CONFIG_BT_EXT_ADV=y |
| 9 | + |
| 10 | +# Set maximum scan data length for Extended Scanning |
| 11 | +CONFIG_BT_EXT_SCAN_BUF_SIZE=192 |
| 12 | + |
| 13 | +# Zephyr Bluetooth LE Controller needs 16 event buffers to generate Extended |
| 14 | +# Advertising Report for receiving the complete 1650 bytes of data. |
| 15 | +# Use 4 to be able to receive a minimal extended advertising with chains. |
| 16 | +CONFIG_BT_BUF_EVT_RX_COUNT=4 |
| 17 | + |
| 18 | +# Use Zephyr Bluetooth Low Energy Controller implementation |
| 19 | +CONFIG_BT_LL_SW_SPLIT=y |
| 20 | + |
| 21 | +# Set maximum scan data length for Extended Scanning in Bluetooth LE Controller. |
| 22 | +CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=192 |
| 23 | + |
| 24 | +# Increase Zephyr Bluetooth LE Controller Rx buffer to receive complete chain |
| 25 | +# of PDUs. Need 9 for maximum of 1650 bytes, but we use 3 as minimum to receive |
| 26 | +# at least a primary PDU, an auxiliary PDU and a chain PDU. |
| 27 | +CONFIG_BT_CTLR_RX_BUFFERS=3 |
| 28 | + |
| 29 | +# Enable advanced features |
| 30 | +CONFIG_BT_CTLR_ADVANCED_FEATURES=y |
| 31 | + |
| 32 | +# Adjust execution context priorities to achieve lower Radio ISR latencies |
| 33 | +CONFIG_BT_CTLR_LLL_PRIO=0 |
| 34 | +CONFIG_BT_CTLR_ULL_HIGH_PRIO=1 |
| 35 | +CONFIG_BT_CTLR_ULL_LOW_PRIO=1 |
| 36 | + |
| 37 | +# Use just-in-time collision resolution in ticker and LLL pipeline |
| 38 | +CONFIG_BT_CTLR_LOW_LAT=n |
| 39 | +CONFIG_BT_CTLR_LOW_LAT_ULL_DONE=n |
| 40 | +CONFIG_BT_TICKER_LOW_LAT=n |
| 41 | + |
| 42 | +# Increase the below to receive interleaved advertising chains |
| 43 | +CONFIG_BT_CTLR_SCAN_AUX_SET=3 |
| 44 | +CONFIG_BT_CTLR_LOW_LAT_ULL=y |
| 45 | +# CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS=y |
| 46 | +# CONFIG_BT_CTLR_SCAN_AUX_CHAIN_COUNT=3 |
| 47 | + |
| 48 | +# Use unreserved timespace scanning |
| 49 | +CONFIG_BT_CTLR_SCAN_UNRESERVED=y |
| 50 | + |
| 51 | +# Code size reduction |
| 52 | +CONFIG_ISR_TABLES_LOCAL_DECLARATION=y |
| 53 | +CONFIG_LTO=y |
| 54 | + |
| 55 | +# Enable thread analysis |
| 56 | +CONFIG_THREAD_ANALYZER=y |
| 57 | +CONFIG_THREAD_ANALYZER_AUTO=y |
| 58 | +CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=5 |
| 59 | +CONFIG_THREAD_NAME=y |
0 commit comments