我已经做了初始化,如下代码:
/*初始化232串口, 用uart1*/
#if BOARD_VER_SUPPORT_COM
[uart1_com_wxj_init,DEV_ON_BASEBOARD, PROFILE_NONE],
#endif
/*初始化485串口,用uart2,4,5*/
#if BOARD_VER_SUPPORT_RS485
[uart2_init, DEV_ON_BASEBOARD, PROFILE_NONE], //RS485功能成功
[uart4_init, DEV_ON_BASEBOARD, PROFILE_NONE], //RS485功能没成功
[uart4_ctl_init, DEV_ON_BASEBOARD, PROFILE_NONE],
[uart5_init, DEV_ON_BASEBOARD, PROFILE_NONE], //RS485功能没成功
[uart5_ctl_init, DEV_ON_BASEBOARD, PROFILE_NONE],
#endif
我已经做了初始化,如下代码:
/*初始化232串口, 用uart1*/
#if BOARD_VER_SUPPORT_COM
[uart1_com_wxj_init,DEV_ON_BASEBOARD, PROFILE_NONE],
#endif
/*初始化485串口,用uart2,4,5*/
#if BOARD_VER_SUPPORT_RS485
[uart2_init, DEV_ON_BASEBOARD, PROFILE_NONE], //RS485功能成功
[uart4_init, DEV_ON_BASEBOARD, PROFILE_NONE], //RS485功能没成功
[uart4_ctl_init, DEV_ON_BASEBOARD, PROFILE_NONE],
[uart5_init, DEV_ON_BASEBOARD, PROFILE_NONE], //RS485功能没成功
[uart5_ctl_init, DEV_ON_BASEBOARD, PROFILE_NONE],
#endif
举报