From 63c4e5481f15b63a9376836bf3ec40c4642b1f68 Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Tue, 15 Dec 2020 11:38:41 +0800 Subject: [PATCH] fix no RTOS SysTick interrupt for a period of time after the OS Scheduler is started --- components/freertos/port/riscv/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/freertos/port/riscv/port.c b/components/freertos/port/riscv/port.c index 6c6ce2b583..82e1d40fa3 100644 --- a/components/freertos/port/riscv/port.c +++ b/components/freertos/port/riscv/port.c @@ -152,11 +152,11 @@ void vPortSetupTimer(void) /* configure the timer */ systimer_hal_init(); + systimer_hal_connect_alarm_counter(SYSTIMER_ALARM_0, SYSTIMER_COUNTER_1); systimer_hal_enable_counter(SYSTIMER_COUNTER_1); systimer_hal_set_alarm_period(SYSTIMER_ALARM_0, 1000000UL / CONFIG_FREERTOS_HZ); systimer_hal_select_alarm_mode(SYSTIMER_ALARM_0, SYSTIMER_ALARM_MODE_PERIOD); systimer_hal_enable_alarm_int(SYSTIMER_ALARM_0); - systimer_hal_connect_alarm_counter(SYSTIMER_ALARM_0, SYSTIMER_COUNTER_1); } void prvTaskExitError(void)