mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
adding comment for uart_wait_idle to warn about a possible dead lock
This commit is contained in:
parent
5dcf2cb319
commit
dd319debe8
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ void uart_init(UartDevice dev, uint32_t baud) {
|
||||||
uart->UART_ASR = 0;
|
uart->UART_ASR = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* This function blocks until the UART device (dev) is in the desired state (status). Make sure the desired state can be reached! */
|
||||||
void uart_wait_idle(UartDevice dev, UartVendorStatus status) {
|
void uart_wait_idle(UartDevice dev, UartVendorStatus status) {
|
||||||
while (!(get_uart_device(dev)->UART_VENDOR_STATUS & status)) {
|
while (!(get_uart_device(dev)->UART_VENDOR_STATUS & status)) {
|
||||||
/* Wait */
|
/* Wait */
|
||||||
|
|
Loading…
Reference in a new issue