drv_io_config.h 860 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-03-19 ZYH first version
  9. */
  10. #ifndef __DRV_IO_CONFIG_H__
  11. #define __DRV_IO_CONFIG_H__
  12. #include <rtconfig.h>
  13. enum HS_GPIO_CONFIG
  14. {
  15. #ifdef BSP_USING_LCD
  16. LCD_DC_PIN = 0, /* LCD DC PIN */
  17. #if BSP_LCD_RST_PIN >= 0
  18. LCD_RST_PIN,
  19. #endif
  20. #if BSP_LCD_BACKLIGHT_PIN >= 0
  21. LCD_BACKLIGHT_PIN,
  22. #endif
  23. #endif
  24. #ifdef BSP_SPI1_USING_SS0
  25. SPI1_CS0_PIN,
  26. #endif
  27. #ifdef BSP_SPI1_USING_SS1
  28. SPI1_CS1_PIN,
  29. #endif
  30. #ifdef BSP_SPI1_USING_SS2
  31. SPI1_CS2_PIN,
  32. #endif
  33. #ifdef BSP_SPI1_USING_SS3
  34. SPI1_CS3_PIN,
  35. #endif
  36. #ifdef BSP_USING_BRIDGE
  37. SPI2_INT_PIN,
  38. SPI2_READY_PIN,
  39. #endif
  40. GPIO_ALLOC_START /* index of gpio driver start */
  41. };
  42. extern int io_config_init(void);
  43. #endif