SAM4: Fix a usbnsh build problem that has crept into all serial drivers

This commit is contained in:
Gregory Nutt 2014-10-28 15:44:47 -06:00
parent b9814fac99
commit 761059aee2
2 changed files with 4 additions and 2 deletions

View File

@ -422,13 +422,13 @@ void up_lowputc(char ch);
void up_puts(const char *str);
void up_lowputs(const char *str);
#if USE_SERIALDRIVER
#ifdef USE_SERIALDRIVER
void up_serialinit(void);
#else
# define up_serialinit()
#endif
#if USE_EARLYSERIALINIT
#ifdef USE_EARLYSERIALINIT
void up_earlyserialinit(void);
#else
# define up_earlyserialinit()

View File

@ -1154,6 +1154,7 @@ static bool up_txempty(struct uart_dev_s *dev)
*
****************************************************************************/
#ifdef USE_EARLYSERIALINIT
void up_earlyserialinit(void)
{
/* NOTE: All GPIO configuration for the USARTs was performed in
@ -1186,6 +1187,7 @@ void up_earlyserialinit(void)
up_setup(&CONSOLE_DEV);
#endif
}
#endif
/****************************************************************************
* Name: up_serialinit