16 lines
307 B
C
Raw Normal View History

2021-12-27 15:16:32 +08:00
#include "wm_hal.h"
2022-03-28 17:19:25 +08:00
extern WDG_HandleTypeDef hwdg;
2021-12-27 15:16:32 +08:00
#define readl(addr) ({unsigned int __v = (*(volatile unsigned int *) (addr)); __v;})
__attribute__((isr)) void CORET_IRQHandler(void)
{
readl(0xE000E010);
HAL_IncTick();
}
2022-03-24 12:28:12 +08:00
2022-03-28 17:19:25 +08:00
__attribute__((isr)) void WDG_IRQHandler(void)
{
HAL_WDG_IRQHandler(&hwdg);
}