Skip to content

Commit

Permalink
SoC: Fix implementation of uart_read of hbirdv2 SoC
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <578567190@qq.com>
  • Loading branch information
fanghuaqi committed Dec 16, 2020
1 parent e77b307 commit cfa3b33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SoC/hbirdv2/Common/Source/Drivers/hbirdv2_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ uint8_t uart_read(UART_TypeDef *uart)
return -1;
}

while ((uart->LSR & 0x1) == 0);
reg = uart->RBR;

return (uint8_t)(reg & 0xFF);
Expand Down

0 comments on commit cfa3b33

Please sign in to comment.