drv_gpio.h 546 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2020-2021, Bluetrum Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-11-19 greedyhao first version
  9. */
  10. #ifndef DRV_GPIO_H__
  11. #define DRV_GPIO_H__
  12. #include "drv_common.h"
  13. #include "board.h"
  14. #define __AB32_PORT(port) GPIO##port
  15. #define __AB32_GET_PIN_A(PIN) PIN
  16. #define __AB32_GET_PIN_B(PIN) 8 + PIN
  17. #define __AB32_GET_PIN_E(PIN) 13 + PIN
  18. #define __AB32_GET_PIN_F(PIN) 21 + PIN
  19. int rt_hw_pin_init(void);
  20. #endif // DRV_GPIO_H__