api_rt_gpio.h 383 B

123456789101112131415161718192021222324252627
  1. #ifndef _API_RT_GPIO_H_
  2. #define _API_RT_GPIO_H_
  3. #include "api_gpio.h"
  4. #include "gd32f30x.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif // __cplusplus
  8. #define GPIO_PIN_COUNT 15
  9. typedef struct
  10. {
  11. uint32_t GpioBase;
  12. uint8_t Index;
  13. } Gpio_Handle;
  14. extern Gpio_Handle const Gpios[GPIO_PIN_COUNT];
  15. void iRtGpio_Init();
  16. #ifdef __cplusplus
  17. }
  18. #endif // __cplusplus
  19. #endif