drv_gpio.h 694 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-10-25 Raman Gopalan Initial version
  9. * 2023-11-06 Raman Gopalan Abstraction for GPIO driver boilerplate
  10. */
  11. #ifndef __DRV_GPIO_H__
  12. #define __DRV_GPIO_H__
  13. #include <rtconfig.h>
  14. #ifdef RT_USING_PIN
  15. #ifndef BSP_BOARD_MIZAR32B
  16. #define AVR32_BSP_GPIO_PMIN AVR32_PIN_PA03
  17. #define AVR32_BSP_GPIO_PMAX AVR32_PIN_PB11
  18. #else
  19. #define AVR32_BSP_GPIO_PMIN AVR32_PIN_PA00
  20. #define AVR32_BSP_GPIO_PMAX AVR32_PIN_PX11
  21. #endif
  22. int rt_hw_gpio_init(void);
  23. #endif /* #ifdef RT_USING_PIN */
  24. #endif /* __DRV_GPIO_H__ */