Skip to content

Commit 88156d6

Browse files
jerome-pouillerjhedberg
authored andcommitted
wiseconnect: Fix use of configTICK_RATE_HZ
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. Note This code is mostly the same than sys_clock_driver_init() in Zephyr (executed automatically with priority PRE_KERNEL_2 / SYSTEM_CLOCK_INIT_PRIORITY). So, we could probably drop this code at all. Upstream-status: Pending Signed-off-by: Jérôme Pouiller <[email protected]>
1 parent 6b81daf commit 88156d6

File tree

1 file changed

+1
-1
lines changed
  • wiseconnect/components/device/silabs/si91x/wireless/ahb_interface/src

1 file changed

+1
-1
lines changed

wiseconnect/components/device/silabs/si91x/wireless/ahb_interface/src/sl_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void sli_si91x_platform_init(void)
6262
DWT->CTRL |= 0x1;
6363

6464
#if (SL_SI91X_TICKLESS_MODE == 0)
65-
SysTick_Config(SystemCoreClock / configTICK_RATE_HZ);
65+
SysTick_Config(SystemCoreClock / CONFIG_SYS_CLOCK_TICKS_PER_SEC);
6666
// Set P2P Intr priority
6767
NVIC_SetPriority(SysTick_IRQn, SYSTICK_INTR_PRI);
6868
#endif

0 commit comments

Comments
 (0)