risc-v support all irq handler
This commit is contained in:
9
board/Sipeed_LonganNano/BSP/Src/gd32vf103_it.c
Normal file
9
board/Sipeed_LonganNano/BSP/Src/gd32vf103_it.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "tos.h"
|
||||
void SysTick_IRQHandler() {
|
||||
port_systick_config((uint32_t)k_cpu_cycle_per_tick);
|
||||
if (tos_knl_is_running()) {
|
||||
tos_knl_irq_enter();
|
||||
tos_tick_handler();
|
||||
tos_knl_irq_leave();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user