feat(openthread): add config for radio statistic feature

This commit is contained in:
zwx 2023-10-16 17:35:52 +08:00
parent b27b124898
commit a1ceb251a0
3 changed files with 30 additions and 0 deletions

View File

@ -353,4 +353,12 @@ menu "OpenThread"
Select this option to enable time synchronization feature, the devices in the same Thread network could Select this option to enable time synchronization feature, the devices in the same Thread network could
sync to the same network time. sync to the same network time.
config OPENTHREAD_RADIO_STATS_ENABLE
bool "Enable Radio Statistics feature"
depends on OPENTHREAD_FTD || OPENTHREAD_MTD
default n
help
Select this option to enable the radio statistics feature, you can use radio command to print some radio
Statistics informations.
endmenu endmenu

View File

@ -579,4 +579,15 @@
#define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 1 #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 1
#endif #endif
/**
* @def OPENTHREAD_CONFIG_RADIO_STATS_ENABLE
*
* Set to 1 to enable support for Radio Statistics. Note that this option only works for OPENTHREAD_FTD and
* OPENTHREAD_MTD.
*
*/
#if CONFIG_OPENTHREAD_RADIO_STATS_ENABLE
#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE 1
#endif
#define OPENTHREAD_FTD 1 #define OPENTHREAD_FTD 1

View File

@ -263,4 +263,15 @@
#define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 1 #define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 1
#endif #endif
/**
* @def OPENTHREAD_CONFIG_RADIO_STATS_ENABLE
*
* Set to 1 to enable support for Radio Statistics. Note that this option only works for OPENTHREAD_FTD and
* OPENTHREAD_MTD.
*
*/
#if CONFIG_OPENTHREAD_RADIO_STATS_ENABLE
#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE 1
#endif
#define OPENTHREAD_MTD 1 #define OPENTHREAD_MTD 1