1234567891011121314151617181920212223 |
- #ifndef _API_RT_TIMER_H_
- #define _API_RT_TIMER_H_
- #include "api_timer.h"
- #include <stdint.h>
- #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
|