feat(openthread): add kconfig option for timing optimization

This commit is contained in:
Tan Yan Quan
2025-10-23 11:56:34 +08:00
parent 19fef9f5ac
commit 0153494eec
3 changed files with 16 additions and 4 deletions

View File

@@ -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"

View File

@@ -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)

View File

@@ -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