This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
SPI support bug in STM32 port
- From: "Igor B. Poretsky" <poretsky at mlbox dot ru>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 10 Feb 2009 01:35:35 +0300
- Subject: [ECOS] SPI support bug in STM32 port
Hello!
STM32 port does not compile when SPI bus3 is enabled. Here is a simple
patch that fixes the issue:
Index: packages/devs/spi/cortexm/stm32/current/src/spi_stm32.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/spi/cortexm/stm32/current/src/spi_stm32.c,v
retrieving revision 1.2
diff -u -r1.2 spi_stm32.c
--- packages/devs/spi/cortexm/stm32/current/src/spi_stm32.c 5 Feb 2009 10:52:49 -0000 1.2
+++ packages/devs/spi/cortexm/stm32/current/src/spi_stm32.c 9 Feb 2009 20:29:51 -0000
@@ -206,7 +206,7 @@
.spi_reg_base = CYGHWR_HAL_STM32_SPI3,
.dma_reg_base = CYGHWR_HAL_STM32_DMA2,
.dma_tx_channel = 2,
- .dma_rx_channel = 1
+ .dma_rx_channel = 1,
.cs_gpio_num = sizeof (bus3_cs_gpio_list),
.cs_gpio_list = bus3_cs_gpio_list,
.spi_gpio_list = bus3_spi_gpio_list,
Best regards,
Igor.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss