mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
drivers/serial/uart_16550.c: Remove disabling of interrupts in up_earlyserialinit. up_irqinitialize() already disable all interrupts
This commit is contained in:
@@ -1293,21 +1293,6 @@ static void u16550_putc(FAR struct u16550_s *priv, int ch)
|
|||||||
|
|
||||||
void up_earlyserialinit(void)
|
void up_earlyserialinit(void)
|
||||||
{
|
{
|
||||||
/* Configure all UARTs (except the CONSOLE UART) and disable interrupts */
|
|
||||||
|
|
||||||
#ifdef CONFIG_16550_UART0
|
|
||||||
u16550_disableuartint(&g_uart0priv, NULL);
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_16550_UART1
|
|
||||||
u16550_disableuartint(&g_uart1priv, NULL);
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_16550_UART2
|
|
||||||
u16550_disableuartint(&g_uart2priv, NULL);
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_16550_UART3
|
|
||||||
u16550_disableuartint(&g_uart3priv, NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Configuration whichever one is the console */
|
/* Configuration whichever one is the console */
|
||||||
|
|
||||||
#ifdef CONSOLE_DEV
|
#ifdef CONSOLE_DEV
|
||||||
|
|||||||
Reference in New Issue
Block a user