From c41b029405dce65451ff2e7a7a88f65f5c6e5206 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 12 Aug 2017 07:14:59 +0000 Subject: [PATCH] Fixed bug #871. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_17.6.x@10406 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c | 4 ++-- readme.txt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c b/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c index 4014ab5bb..b71fa377a 100644 --- a/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c +++ b/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c @@ -158,7 +158,7 @@ static uint8_t sd_out_buf3[STM32_SERIAL_USART3_OUT_BUF_SIZE]; static uint8_t sd_in_buf4[STM32_SERIAL_UART4_IN_BUF_SIZE]; /** @brief Output buffer for SD4.*/ -static uint8_t sd_out_buf4[STM32_SERIAL_UART4_IN_BUF_SIZE]; +static uint8_t sd_out_buf4[STM32_SERIAL_UART4_OUT_BUF_SIZE]; #endif #if STM32_SERIAL_USE_UART5 || defined(__DOXYGEN__) @@ -166,7 +166,7 @@ static uint8_t sd_out_buf4[STM32_SERIAL_UART4_IN_BUF_SIZE]; static uint8_t sd_in_buf5[STM32_SERIAL_UART5_IN_BUF_SIZE]; /** @brief Output buffer for SD5.*/ -static uint8_t sd_out_buf5[STM32_SERIAL_UART5_IN_BUF_SIZE]; +static uint8_t sd_out_buf5[STM32_SERIAL_UART5_OUT_BUF_SIZE]; #endif #if STM32_SERIAL_USE_USART6 || defined(__DOXYGEN__) diff --git a/readme.txt b/readme.txt index 7d5316fcf..e302972f4 100644 --- a/readme.txt +++ b/readme.txt @@ -89,6 +89,8 @@ ***************************************************************************** *** 17.6.1 *** +- HAL: Fixed STM32 USARTv2 serial incorrect buffer size declarations + (bug #871). - HAL: Fixed board file configuration for STM32F3 Discovery REVC (bug #869). - HAL: Fixed wrong PPRE2 and LSI related macros in STM32L0 hal lld (bug #868). - HAL: Fixed wrong bit mask in STM32L0 hal lld (bug #866).