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 11 #ifndef __DRV_IO_CONFIG_H__ 12 #define __DRV_IO_CONFIG_H__ 13 14 #include <rtconfig.h> 15 16 enum HS_GPIO_CONFIG 17 { 18 #ifdef BSP_USING_LCD 19 LCD_DC_PIN = 0, /* LCD DC PIN */ 20 #if BSP_LCD_RST_PIN >= 0 21 LCD_RST_PIN, 22 #endif 23 #if BSP_LCD_BACKLIGHT_PIN >= 0 24 LCD_BACKLIGHT_PIN, 25 #endif 26 #endif 27 #ifdef BSP_SPI1_USING_SS0 28 SPI1_CS0_PIN, 29 #endif 30 #ifdef BSP_SPI1_USING_SS1 31 SPI1_CS1_PIN, 32 #endif 33 #ifdef BSP_SPI1_USING_SS2 34 SPI1_CS2_PIN, 35 #endif 36 #ifdef BSP_SPI1_USING_SS3 37 SPI1_CS3_PIN, 38 #endif 39 40 #ifdef BSP_USING_BRIDGE 41 SPI2_INT_PIN, 42 SPI2_READY_PIN, 43 #endif 44 GPIO_ALLOC_START /* index of gpio driver start */ 45 }; 46 47 extern int io_config_init(void); 48 49 #endif 50