gpio.h 609 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * File : 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. */
  14. #ifndef GPIO_H__
  15. #define GPIO_H__
  16. struct stm32_hw_pin_userdata
  17. {
  18. int pin;
  19. uint32_t mode;
  20. };
  21. #define PIN_USERDATA_END {-1,0}
  22. extern struct stm32_hw_pin_userdata stm32_pins[];
  23. int stm32_hw_pin_init(void);
  24. #endif