gpio.h 261 B

12345678910111213141516171819
  1. #ifndef _GPIO_PIN_H__
  2. #define _GPIO_PIN_H__
  3. #include "bsp.h"
  4. typedef struct {
  5. uint32_t group;
  6. uint32_t pin;
  7. uint32_t mode;
  8. uint32_t speed;
  9. int init_value; //-1 input, 0 L, 1 H
  10. }gpio_pin_config_t;
  11. void gpio_pin_init(void);
  12. #endif /* _GPIO_PIN_H__ */