forked from xuos/xiuos
adapt qs-fs and qs-fx for edu-riscv64
This commit is contained in:
@@ -111,16 +111,20 @@ static struct io_config
|
||||
IOCONFIG(BSP_E220_M1_PIN, HS_GPIO(FUNC_GPIOHS11)),
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_RS485
|
||||
IOCONFIG(BSP_485_DIR_PIN,HS_GPIO(FUNC_GPIOHS12));
|
||||
#ifdef USER_TEST_RS485
|
||||
IOCONFIG(BSP_485_DIR_PIN,HS_GPIO(FUNC_GPIOHS12)),
|
||||
#elif defined SENSOR_QS_FX
|
||||
IOCONFIG(BSP_485_DIR_PIN,HS_GPIO(FUNC_GPIOHS12)),
|
||||
#elif defined SENSOR_QS_FS
|
||||
IOCONFIG(BSP_485_DIR_PIN,HS_GPIO(FUNC_GPIOHS12)),
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_LED
|
||||
IOCONFIG(BSP_LED_PIN,FUNC_GPIO5);
|
||||
IOCONFIG(BSP_LED_PIN,FUNC_GPIO5),
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_KEY
|
||||
IOCONFIG(BSP_KEY_PIN,FUNC_GPIO6);
|
||||
IOCONFIG(BSP_KEY_PIN,FUNC_GPIO6),
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -98,7 +98,11 @@ enum HS_GPIO_CONFIG {
|
||||
#define BSP_E220_M1_PIN 33
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_RS485
|
||||
#ifdef USER_TEST_RS485
|
||||
#define BSP_485_DIR_PIN 24
|
||||
#elif defined SENSOR_QS_FX
|
||||
#define BSP_485_DIR_PIN 24
|
||||
#elif defined SENSOR_QS_FS
|
||||
#define BSP_485_DIR_PIN 24
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user