gpio.h 433 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2015-01-05 Bernard the first version
  9. */
  10. #ifndef GPIO_H__
  11. #define GPIO_H__
  12. struct stm32_hw_pin_userdata
  13. {
  14. int pin;
  15. uint32_t mode;
  16. };
  17. #define PIN_USERDATA_END {-1,0}
  18. extern struct stm32_hw_pin_userdata stm32_pins[];
  19. int stm32_hw_pin_init(void);
  20. #endif