mirror of
https://github.com/apache/nuttx.git
synced 2026-08-28 21:00:44 +00:00
STM32 Serial: Don't compile up_earlyserialinit() if USE_EARLYSERIALINIT is not define. Otherwise, a macro definition clobbers the function definition
This commit is contained in:
parent
60d2547cd7
commit
5ebc472f43
1 changed files with 2 additions and 0 deletions
|
|
@ -2547,6 +2547,7 @@ static int up_pm_prepare(struct pm_callback_s *cb, enum pm_state_e pmstate)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if USE_EARLYSERIALINIT
|
||||
void up_earlyserialinit(void)
|
||||
{
|
||||
#ifdef HAVE_UART
|
||||
|
|
@ -2569,6 +2570,7 @@ void up_earlyserialinit(void)
|
|||
#endif
|
||||
#endif /* HAVE UART */
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_serialinit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue