mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Fix some backward conditional compilation
This commit is contained in:
@@ -84,7 +84,7 @@
|
|||||||
# undef CONFIG_KINETIS_LPUART0
|
# undef CONFIG_KINETIS_LPUART0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Are any UARTs enabled? */
|
/* Are any UARTs or LPUARTs enabled? */
|
||||||
|
|
||||||
#undef HAVE_UART_DEVICE
|
#undef HAVE_UART_DEVICE
|
||||||
#if defined(CONFIG_KINETIS_UART0) || defined(CONFIG_KINETIS_UART1) || \
|
#if defined(CONFIG_KINETIS_UART0) || defined(CONFIG_KINETIS_UART1) || \
|
||||||
|
|||||||
@@ -1315,7 +1315,7 @@ void up_serialinit(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef HAVE_UART_PUTC
|
#ifdef HAVE_UART_PUTC
|
||||||
int up_putc(int ch)
|
int up_putc(int ch)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_UART_CONSOLE
|
#ifdef HAVE_UART_CONSOLE
|
||||||
@@ -1350,7 +1350,7 @@ int up_putc(int ch)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef HAVE_UART_PUTC
|
#ifdef HAVE_UART_PUTC
|
||||||
int up_putc(int ch)
|
int up_putc(int ch)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_UART_CONSOLE
|
#ifdef HAVE_UART_CONSOLE
|
||||||
|
|||||||
Reference in New Issue
Block a user