#ifndef _API_RT_TIMER_H_ #define _API_RT_TIMER_H_ #include "api_timer.h" #include #include "api_rt_common.h" #include "gd32f30x.h" #define GENERAL_TIMER_COUNT 3 #define SYSTEM_TICK_TIMER_INDEX GENERAL_TIMER_COUNT typedef struct { uint32_t TimerBase; ApiRt_Interrupt TickISR; } ApiRtTimer_Handle; extern ApiRtTimer_Handle Timers[GENERAL_TIMER_COUNT + 1]; void iRtTimer_Init(); void iRtTimer_Isr(uint8_t devIndex); #endif