SAM4: Fix a usbnsh build problem that has crept into all serial drivers
This commit is contained in:
parent
b9814fac99
commit
761059aee2
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user