Skip to content

Commit 2505738

Browse files
jerome-pouillerjhedberg
authored andcommitted
wiseconnect: Fix use of configTICK_RATE_HZ
SL_OS_SYSTEM_TICK_RATE is specific to Wiseconnect. Equivalent in Zephyr is CONFIG_SYS_CLOCK_TICKS_PER_SEC. Note usually, SL_OS_SYSTEM_TICK_RATE == 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 3e0cda4 commit 2505738

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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 / SL_OS_SYSTEM_TICK_RATE);
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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include <stdio.h>
4141
#include "cmsis_os2.h"
4242
#include "sl_rsi_utility.h"
43-
#include "sl_si91x_os.h"
4443

4544
extern osEventFlagsId_t si91x_events;
4645
extern osEventFlagsId_t si91x_async_events;

0 commit comments

Comments
 (0)