Simplification of conditional compilation suggested by pn_bouteville

This commit is contained in:
Gregory Nutt 2014-10-07 15:44:54 -06:00
parent 6ab29cbef9
commit 076a9ffadd

View File

@ -427,12 +427,16 @@ void up_lowputc(char ch);
void up_puts(const char *str);
void up_lowputs(const char *str);
#if CONFIG_NFILE_DESCRIPTORS > 0
void up_earlyserialinit(void);
#if USE_SERIALDRIVER
void up_serialinit(void);
#else
# define up_earlyserialinit()
# define up_serialinit()
# define up_serialinit()
#endif
#if USE_EARLYSERIALINIT
void up_earlyserialinit(void);
#else
# define up_earlyserialinit()
#endif
/* Defined in drivers/lowconsole.c */