mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2025-10-29 11:33:20 +00:00
s
This commit is contained in:
parent
cad47c3431
commit
d31b75fa1f
@ -252,7 +252,7 @@ int UART_InitUARTEx(int auartindex, int baud, int parity, bool hwflowc)
|
||||
uartbuf_t* fuartbuf = UART_GetBufFromPort(auartindex);
|
||||
fuartbuf->g_uart_init_counter++;
|
||||
#ifdef UART_2_UARTS_CONCURRENT
|
||||
HAL_UART_InitEx(auartindex, baud, parity, hwflowc);
|
||||
HAL_UART_InitEx(auartindex, baud, parity, hwflowc, -1, -1);
|
||||
#else
|
||||
HAL_UART_Init(baud, parity, hwflowc, -1, -1);
|
||||
#endif
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#ifdef UART_2_UARTS_CONCURRENT
|
||||
void HAL_UART_SendByteEx(int auartindex, byte b);
|
||||
|
||||
int HAL_UART_InitEx(int auartindex, int baud, int parity, bool hwflowc);
|
||||
int HAL_UART_InitEx(int auartindex, int baud, int parity, bool hwflowc, int txOverride, int rxOverride);
|
||||
#else
|
||||
void HAL_UART_SendByte(byte b);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user