mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-27 05:37:32 +00:00
feat(openthread): add kconfig option for timing optimization
This commit is contained in:
@@ -307,10 +307,17 @@ menu "OpenThread"
|
||||
Set the DNS server IPv4 address.
|
||||
endmenu
|
||||
|
||||
config OPENTHREAD_TIMING_OPTIMIZATION
|
||||
bool "Enable timing optimization"
|
||||
default n
|
||||
help
|
||||
Select this option to enable timing optimization for link metrics / CSL features.
|
||||
|
||||
config OPENTHREAD_LINK_METRICS
|
||||
bool "Enable link metrics feature"
|
||||
default n
|
||||
select IEEE802154_TIMING_OPTIMIZATION if IEEE802154_ENABLED
|
||||
select OPENTHREAD_TIMING_OPTIMIZATION
|
||||
help
|
||||
Select this option to enable link metrics feature
|
||||
|
||||
@@ -331,6 +338,7 @@ menu "OpenThread"
|
||||
bool "Enable CSL feature"
|
||||
default n
|
||||
select IEEE802154_TIMING_OPTIMIZATION if IEEE802154_ENABLED
|
||||
select OPENTHREAD_TIMING_OPTIMIZATION
|
||||
help
|
||||
Select this option to enable CSL feature
|
||||
menu "CSL Configurations"
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
[mapping:openthread]
|
||||
archive: libopenthread.a
|
||||
entries:
|
||||
if OPENTHREAD_CSL_ENABLE = y || OPENTHREAD_LINK_METRICS = y:
|
||||
csl_tx_scheduler (noflash)
|
||||
if OPENTHREAD_TIMING_OPTIMIZATION = y:
|
||||
link_metrics (noflash)
|
||||
link_quality (noflash)
|
||||
mac (noflash)
|
||||
mac_frame (noflash)
|
||||
mesh_forwarder (noflash)
|
||||
radio (noflash)
|
||||
sub_mac (noflash)
|
||||
|
||||
if OPENTHREAD_TIMING_OPTIMIZATION = y && OPENTHREAD_RADIO = n:
|
||||
mesh_forwarder (noflash)
|
||||
csl_tx_scheduler (noflash)
|
||||
mac (noflash)
|
||||
|
||||
if OPENTHREAD_RCP_SPI = y:
|
||||
ncp_spi (noflash)
|
||||
|
||||
@@ -50,3 +50,5 @@ CONFIG_LOG_DEFAULT_LEVEL_NONE=y
|
||||
CONFIG_LIBC_NEWLIB_NANO_FORMAT=y
|
||||
CONFIG_OPENTHREAD_LOG_LEVEL_DYNAMIC=n
|
||||
CONFIG_OPENTHREAD_LOG_LEVEL_NONE=y
|
||||
CONFIG_OPENTHREAD_TIMING_OPTIMIZATION=y
|
||||
CONFIG_FREERTOS_HZ=1000
|
||||
|
||||
Reference in New Issue
Block a user