mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2025-10-29 11:33:20 +00:00
test
This commit is contained in:
parent
2c05d80c09
commit
ecda2584fd
@ -56,7 +56,7 @@ void DMX_Show() {
|
||||
uint32_t breakBaud = 1000000 * 8 / DMX_BREAK_DURATION_MICROS;
|
||||
HAL_SetBaud(breakBaud);
|
||||
HAL_UART_SendByte(0);
|
||||
HAL_UART_Flush();
|
||||
//HAL_UART_Flush();
|
||||
HAL_SetBaud(250000);
|
||||
|
||||
// restore UART and send DMX data
|
||||
|
||||
@ -140,7 +140,7 @@ int HAL_UART_Init(int baud, int parity, bool hwflowc)
|
||||
#endif
|
||||
};
|
||||
uart_param_config(uartnum, &uart_config);
|
||||
uart_driver_install(uartnum, 512, 512, 0, NULL, 0);
|
||||
uart_driver_install(uartnum, 4096, 4096, 0, NULL, 0);
|
||||
uart_enable_rx_intr(uartnum);
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user