drv_io_config.h 657 B

123456789101112131415161718192021222324252627282930313233343536
  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. * 2019-03-19 ZYH first version
  9. */
  10. #ifndef __DRV_IO_CONFIG_H__
  11. #define __DRV_IO_CONFIG_H__
  12. enum HS_GPIO_CONFIG
  13. {
  14. #ifdef BSP_USING_LCD
  15. LCD_DC_PIN = 0, /* LCD DC PIN */
  16. #endif
  17. #ifdef BSP_SPI1_USING_SS0
  18. SPI1_CS0_PIN,
  19. #endif
  20. #ifdef BSP_SPI1_USING_SS1
  21. SPI1_CS1_PIN,
  22. #endif
  23. #ifdef BSP_SPI1_USING_SS2
  24. SPI1_CS2_PIN,
  25. #endif
  26. #ifdef BSP_SPI1_USING_SS3
  27. SPI1_CS3_PIN,
  28. #endif
  29. GPIO_ALLOC_START /* index of gpio driver start */
  30. };
  31. extern int io_config_init(void);
  32. #endif