2019-03-19 20:39:04 +08:00
|
|
|
/*
|
2021-10-14 16:31:46 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2019-03-19 20:39:04 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2019-03-19 ZYH first version
|
|
|
|
*/
|
|
|
|
|
2019-03-12 17:29:20 +08:00
|
|
|
#ifndef __DRV_IO_CONFIG_H__
|
|
|
|
#define __DRV_IO_CONFIG_H__
|
|
|
|
|
2021-10-14 16:31:46 +08:00
|
|
|
#include <rtconfig.h>
|
|
|
|
|
2019-03-12 17:29:20 +08:00
|
|
|
enum HS_GPIO_CONFIG
|
|
|
|
{
|
|
|
|
#ifdef BSP_USING_LCD
|
|
|
|
LCD_DC_PIN = 0, /* LCD DC PIN */
|
2021-10-14 16:31:46 +08:00
|
|
|
#if BSP_LCD_RST_PIN >= 0
|
|
|
|
LCD_RST_PIN,
|
|
|
|
#endif
|
|
|
|
#if BSP_LCD_BACKLIGHT_PIN >= 0
|
|
|
|
LCD_BACKLIGHT_PIN,
|
|
|
|
#endif
|
2019-03-12 17:29:20 +08:00
|
|
|
#endif
|
2019-03-18 16:58:16 +08:00
|
|
|
#ifdef BSP_SPI1_USING_SS0
|
|
|
|
SPI1_CS0_PIN,
|
|
|
|
#endif
|
|
|
|
#ifdef BSP_SPI1_USING_SS1
|
|
|
|
SPI1_CS1_PIN,
|
|
|
|
#endif
|
|
|
|
#ifdef BSP_SPI1_USING_SS2
|
|
|
|
SPI1_CS2_PIN,
|
|
|
|
#endif
|
|
|
|
#ifdef BSP_SPI1_USING_SS3
|
|
|
|
SPI1_CS3_PIN,
|
2019-03-12 17:29:20 +08:00
|
|
|
#endif
|
2021-10-14 16:31:46 +08:00
|
|
|
|
|
|
|
#ifdef BSP_USING_BRIDGE
|
|
|
|
SPI2_INT_PIN,
|
|
|
|
SPI2_READY_PIN,
|
|
|
|
#endif
|
2019-03-19 11:01:15 +08:00
|
|
|
GPIO_ALLOC_START /* index of gpio driver start */
|
2019-03-12 17:29:20 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern int io_config_init(void);
|
|
|
|
|
|
|
|
#endif
|