From 08db7505fedcc14730e9d647d5a65d3abc15088e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 30 Dec 2011 10:30:51 +0000 Subject: [PATCH] Fixed bug 3436127. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.2.x@3689 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/spi_lld.c | 3 --- readme.txt | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/os/hal/platforms/STM32/spi_lld.c b/os/hal/platforms/STM32/spi_lld.c index 88a3a021c..1fd424074 100644 --- a/os/hal/platforms/STM32/spi_lld.c +++ b/os/hal/platforms/STM32/spi_lld.c @@ -228,7 +228,6 @@ void spi_lld_init(void) { RCC->APB2RSTR = RCC_APB2RSTR_SPI1RST; RCC->APB2RSTR = 0; spiObjectInit(&SPID1); - SPID1.spd_thread = NULL; SPID1.spd_spi = SPI1; SPID1.spd_dmarx = STM32_DMA1_CH2; SPID1.spd_dmatx = STM32_DMA1_CH3; @@ -238,7 +237,6 @@ void spi_lld_init(void) { RCC->APB1RSTR = RCC_APB1RSTR_SPI2RST; RCC->APB1RSTR = 0; spiObjectInit(&SPID2); - SPID2.spd_thread = NULL; SPID2.spd_spi = SPI2; SPID2.spd_dmarx = STM32_DMA1_CH4; SPID2.spd_dmatx = STM32_DMA1_CH5; @@ -248,7 +246,6 @@ void spi_lld_init(void) { RCC->APB1RSTR = RCC_APB1RSTR_SPI3RST; RCC->APB1RSTR = 0; spiObjectInit(&SPID3); - SPID3.spd_thread = NULL; SPID3.spd_spi = SPI3; SPID3.spd_dmarx = STM32_DMA2_CH1; SPID3.spd_dmatx = STM32_DMA2_CH2; diff --git a/readme.txt b/readme.txt index eef526de7..44b4e0894 100644 --- a/readme.txt +++ b/readme.txt @@ -71,6 +71,7 @@ *** 2.2.8 *** - NEW: Added new API chThdExitS() in order to allow atomic operations on thead exit. +- FIX: Fixed Extra initialization in STM32 SPI driver (bug 3436127). - FIX: Fixed DMA priority setting error in STM32 UART driver (bug 3436125). - FIX: Fixed DMA priority setting error in STM32 SPI driver (bug 3436124). - FIX: Fixed broken support for UART5 in STM32 serial driver (bug 3434094).