We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2fe98 commit 7223a1dCopy full SHA for 7223a1d
drivers/serial/uart_16550.c
@@ -42,7 +42,6 @@
42
#include <nuttx/serial/serial.h>
43
#include <nuttx/fs/ioctl.h>
44
#include <nuttx/serial/uart_16550.h>
45
-#include <nuttx/spinlock.h>
46
47
#include <arch/board/board.h>
48
@@ -1696,12 +1695,8 @@ static bool u16550_txempty(struct uart_dev_s *dev)
1696
1695
#ifdef HAVE_16550_CONSOLE
1697
static void u16550_putc(FAR struct u16550_s *priv, int ch)
1698
{
1699
- irqstate_t flags;
1700
-
1701
- flags = spin_lock_irqsave(NULL);
1702
while ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRE) == 0);
1703
u16550_serialout(priv, UART_THR_OFFSET, (uart_datawidth_t)ch);
1704
- spin_unlock_irqrestore(NULL, flags);
1705
}
1706
#endif
1707
0 commit comments