STM32F0: Change HAVE_UART to HAVE_USART
This commit is contained in:
parent
acdc26f972
commit
924f58fb2b
@ -273,7 +273,7 @@ void up_lowputc(char ch)
|
||||
|
||||
void stm32f0_lowsetup(void)
|
||||
{
|
||||
#if defined(HAVE_UART)
|
||||
#if defined(HAVE_USART)
|
||||
#if defined(HAVE_CONSOLE) && !defined(CONFIG_SUPPRESS_UART_CONFIG)
|
||||
uint32_t cr;
|
||||
#endif
|
||||
@ -402,5 +402,5 @@ void stm32f0_lowsetup(void)
|
||||
putreg32(cr, STM32F0_CONSOLE_BASE + STM32F0_USART_CR1_OFFSET);
|
||||
|
||||
#endif /* HAVE_CONSOLE && !CONFIG_SUPPRESS_UART_CONFIG */
|
||||
#endif /* HAVE_UART */
|
||||
#endif /* HAVE_USART */
|
||||
}
|
||||
|
@ -196,7 +196,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef USE_SERIALDRIVER
|
||||
#ifdef HAVE_UART
|
||||
#ifdef HAVE_USART
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
@ -2327,7 +2327,7 @@ static int stm32f0serial_pmprepare(FAR struct pm_callback_s *cb, int domain,
|
||||
return OK;
|
||||
}
|
||||
#endif
|
||||
#endif /* HAVE_UART */
|
||||
#endif /* HAVE_USART */
|
||||
#endif /* USE_SERIALDRIVER */
|
||||
|
||||
/****************************************************************************
|
||||
@ -2349,7 +2349,7 @@ static int stm32f0serial_pmprepare(FAR struct pm_callback_s *cb, int domain,
|
||||
#ifdef USE_EARLYSERIALINIT
|
||||
void up_earlyserialinit(void)
|
||||
{
|
||||
#ifdef HAVE_UART
|
||||
#ifdef HAVE_USART
|
||||
unsigned i;
|
||||
|
||||
/* Disable all USART interrupts */
|
||||
@ -2382,7 +2382,7 @@ void up_earlyserialinit(void)
|
||||
|
||||
void up_serialinit(void)
|
||||
{
|
||||
#ifdef HAVE_UART
|
||||
#ifdef HAVE_USART
|
||||
char devname[16];
|
||||
unsigned i;
|
||||
unsigned minor = 0;
|
||||
|
@ -57,9 +57,9 @@
|
||||
|
||||
/* Are any UARTs enabled? */
|
||||
|
||||
#undef HAVE_UART
|
||||
#undef HAVE_USART
|
||||
#if defined(CONFIG_STM32F0_UART0)
|
||||
# define HAVE_UART 1
|
||||
# define HAVE_USART 1
|
||||
#endif
|
||||
|
||||
/* Is there a serial console? There should be at most one defined. It could be on
|
||||
|
@ -84,7 +84,7 @@
|
||||
#if defined(CONFIG_STM32F0_USART1) || defined(CONFIG_STM32F0_USART2) || \
|
||||
defined(CONFIG_STM32F0_USART3) || defined(CONFIG_STM32F0_USART4) || \
|
||||
defined(CONFIG_STM32F0_USART5)
|
||||
# define HAVE_UART 1
|
||||
# define HAVE_USART 1
|
||||
#endif
|
||||
|
||||
/* Sanity checks */
|
||||
|
Loading…
Reference in New Issue
Block a user