update modbus project

update modbus project
This commit is contained in:
Supowang1989
2020-02-25 10:07:00 +08:00
parent ef82dbfc6d
commit c6f45a4c2e
6 changed files with 14 additions and 20 deletions

View File

@@ -52,7 +52,7 @@ vMBPortSerialEnable( BOOL xRxEnable, BOOL xTxEnable )
BOOL
xMBPortSerialInit( UCHAR ucPORT, ULONG ulBaudRate, UCHAR ucDataBits, eMBParity eParity )
{
HAL_UART_DeInit(&huart2);
//HAL_UART_DeInit(&huart2);
(void)ucPORT;
huart2.Instance = USART2;
huart2.Init.BaudRate = ulBaudRate;