Skip to content

Commit

Permalink
net: openthread: add Kconfig for CSL request time ahead
Browse files Browse the repository at this point in the history
Add OPENTHREAD_CSL_REQUEST_TIME_AHEAD Kconfig variable.

Signed-off-by: Damian Krolik <[email protected]>
  • Loading branch information
Damian-Nordic authored and henrikbrixandersen committed Oct 16, 2024
1 parent 9b4f18c commit 5d69216
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/openthread/Kconfig.thread
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ config OPENTHREAD_CSL_AUTO_SYNC
bool "CSL autosync"
default y if OPENTHREAD_CSL_RECEIVER

config OPENTHREAD_CSL_REQUEST_TIME_AHEAD
int "CSL transmitter request time ahead"
default 2000
help
Defines how many microseconds ahead should MAC deliver a CSL frame to the sub-MAC layer.

config OPENTHREAD_CSL_RECEIVE_TIME_AHEAD
int "CSL receiver wake up margin in microseconds"
default 5000
Expand Down
10 changes: 10 additions & 0 deletions modules/openthread/platform/openthread-core-zephyr-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,16 @@
*/
#define RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM 0

/**
* @def OPENTHREAD_CONFIG_MAC_CSL_REQUEST_AHEAD_US
*
* Define how many microseconds ahead should MAC deliver CSL frame to SubMac.
*
*/
#ifdef CONFIG_OPENTHREAD_CSL_REQUEST_TIME_AHEAD
#define OPENTHREAD_CONFIG_MAC_CSL_REQUEST_AHEAD_US CONFIG_OPENTHREAD_CSL_REQUEST_TIME_AHEAD
#endif /* CONFIG_OPENTHREAD_CSL_REQUEST_TIME_AHEAD */

/**
* @def OPENTHREAD_CONFIG_CSL_RECEIVE_TIME_AHEAD
*
Expand Down

0 comments on commit 5d69216

Please sign in to comment.