net: openthread: Add Kconfigs to change values in Zephyr port
Refactor openthead zephyr config file. Add missing KConfigs. Signed-off-by: Lukasz Maciejonczyk <lukasz.maciejonczyk@nordicsemi.no>
This commit is contained in:
parent
2015eab033
commit
102084f873
|
@ -254,4 +254,28 @@ config OPENTHREAD_TMF_ADDRESS_CACHE_ENTRIES
|
|||
help
|
||||
The number of EID-to-RLOC cache entries.
|
||||
|
||||
config OPENTHREAD_LOG_PREPEND_LEVEL_ENABLE
|
||||
bool "Enable prepending the log level to all OpenThread log messages"
|
||||
help
|
||||
When enabled the OpenThread logs will be prepended with the appropriate
|
||||
log level prefix i.e. [CRIT], [WARN], [NOTE], [INFO], [DEBG].
|
||||
|
||||
config OPENTHREAD_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE
|
||||
bool "Enable software ACK timeout logic"
|
||||
default y
|
||||
help
|
||||
Set y if the radio supports AckTime event
|
||||
|
||||
config OPENTHREAD_MAC_SOFTWARE_RETRANSMIT_ENABLE
|
||||
bool "Enable software retransmission logic"
|
||||
default y
|
||||
help
|
||||
Set y if the radio supports tx retry logic with collision avoidance (CSMA)
|
||||
|
||||
config OPENTHREAD_PLATFORM_USEC_TIMER_ENABLE
|
||||
bool "Enable microsecond backoff timer implemented in platform"
|
||||
help
|
||||
Set y if the platform provides microsecond backoff timer implementation.
|
||||
|
||||
|
||||
endif # NET_L2_OPENTHREAD
|
||||
|
|
|
@ -23,7 +23,10 @@
|
|||
* The number of message buffers in the buffer pool.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS
|
||||
#ifdef CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS
|
||||
#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS \
|
||||
CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS
|
||||
|
@ -32,7 +35,10 @@
|
|||
* (set using `otSetStateChangedCallback()`).
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS CONFIG_OPENTHREAD_MAX_STATECHANGE_HANDLERS
|
||||
#ifdef CONFIG_OPENTHREAD_MAX_STATECHANGE_HANDLERS
|
||||
#define OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS \
|
||||
CONFIG_OPENTHREAD_MAX_STATECHANGE_HANDLERS
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES
|
||||
|
@ -40,7 +46,10 @@
|
|||
* The number of EID-to-RLOC cache entries.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES CONFIG_OPENTHREAD_TMF_ADDRESS_CACHE_ENTRIES
|
||||
#ifdef CONFIG_OPENTHREAD_TMF_ADDRESS_CACHE_ENTRIES
|
||||
#define OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES \
|
||||
CONFIG_OPENTHREAD_TMF_ADDRESS_CACHE_ENTRIES
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL
|
||||
|
@ -48,7 +57,9 @@
|
|||
* Define to prepend the log level to all log messages.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 0
|
||||
#ifdef CONFIG_OPENTHREAD_LOG_PREPEND_LEVEL_ENABLE
|
||||
#define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE
|
||||
|
@ -56,7 +67,9 @@
|
|||
* Define to 1 to enable software ACK timeout logic.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE 1
|
||||
#ifdef CONFIG_OPENTHREAD_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE
|
||||
#define OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE
|
||||
|
@ -64,7 +77,9 @@
|
|||
* Define to 1 to enable software retransmission logic.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE 1
|
||||
#ifdef CONFIG_OPENTHREAD_MAC_SOFTWARE_RETRANSMIT_ENABLE
|
||||
#define OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE
|
||||
|
@ -73,7 +88,9 @@
|
|||
* in platform.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE 0
|
||||
#ifdef CONFIG_OPENTHREAD_PLATFORM_USEC_TIMER_ENABLE
|
||||
#define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE 1
|
||||
#endif
|
||||
|
||||
/* Zephyr does not use OpenThreads heap. mbedTLS will use heap memory allocated
|
||||
* by Zephyr. Here, we use some dummy values to prevent OpenThread warnings.
|
||||
|
@ -140,7 +157,9 @@
|
|||
* The size of the NCP buffers.
|
||||
*
|
||||
*/
|
||||
#ifdef CONFIG_OPENTHREAD_NCP_BUFFER_SIZE
|
||||
#define OPENTHREAD_CONFIG_NCP_BUFFER_SIZE CONFIG_OPENTHREAD_NCP_BUFFER_SIZE
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION
|
||||
|
|
Loading…
Reference in a new issue