#ifndef _API_RT_GPIO_H_ #define _API_RT_GPIO_H_ #include "api_gpio.h" #include "gd32f30x.h" #ifdef __cplusplus extern "C" { #endif // __cplusplus #define GPIO_PIN_COUNT 16 typedef struct { uint32_t GpioBase; uint8_t Index; } Gpio_Handle; extern Gpio_Handle const Gpios[GPIO_PIN_COUNT]; void iRtGpio_Init(); #ifdef __cplusplus } #endif // __cplusplus #endif