2017-02-06 19:42:34 +08:00
|
|
|
# Kconfig.nrf5 - Nordic Semiconductor nRF5 802.15.4 configuration options
|
|
|
|
#
|
2017-08-16 23:05:14 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2017 Nordic Semiconductor ASA
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2017-02-06 19:42:34 +08:00
|
|
|
|
2017-11-16 18:11:51 +08:00
|
|
|
menuconfig IEEE802154_NRF5
|
2017-11-23 02:01:56 +08:00
|
|
|
bool "nRF52 series IEEE 802.15.4 Driver"
|
2017-02-06 19:42:34 +08:00
|
|
|
depends on NETWORKING && SOC_NRF52840
|
2017-12-05 16:29:17 +08:00
|
|
|
select HAS_NORDIC_DRIVERS
|
2017-11-16 18:11:51 +08:00
|
|
|
default n
|
2017-02-22 18:25:39 +08:00
|
|
|
|
2017-11-16 18:11:51 +08:00
|
|
|
if IEEE802154_NRF5
|
2017-02-06 19:42:34 +08:00
|
|
|
|
|
|
|
config IEEE802154_NRF5_DRV_NAME
|
|
|
|
string "nRF52 IEEE 802.15.4 Driver's name"
|
|
|
|
default "IEEE802154_nrf5"
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
This option sets the driver name
|
2017-02-06 19:42:34 +08:00
|
|
|
|
|
|
|
config IEEE802154_NRF5_RX_STACK_SIZE
|
2017-04-25 02:30:10 +08:00
|
|
|
int "Driver's internal RX thread stack size"
|
2017-02-06 19:42:34 +08:00
|
|
|
default 800
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
This option sets the driver's stack size for its internal RX thread.
|
|
|
|
The default value should be sufficient, but in case it proves to be
|
|
|
|
a too little one, this option makes it easy to play with the size.
|
2017-02-06 19:42:34 +08:00
|
|
|
|
|
|
|
config IEEE802154_NRF5_INIT_PRIO
|
2017-05-06 06:37:53 +08:00
|
|
|
int "nRF52 IEEE 802.15.4 initialization priority"
|
2017-02-06 19:42:34 +08:00
|
|
|
default 80
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Set the initialization priority number. Do not mess with it unless
|
|
|
|
you know what you are doing.
|
2017-02-06 19:42:34 +08:00
|
|
|
|
|
|
|
choice IEEE802154_NRF5_CCA_MODE
|
|
|
|
prompt "nRF52 IEEE 802.15.4 CCA mode"
|
|
|
|
default IEEE802154_NRF5_CCA_MODE_ED
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
CCA mode
|
2017-02-06 19:42:34 +08:00
|
|
|
|
|
|
|
config IEEE802154_NRF5_CCA_MODE_ED
|
2017-05-06 06:37:53 +08:00
|
|
|
bool "Energy Above Threshold"
|
2017-02-06 19:42:34 +08:00
|
|
|
|
|
|
|
config IEEE802154_NRF5_CCA_MODE_CARRIER
|
|
|
|
bool "Carrier Seen"
|
|
|
|
|
|
|
|
config IEEE802154_NRF5_CCA_MODE_CARRIER_AND_ED
|
|
|
|
bool "Energy Above Threshold AND Carrier Seen"
|
|
|
|
|
|
|
|
config IEEE802154_NRF5_CCA_MODE_CARRIER_OR_ED
|
|
|
|
bool "Energy Above Threshold OR Carrier Seen"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config IEEE802154_NRF5_CCA_ED_THRESHOLD
|
|
|
|
int "nRF52 IEEE 802.15.4 CCA Energy Detection threshold"
|
|
|
|
default 45
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
If energy detected in a given channel is above the value then the channel
|
|
|
|
is deemed busy. The unit is defined as per 802.15.4-2006 spec.
|
2017-02-06 19:42:34 +08:00
|
|
|
|
|
|
|
config IEEE802154_NRF5_CCA_CORR_THRESHOLD
|
|
|
|
int "nRF52 IEEE 802.15.4 CCA Correlator threshold"
|
|
|
|
default 45
|
|
|
|
|
|
|
|
config IEEE802154_NRF5_CCA_CORR_LIMIT
|
|
|
|
int "nRF52 IEEE 802.15.4 CCA Correlator limit"
|
|
|
|
default 2
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Limit for occurrences above correlator threshold. When not equal to zero the
|
|
|
|
correlator based signal detect is enabled.
|
2017-02-06 19:42:34 +08:00
|
|
|
|
|
|
|
endif
|