123456789101112131415161718192021222324252627 |
- #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 15
- 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
|