mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
16 lines
308 B
C
16 lines
308 B
C
|
|
#include "wm_hal.h"
|
|
|
|
extern ADC_HandleTypeDef hadc;
|
|
|
|
#define readl(addr) ({unsigned int __v = (*(volatile unsigned int *) (addr)); __v;})
|
|
__attribute__((isr)) void CORET_IRQHandler(void)
|
|
{
|
|
readl(0xE000E010);
|
|
HAL_IncTick();
|
|
}
|
|
|
|
__attribute__((isr)) void ADC_IRQHandler(void)
|
|
{
|
|
HAL_ADC_IRQHandler(&hadc);
|
|
} |