drv_gpio.h 702 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-08-28 qiyu first version
  9. */
  10. #ifndef DRIVERS_DRV_GPIO_H_
  11. #define DRIVERS_DRV_GPIO_H_
  12. #include <board.h>
  13. #include "rtdevice.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. int rt_hw_pin_init(void);
  18. #ifndef BSP_XINT1_PIN
  19. #define BSP_XINT1_PIN -1
  20. #endif
  21. #ifndef BSP_XINT2_PIN
  22. #define BSP_XINT2_PIN -1
  23. #endif
  24. #ifndef BSP_XINT3_PIN
  25. #define BSP_XINT3_PIN -1
  26. #endif
  27. #ifndef BSP_XINT4_PIN
  28. #define BSP_XINT4_PIN -1
  29. #endif
  30. #ifndef BSP_XINT5_PIN
  31. #define BSP_XINT5_PIN -1
  32. #endif
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif /* DRIVERS_DRV_GPIO_H_ */