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