|
| 1 | +menu "IEEE 802.15.4" |
| 2 | + visible if SOC_IEEE802154_SUPPORTED |
| 3 | + |
| 4 | + config IEEE802154_ENABLED |
| 5 | + bool "IEEE802154 Enable" |
| 6 | + default "y" if SOC_IEEE802154_SUPPORTED |
| 7 | + |
| 8 | + config IEEE802154_RX_BUFFER_SIZE |
| 9 | + int "The number of 802.15.4 receive buffers" |
| 10 | + depends on IEEE802154_ENABLED |
| 11 | + default 20 |
| 12 | + range 2 100 |
| 13 | + help |
| 14 | + The number of 802.15.4 receive buffers |
| 15 | + |
| 16 | + choice IEEE802154_CCA_MODE |
| 17 | + depends on IEEE802154_ENABLED |
| 18 | + prompt "Clear Channel Assessment (CCA) mode" |
| 19 | + default IEEE802154_CCA_ED |
| 20 | + help |
| 21 | + configure the CCA mode |
| 22 | + |
| 23 | + config IEEE802154_CCA_CARRIER |
| 24 | + bool "Carrier sense only" |
| 25 | + help |
| 26 | + configure the CCA mode to Energy above threshold |
| 27 | + |
| 28 | + config IEEE802154_CCA_ED |
| 29 | + bool "Energy above threshold" |
| 30 | + help |
| 31 | + configure the CCA mode to Energy above threshold |
| 32 | + |
| 33 | + config IEEE802154_CCA_CARRIER_OR_ED |
| 34 | + bool "Carrier sense OR energy above threshold" |
| 35 | + help |
| 36 | + configure the CCA mode to Carrier sense OR energy above threshold |
| 37 | + |
| 38 | + config IEEE802154_CCA_CARRIER_AND_ED |
| 39 | + bool "Carrier sense AND energy above threshold" |
| 40 | + help |
| 41 | + configure the CCA mode to Carrier sense AND energy above threshold |
| 42 | + endchoice |
| 43 | + |
| 44 | + config IEEE802154_CCA_MODE |
| 45 | + depends on IEEE802154_ENABLED |
| 46 | + int |
| 47 | + default 0 if IEEE802154_CCA_CARRIER |
| 48 | + default 1 if IEEE802154_CCA_ED |
| 49 | + default 2 if IEEE802154_CCA_CARRIER_OR_ED |
| 50 | + default 3 if IEEE802154_CCA_CARRIER_AND_ED |
| 51 | + |
| 52 | + config IEEE802154_CCA_THRESHOLD |
| 53 | + int "CCA detection threshold" |
| 54 | + depends on IEEE802154_ENABLED |
| 55 | + range -120 0 |
| 56 | + default -60 |
| 57 | + help |
| 58 | + set the CCA threshold, in dB |
| 59 | + |
| 60 | + config IEEE802154_PENDING_TABLE_SIZE |
| 61 | + int "Pending table size" |
| 62 | + depends on IEEE802154_ENABLED |
| 63 | + range 1 100 |
| 64 | + default 20 |
| 65 | + help |
| 66 | + set the pending table size |
| 67 | + |
| 68 | + config IEEE802154_MULTI_PAN_ENABLE |
| 69 | + bool "Enable multi-pan feature for frame filter" |
| 70 | + depends on IEEE802154_ENABLED |
| 71 | + default n |
| 72 | + help |
| 73 | + Enable IEEE802154 multi-pan |
| 74 | + |
| 75 | + config IEEE802154_TIMING_OPTIMIZATION |
| 76 | + bool "Enable throughput optimization" |
| 77 | + depends on IEEE802154_ENABLED |
| 78 | + default n |
| 79 | + help |
| 80 | + Enabling this option increases throughput by ~5% at the expense of ~2.1k |
| 81 | + IRAM code size increase. |
| 82 | + |
| 83 | + config IEEE802154_SLEEP_ENABLE |
| 84 | + # Todo: Remove when support safe power-down of the power domain (IDF-7317) |
| 85 | + bool "Enable IEEE802154 light sleep" |
| 86 | + depends on PM_ENABLE && IEEE802154_ENABLED |
| 87 | + default n |
| 88 | + help |
| 89 | + Enabling this option allows the IEEE802.15.4 module to be powered down during automatic light sleep, |
| 90 | + which reduces current consumption. |
| 91 | + |
| 92 | + menuconfig IEEE802154_DEBUG |
| 93 | + bool "Enable IEEE802154 Debug" |
| 94 | + depends on IEEE802154_ENABLED |
| 95 | + default n |
| 96 | + help |
| 97 | + Enabling this option allows different kinds of IEEE802154 debug output. |
| 98 | + All IEEE802154 debug features increase the size of the final binary. |
| 99 | + |
| 100 | + config IEEE802154_ASSERT |
| 101 | + bool "Enrich the assert information with IEEE802154 state and event" |
| 102 | + depends on IEEE802154_DEBUG |
| 103 | + default n |
| 104 | + help |
| 105 | + Enabling this option to add some probe codes in the driver, and these informations |
| 106 | + will be printed when assert. |
| 107 | + |
| 108 | + config IEEE802154_RECORD_EVENT |
| 109 | + bool "Enable record event information for debugging" |
| 110 | + depends on IEEE802154_DEBUG |
| 111 | + default n |
| 112 | + help |
| 113 | + Enabling this option to record event, when assert, the recorded event will be printed. |
| 114 | + |
| 115 | + config IEEE802154_RECORD_EVENT_SIZE |
| 116 | + int "Record event table size" |
| 117 | + depends on IEEE802154_RECORD_EVENT |
| 118 | + range 1 50 |
| 119 | + default 30 |
| 120 | + help |
| 121 | + set the record event table size |
| 122 | + |
| 123 | + config IEEE802154_RECORD_STATE |
| 124 | + bool "Enable record state information for debugging" |
| 125 | + depends on IEEE802154_DEBUG |
| 126 | + default n |
| 127 | + help |
| 128 | + Enabling this option to record state, when assert, the recorded state will be printed. |
| 129 | + |
| 130 | + config IEEE802154_RECORD_STATE_SIZE |
| 131 | + int "Record state table size" |
| 132 | + depends on IEEE802154_RECORD_STATE |
| 133 | + range 1 50 |
| 134 | + default 10 |
| 135 | + help |
| 136 | + set the record state table size |
| 137 | + |
| 138 | + config IEEE802154_RECORD_CMD |
| 139 | + bool "Enable record command information for debugging" |
| 140 | + depends on IEEE802154_DEBUG |
| 141 | + default n |
| 142 | + help |
| 143 | + Enabling this option to record the command, when assert, the recorded |
| 144 | + command will be printed. |
| 145 | + |
| 146 | + config IEEE802154_RECORD_CMD_SIZE |
| 147 | + int "Record command table size" |
| 148 | + depends on IEEE802154_RECORD_CMD |
| 149 | + range 1 50 |
| 150 | + default 10 |
| 151 | + help |
| 152 | + set the record command table size |
| 153 | + |
| 154 | + config IEEE802154_RECORD_ABORT |
| 155 | + bool "Enable record abort information for debugging" |
| 156 | + depends on IEEE802154_DEBUG |
| 157 | + default n |
| 158 | + help |
| 159 | + Enabling this option to record the abort, when assert, the recorded |
| 160 | + abort will be printed. |
| 161 | + |
| 162 | + config IEEE802154_RECORD_ABORT_SIZE |
| 163 | + int "Record abort table size" |
| 164 | + depends on IEEE802154_RECORD_ABORT |
| 165 | + range 1 50 |
| 166 | + default 10 |
| 167 | + help |
| 168 | + set the record abort table size |
| 169 | + |
| 170 | + config IEEE802154_TXRX_STATISTIC |
| 171 | + bool "Enable record tx/rx packets information for debugging" |
| 172 | + depends on IEEE802154_DEBUG |
| 173 | + default n |
| 174 | + help |
| 175 | + Enabling this option to record the tx and rx |
| 176 | +endmenu # IEEE 802.15.4 |
0 commit comments