Replace HAVE_USART with HAVE_UART
This commit is contained in:
parent
4602212612
commit
03cbf21cd8
@ -196,7 +196,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef USE_SERIALDRIVER
|
||||
#ifdef HAVE_USART
|
||||
#ifdef HAVE_UART
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
@ -2327,7 +2327,7 @@ static int stm32f0serial_pmprepare(FAR struct pm_callback_s *cb, int domain,
|
||||
return OK;
|
||||
}
|
||||
#endif
|
||||
#endif /* HAVE_USART */
|
||||
#endif /* HAVE_UART */
|
||||
#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_USART
|
||||
#ifdef HAVE_UART
|
||||
unsigned i;
|
||||
|
||||
/* Disable all USART interrupts */
|
||||
@ -2382,7 +2382,7 @@ void up_earlyserialinit(void)
|
||||
|
||||
void up_serialinit(void)
|
||||
{
|
||||
#ifdef HAVE_USART
|
||||
#ifdef HAVE_UART
|
||||
char devname[16];
|
||||
unsigned i;
|
||||
unsigned minor = 0;
|
||||
|
@ -54,22 +54,22 @@
|
||||
* device.
|
||||
*/
|
||||
|
||||
#if STM32F0_NUSART < 8 || !defined(CONFIG_STM32F0_HAVE_USART8)
|
||||
#if STM32F0_NUSART < 8 || !defined(CONFIG_STM32F0_HAVE_UART8)
|
||||
# undef CONFIG_STM32F0_USART8
|
||||
#endif
|
||||
#if STM32F0_NUSART < 7 || !defined(CONFIG_STM32F0_HAVE_USART7)
|
||||
#if STM32F0_NUSART < 7 || !defined(CONFIG_STM32F0_HAVE_UART7)
|
||||
# undef CONFIG_STM32F0_USART7
|
||||
#endif
|
||||
#if STM32F0_NUSART < 6 || !defined(CONFIG_STM32F0_HAVE_USART6)
|
||||
#if STM32F0_NUSART < 6 || !defined(CONFIG_STM32F0_HAVE_UART6)
|
||||
# undef CONFIG_STM32F0_USART6
|
||||
#endif
|
||||
#if STM32F0_NUSART < 5 || !defined(CONFIG_STM32F0_HAVE_USART5)
|
||||
#if STM32F0_NUSART < 5 || !defined(CONFIG_STM32F0_HAVE_UART5)
|
||||
# undef CONFIG_STM32F0_USART5
|
||||
#endif
|
||||
#if STM32F0_NUSART < 4 || !defined(CONFIG_STM32F0_HAVE_USART4)
|
||||
#if STM32F0_NUSART < 4 || !defined(CONFIG_STM32F0_HAVE_UART4)
|
||||
# undef CONFIG_STM32F0_USART4
|
||||
#endif
|
||||
#if STM32F0_NUSART < 3 || !defined(CONFIG_STM32F0_HAVE_USART3)
|
||||
#if STM32F0_NUSART < 3 || !defined(CONFIG_STM32F0_HAVE_UART3)
|
||||
# undef CONFIG_STM32F0_USART3
|
||||
#endif
|
||||
#if STM32F0_NUSART < 2
|
||||
@ -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_USART 1
|
||||
# define HAVE_UART 1
|
||||
#endif
|
||||
|
||||
/* Sanity checks */
|
||||
|
Loading…
Reference in New Issue
Block a user