Skip to content

Commit

Permalink
Merge branch 'feature/add_ot_radio_stats_enable_config' into 'master'
Browse files Browse the repository at this point in the history
feat(openthread): add config for radio statistic feature

See merge request espressif/esp-idf!26489
  • Loading branch information
chshu committed Nov 1, 2023
2 parents 596101c + 1d6f771 commit 036fdf2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/openthread/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -353,4 +353,12 @@ menu "OpenThread"
Select this option to enable time synchronization feature, the devices in the same Thread network could
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
Original file line number Diff line number Diff line change
Expand Up @@ -579,4 +579,15 @@
#define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 1
#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
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,15 @@
#define OPENTHREAD_CONFIG_TIME_SYNC_ENABLE 1
#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

0 comments on commit 036fdf2

Please sign in to comment.