mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
23 lines
454 B
C
23 lines
454 B
C
|
|
||
|
#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
|
||
|
}
|