forked from xuos/xiuos
rs485 test example
This commit is contained in:
@@ -110,6 +110,10 @@ 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));
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_LED
|
||||
IOCONFIG(BSP_LED_PIN,FUNC_GPIO5);
|
||||
#endif
|
||||
|
||||
@@ -103,6 +103,11 @@ enum HS_GPIO_CONFIG
|
||||
#define BSP_E220_M0_PIN 32
|
||||
#define BSP_E220_M1_PIN 33
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_RS485
|
||||
#define BSP_485_DIR_PIN 24
|
||||
#endif
|
||||
|
||||
extern int IoConfigInit(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user