mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
arch/mips/pic32mz/pic32mz-lowconsole.c: Wait for transfer complete.
Wait for the transfer to complete when using up_lowputc.
This commit is contained in:
@@ -493,5 +493,8 @@ void up_lowputc(char ch)
|
||||
|
||||
pic32mz_putreg(PIC32MZ_CONSOLE_BASE, PIC32MZ_UART_TXREG_OFFSET,
|
||||
(uint32_t)ch);
|
||||
|
||||
while ((pic32mz_getreg(PIC32MZ_CONSOLE_BASE, PIC32MZ_UART_STA_OFFSET) &
|
||||
UART_STA_UTRMT) == 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user