20 lines
397 B
C
Raw Normal View History

2022-03-28 17:19:25 +08:00
#include "wm_hal.h"
#define readl(addr) ({unsigned int __v = (*(volatile unsigned int *) (addr)); __v;})
__attribute__((isr)) void CORET_IRQHandler(void)
{
readl(0xE000E010);
HAL_IncTick();
}
__attribute__((isr)) void GPIOA_IRQHandler(void)
{
HAL_GPIO_EXTI_IRQHandler(GPIOA, GPIO_PIN_0);
}
__attribute__((isr)) void GPIOB_IRQHandler(void)
{
HAL_GPIO_EXTI_IRQHandler(GPIOB, GPIO_PIN_5);
}