Skip to content

Commit

Permalink
wiseconnect: Fix use of configTICK_RATE_HZ
Browse files Browse the repository at this point in the history
configTICK_RATE_HZ is specific to Wiseconnect. Equivalent in Zephyr is
CONFIG_SYS_CLOCK_TICKS_PER_SEC.

Note usually, configTICK_RATE_HZ == 1000 while
CONFIG_SYS_CLOCK_TICKS_PER_SEC == 1024.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
  • Loading branch information
jerome-pouiller authored and jhedberg committed Feb 7, 2025
1 parent 2b717c2 commit c2adf43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void sli_si91x_platform_init(void)
DWT->CTRL |= 0x1;

#if (configUSE_TICKLESS_IDLE == 0)
SysTick_Config(SystemCoreClock / configTICK_RATE_HZ);
SysTick_Config(SystemCoreClock / CONFIG_SYS_CLOCK_TICKS_PER_SEC);
// Set P2P Intr priority
NVIC_SetPriority(SysTick_IRQn, SYSTICK_INTR_PRI);
#endif
Expand Down

0 comments on commit c2adf43

Please # to comment.