diff --git a/arch/arm/src/a1x/a1x_serial.c b/arch/arm/src/a1x/a1x_serial.c index 0bd511f2c25..79101a7dc6b 100644 --- a/arch/arm/src/a1x/a1x_serial.c +++ b/arch/arm/src/a1x/a1x_serial.c @@ -1433,8 +1433,10 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Funtions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in debug so that the @@ -1514,6 +1516,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/am335x/am335x_serial.c b/arch/arm/src/am335x/am335x_serial.c index 2926fcf3154..4af56ac967c 100644 --- a/arch/arm/src/am335x/am335x_serial.c +++ b/arch/arm/src/am335x/am335x_serial.c @@ -1266,8 +1266,10 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in debug so that the @@ -1333,6 +1335,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/c5471/c5471_serial.c b/arch/arm/src/c5471/c5471_serial.c index 1b47bcd6278..f9fced93423 100644 --- a/arch/arm/src/c5471/c5471_serial.c +++ b/arch/arm/src/c5471/c5471_serial.c @@ -792,6 +792,8 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Funtions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_serialinit * @@ -810,6 +812,7 @@ void up_earlyserialinit(void) CONSOLE_DEV.isconsole = true; up_setup(&CONSOLE_DEV); } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/dm320/dm320_serial.c b/arch/arm/src/dm320/dm320_serial.c index f45fc7aeece..c0aef179c83 100644 --- a/arch/arm/src/dm320/dm320_serial.c +++ b/arch/arm/src/dm320/dm320_serial.c @@ -706,8 +706,10 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Funtions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in @@ -724,6 +726,7 @@ void up_earlyserialinit(void) CONSOLE_DEV.isconsole = true; up_setup(&CONSOLE_DEV); } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/efm32/efm32_leserial.c b/arch/arm/src/efm32/efm32_leserial.c index fcd876056e6..c8c41c8c9f9 100644 --- a/arch/arm/src/efm32/efm32_leserial.c +++ b/arch/arm/src/efm32/efm32_leserial.c @@ -748,6 +748,8 @@ static bool efm32_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -778,6 +780,7 @@ void up_earlyserialinit(void) efm32_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/imx1/imx_serial.c b/arch/arm/src/imx1/imx_serial.c index 23a8e26cb11..98f04d8536a 100644 --- a/arch/arm/src/imx1/imx_serial.c +++ b/arch/arm/src/imx1/imx_serial.c @@ -1060,8 +1060,10 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Funtions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in @@ -1127,6 +1129,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/kl/kl_serial.c b/arch/arm/src/kl/kl_serial.c index 7072286ec28..aa5556792be 100644 --- a/arch/arm/src/kl/kl_serial.c +++ b/arch/arm/src/kl/kl_serial.c @@ -794,6 +794,8 @@ static bool up_txready(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -836,6 +838,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/lc823450/lc823450_serial.c b/arch/arm/src/lc823450/lc823450_serial.c index 781a9ff9665..950e4ae93e0 100644 --- a/arch/arm/src/lc823450/lc823450_serial.c +++ b/arch/arm/src/lc823450/lc823450_serial.c @@ -1250,8 +1250,10 @@ retry: * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in @@ -1296,6 +1298,7 @@ void up_earlyserialinit(void) CONSOLE_DEV.isconsole = true; up_setup(&CONSOLE_DEV); } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/lpc214x/lpc214x_serial.c b/arch/arm/src/lpc214x/lpc214x_serial.c index 26c764293c5..99fd4354ed3 100644 --- a/arch/arm/src/lpc214x/lpc214x_serial.c +++ b/arch/arm/src/lpc214x/lpc214x_serial.c @@ -731,8 +731,10 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Funtions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in @@ -760,6 +762,7 @@ void up_earlyserialinit(void) CONSOLE_DEV.isconsole = true; up_setup(&CONSOLE_DEV); } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/lpc2378/lpc23xx_serial.c b/arch/arm/src/lpc2378/lpc23xx_serial.c index e9fd113c30e..8005b58334e 100644 --- a/arch/arm/src/lpc2378/lpc23xx_serial.c +++ b/arch/arm/src/lpc2378/lpc23xx_serial.c @@ -845,8 +845,10 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Funtions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in @@ -881,6 +883,7 @@ void up_earlyserialinit(void) CONSOLE_DEV.isconsole = true; up_setup(&CONSOLE_DEV); } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/lpc31xx/lpc31_serial.c b/arch/arm/src/lpc31xx/lpc31_serial.c index 3ca5ae0fe2f..e44898b417a 100644 --- a/arch/arm/src/lpc31xx/lpc31_serial.c +++ b/arch/arm/src/lpc31xx/lpc31_serial.c @@ -750,6 +750,8 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -778,6 +780,7 @@ void up_earlyserialinit(void) up_setup(&g_uartport); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/nuc1xx/nuc_serial.c b/arch/arm/src/nuc1xx/nuc_serial.c index a56ab6e373e..3a7dd4622a4 100644 --- a/arch/arm/src/nuc1xx/nuc_serial.c +++ b/arch/arm/src/nuc1xx/nuc_serial.c @@ -997,8 +997,10 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Funtions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in debug so that the @@ -1019,6 +1021,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/samd2l2/sam_serial.c b/arch/arm/src/samd2l2/sam_serial.c index 95f23c3074a..18a117e7286 100644 --- a/arch/arm/src/samd2l2/sam_serial.c +++ b/arch/arm/src/samd2l2/sam_serial.c @@ -955,6 +955,8 @@ static bool sam_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -996,6 +998,7 @@ void up_earlyserialinit(void) CONSOLE_DEV.isconsole = true; #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/samd5e5/sam_serial.c b/arch/arm/src/samd5e5/sam_serial.c index 880dfb583fb..71edda71ef2 100644 --- a/arch/arm/src/samd5e5/sam_serial.c +++ b/arch/arm/src/samd5e5/sam_serial.c @@ -1004,6 +1004,8 @@ static bool sam_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -1051,6 +1053,7 @@ void up_earlyserialinit(void) CONSOLE_DEV.isconsole = true; #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/arm/src/str71x/str71x_serial.c b/arch/arm/src/str71x/str71x_serial.c index d2d40b94383..45769598e4d 100644 --- a/arch/arm/src/str71x/str71x_serial.c +++ b/arch/arm/src/str71x/str71x_serial.c @@ -879,8 +879,10 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** - * Name: up_serialinit + * Name: up_earlyserialinit * * Description: * Performs the low level UART initialization early in @@ -915,6 +917,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/avr/src/at32uc3/at32uc3_serial.c b/arch/avr/src/at32uc3/at32uc3_serial.c index a4d02d609d9..e2202f15194 100644 --- a/arch/avr/src/at32uc3/at32uc3_serial.c +++ b/arch/avr/src/at32uc3/at32uc3_serial.c @@ -695,6 +695,8 @@ static bool up_txready(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -726,6 +728,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/avr/src/at90usb/at90usb_serial.c b/arch/avr/src/at90usb/at90usb_serial.c index fad319d1992..414c9614ce6 100644 --- a/arch/avr/src/at90usb/at90usb_serial.c +++ b/arch/avr/src/at90usb/at90usb_serial.c @@ -513,6 +513,8 @@ static bool usart1_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -536,6 +538,7 @@ void up_earlyserialinit(void) usart1_setup(&g_usart1port); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/avr/src/atmega/atmega_serial.c b/arch/avr/src/atmega/atmega_serial.c index b3bfa804f97..4e632860a67 100644 --- a/arch/avr/src/atmega/atmega_serial.c +++ b/arch/avr/src/atmega/atmega_serial.c @@ -887,6 +887,8 @@ static bool usart1_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -919,6 +921,7 @@ void up_earlyserialinit(void) # endif #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/mips/src/pic32mx/pic32mx-serial.c b/arch/mips/src/pic32mx/pic32mx-serial.c index a4f47b2a15f..4956789fe66 100644 --- a/arch/mips/src/pic32mx/pic32mx-serial.c +++ b/arch/mips/src/pic32mx/pic32mx-serial.c @@ -822,6 +822,8 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -852,6 +854,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/mips/src/pic32mz/pic32mz-serial.c b/arch/mips/src/pic32mz/pic32mz-serial.c index a2670c0a3f1..a6e96a7f4b9 100644 --- a/arch/mips/src/pic32mz/pic32mz-serial.c +++ b/arch/mips/src/pic32mz/pic32mz-serial.c @@ -1073,6 +1073,8 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -1118,6 +1120,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/risc-v/src/fe310/fe310_serial.c b/arch/risc-v/src/fe310/fe310_serial.c index e836f357355..e484c184e71 100644 --- a/arch/risc-v/src/fe310/fe310_serial.c +++ b/arch/risc-v/src/fe310/fe310_serial.c @@ -601,6 +601,8 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -631,6 +633,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/risc-v/src/gap8/gap8_uart.c b/arch/risc-v/src/gap8/gap8_uart.c index 77482e662b4..669059d7541 100644 --- a/arch/risc-v/src/gap8/gap8_uart.c +++ b/arch/risc-v/src/gap8/gap8_uart.c @@ -588,6 +588,8 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -609,6 +611,7 @@ void up_earlyserialinit(void) up_setup(&g_uart0port); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/risc-v/src/k210/k210_serial.c b/arch/risc-v/src/k210/k210_serial.c index 09125396e97..471c410b683 100644 --- a/arch/risc-v/src/k210/k210_serial.c +++ b/arch/risc-v/src/k210/k210_serial.c @@ -601,6 +601,8 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -631,6 +633,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/risc-v/src/nr5m100/nr5_serial.c b/arch/risc-v/src/nr5m100/nr5_serial.c index ad75be2d3d8..a33bcf0b0d9 100644 --- a/arch/risc-v/src/nr5m100/nr5_serial.c +++ b/arch/risc-v/src/nr5m100/nr5_serial.c @@ -727,6 +727,8 @@ static bool up_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -757,6 +759,7 @@ void up_earlyserialinit(void) up_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit diff --git a/arch/z16/src/z16f/z16f_serial.c b/arch/z16/src/z16f/z16f_serial.c index 46122e44702..e078cd9eed1 100644 --- a/arch/z16/src/z16f/z16f_serial.c +++ b/arch/z16/src/z16f/z16f_serial.c @@ -688,6 +688,8 @@ static bool z16f_txempty(struct uart_dev_s *dev) * Public Functions ****************************************************************************/ +#ifdef USE_EARLYSERIALINIT + /**************************************************************************** * Name: up_earlyserialinit * @@ -747,6 +749,7 @@ void up_earlyserialinit(void) z16f_setup(&CONSOLE_DEV); #endif } +#endif /**************************************************************************** * Name: up_serialinit