#ifndef _API_RT_CAP_H_ #define _API_RT_CAP_H_ #include "api_cap.h" #include #include "api_rt_common.h" #include "gd32f30x.h" #define APIRT_CAP_CH_NUM 2 typedef struct { uint32_t CapBase; ApiRt_Interrupt CountMaxISR; ApiRt_Interrupt ChannelISR[4]; } ApiRtCap_Handle; extern ApiRtCap_Handle Caps[1]; void iRtCap_Init(void); void iRtCap_Isr(uint8_t devIndex); #endif