drv_gpio.h 653 B

12345678910111213141516171819202122232425
  1. /*
  2. * File : drv_gpio.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2015, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2015-01-05 Bernard the first version
  13. * 2017-11-35 ZYH update to 3.0.0
  14. */
  15. #ifndef GPIO_H__
  16. #define GPIO_H__
  17. struct stm32_hw_pin_userdata
  18. {
  19. int pin;
  20. uint32_t mode;
  21. };
  22. #define PIN_USERDATA_END {-1,0}
  23. extern struct stm32_hw_pin_userdata stm32_pins[];
  24. int rt_hw_pin_init(void);
  25. #endif