rs485 test example

This commit is contained in:
wuzheng
2022-11-11 20:29:35 +08:00
parent e7175c2745
commit 8c929ba701
7 changed files with 128 additions and 18 deletions
@@ -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