23 lines
454 B
C
Raw Normal View History

2022-03-28 17:19:25 +08:00
#include "wm_hal.h"
#include "FreeRTOS.h"
#include "task.h"
#include "FreeRTOSConfig.h"
#define readl(addr) ({unsigned int __v = (*(volatile unsigned int *) (addr)); __v;})
__attribute__((isr)) void CORET_IRQHandler(void)
{
readl(0xE000E010);
HAL_IncTick();
#if (INCLUDE_xTaskGetSchedulerState == 1)
if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED)
{
#endif
xPortSysTickHandler();
#if (INCLUDE_xTaskGetSchedulerState == 1)
}
#endif
}