2022-02-18 11:27:58 +08:00

20 lines
397 B
C

#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);
}