From 71fcdb7cf48e8088f695e0bb106b0f328cb436f6 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 13 Apr 2022 07:27:49 +0000 Subject: [PATCH] Fixed some error messages. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15579 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h | 16 ++++++++-------- os/hal/ports/STM32/LLD/USARTv3/hal_uart_lld.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h b/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h index 61bb80e81..cbad7fec4 100644 --- a/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h +++ b/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h @@ -616,7 +616,7 @@ /* Checks on allocation of USARTx units.*/ #if STM32_UART_USE_USART1 #if defined(STM32_USART1_IS_USED) -#error "SD1 requires USART1 but it is already used" +#error "UARTD1 requires USART1 but it is already used" #else #define STM32_USART1_IS_USED #endif @@ -624,7 +624,7 @@ #if STM32_UART_USE_USART2 #if defined(STM32_USART2_IS_USED) -#error "SD2 requires USART2 but it is already used" +#error "UARTD2 requires USART2 but it is already used" #else #define STM32_USART2_IS_USED #endif @@ -632,7 +632,7 @@ #if STM32_UART_USE_USART3 #if defined(STM32_USART3_IS_USED) -#error "SD3 requires USART3 but it is already used" +#error "UARTD3 requires USART3 but it is already used" #else #define STM32_USART3_IS_USED #endif @@ -640,7 +640,7 @@ #if STM32_UART_USE_UART4 #if defined(STM32_UART4_IS_USED) -#error "SD4 requires UART4 but it is already used" +#error "UARTD4 requires UART4 but it is already used" #else #define STM32_UART4_IS_USED #endif @@ -648,7 +648,7 @@ #if STM32_UART_USE_UART5 #if defined(STM32_UART5_IS_USED) -#error "SD5 requires UART5 but it is already used" +#error "UARTD5 requires UART5 but it is already used" #else #define STM32_UART5_IS_USED #endif @@ -656,7 +656,7 @@ #if STM32_UART_USE_USART6 #if defined(STM32_USART6_IS_USED) -#error "SD6 requires USART6 but it is already used" +#error "UARTD6 requires USART6 but it is already used" #else #define STM32_USART6_IS_USED #endif @@ -664,7 +664,7 @@ #if STM32_UART_USE_UART7 #if defined(STM32_UART7_IS_USED) -#error "SD7 requires UART7 but it is already used" +#error "UARTD7 requires UART7 but it is already used" #else #define STM32_UART7_IS_USED #endif @@ -672,7 +672,7 @@ #if STM32_UART_USE_UART8 #if defined(STM32_UART8_IS_USED) -#error "SD8 requires UART8 but it is already used" +#error "UARTD8 requires UART8 but it is already used" #else #define STM32_UART8_IS_USED #endif diff --git a/os/hal/ports/STM32/LLD/USARTv3/hal_uart_lld.h b/os/hal/ports/STM32/LLD/USARTv3/hal_uart_lld.h index 42d8505f0..2d765fc26 100644 --- a/os/hal/ports/STM32/LLD/USARTv3/hal_uart_lld.h +++ b/os/hal/ports/STM32/LLD/USARTv3/hal_uart_lld.h @@ -616,7 +616,7 @@ /* Checks on allocation of USARTx units.*/ #if STM32_UART_USE_USART1 #if defined(STM32_USART1_IS_USED) -#error "SD1 requires USART1 but it is already used" +#error "UARTD1 requires USART1 but it is already used" #else #define STM32_USART1_IS_USED #endif @@ -624,7 +624,7 @@ #if STM32_UART_USE_USART2 #if defined(STM32_USART2_IS_USED) -#error "SD2 requires USART2 but it is already used" +#error "UARTD2 requires USART2 but it is already used" #else #define STM32_USART2_IS_USED #endif @@ -632,7 +632,7 @@ #if STM32_UART_USE_USART3 #if defined(STM32_USART3_IS_USED) -#error "SD3 requires USART3 but it is already used" +#error "UARTD3 requires USART3 but it is already used" #else #define STM32_USART3_IS_USED #endif @@ -640,7 +640,7 @@ #if STM32_UART_USE_UART4 #if defined(STM32_UART4_IS_USED) -#error "SD4 requires UART4 but it is already used" +#error "UARTD4 requires UART4 but it is already used" #else #define STM32_UART4_IS_USED #endif @@ -648,7 +648,7 @@ #if STM32_UART_USE_UART5 #if defined(STM32_UART5_IS_USED) -#error "SD5 requires UART5 but it is already used" +#error "UARTD5 requires UART5 but it is already used" #else #define STM32_UART5_IS_USED #endif @@ -656,7 +656,7 @@ #if STM32_UART_USE_USART6 #if defined(STM32_USART6_IS_USED) -#error "SD6 requires USART6 but it is already used" +#error "UARTD6 requires USART6 but it is already used" #else #define STM32_USART6_IS_USED #endif @@ -664,7 +664,7 @@ #if STM32_UART_USE_UART7 #if defined(STM32_UART7_IS_USED) -#error "SD7 requires UART7 but it is already used" +#error "UARTD7 requires UART7 but it is already used" #else #define STM32_UART7_IS_USED #endif @@ -672,7 +672,7 @@ #if STM32_UART_USE_UART8 #if defined(STM32_UART8_IS_USED) -#error "SD8 requires UART8 but it is already used" +#error "UARTD8 requires UART8 but it is already used" #else #define STM32_UART8_IS_USED #endif