api_rt_cap.h 403 B

12345678910111213141516171819202122
  1. #ifndef _API_RT_CAP_H_
  2. #define _API_RT_CAP_H_
  3. #include "api_cap.h"
  4. #include <stdint.h>
  5. #include "api_rt_common.h"
  6. #include "gd32f30x.h"
  7. #define APIRT_CAP_CH_NUM 2
  8. typedef struct
  9. {
  10. uint32_t CapBase;
  11. ApiRt_Interrupt CountMaxISR;
  12. ApiRt_Interrupt ChannelISR[4];
  13. } ApiRtCap_Handle;
  14. extern ApiRtCap_Handle Caps[1];
  15. void iRtCap_Init(void);
  16. void iRtCap_Isr(uint8_t devIndex);
  17. #endif