Skip to content

Commit

Permalink
net: openthread: Add openthread CSL clock uncert
Browse files Browse the repository at this point in the history
This commit adds OPENTHREAD_PLATFORM_CSL_UNCERToption to Kconfig.
This option will allow user to configure openthreads CSL clock
uncertianity during build time.

Signed-off-by: Przemyslaw Bida <[email protected]>
  • Loading branch information
canisLupus1313 authored and nashif committed Jan 18, 2022
1 parent f8c20ec commit 00ef3d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions subsys/net/l2/openthread/Kconfig.thread
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ config OPENTHREAD_CSL_MIN_RECEIVE_ON
help
The minimum CSL receive window (in microseconds) required to receive a full IEEE 802.15.4 frame

config OPENTHREAD_PLATFORM_CSL_UNCERT
int "CSL clock uncertainty"
default 255
help
The Uncertainty of the scheduling CSL of transmission by the parent, in ±10 us units.

config OPENTHREAD_MAC_SOFTWARE_TX_SECURITY_ENABLE
bool "Enable software transmission security logic"
default y if OPENTHREAD_THREAD_VERSION_1_2
Expand Down
10 changes: 10 additions & 0 deletions subsys/net/lib/openthread/platform/openthread-core-zephyr-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@
#define OPENTHREAD_CONFIG_CSL_MIN_RECEIVE_ON CONFIG_OPENTHREAD_CSL_MIN_RECEIVE_ON
#endif /* CONFIG_OPENTHREAD_CSL_MIN_RECEIVE_ON */

/**
* @def OPENTHREAD_CONFIG_PLATFORM_CSL_UNCERT
*
* The Uncertainty of the scheduling CSL of transmission by the parent, in ±10 us units.
*/

#ifdef CONFIG_OPENTHREAD_PLATFORM_CSL_UNCERT
#define OPENTHREAD_CONFIG_PLATFORM_CSL_UNCERT CONFIG_OPENTHREAD_PLATFORM_CSL_UNCERT
#endif /* CONFIG_OPENTHREAD_PLATFORM_CSL_UNCERT */

/**
* @def OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_SECURITY_ENABLE
*
Expand Down

0 comments on commit 00ef3d2

Please sign in to comment.