aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/spi_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-21 19:23:41 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-21 19:23:41 +0000
commit4ffade31534ae304e78c1992b65fc6f1cd1bddeb (patch)
treec6237fcc25ea6f8de3d35f3d2dcb33d7a73d147e /os/hal/platforms/STM32/spi_lld.c
parent8dfb19e4364eac8aea8f4fe1196cd0d0d6d4c266 (diff)
downloadChibiOS-4ffade31534ae304e78c1992b65fc6f1cd1bddeb.tar.gz
ChibiOS-4ffade31534ae304e78c1992b65fc6f1cd1bddeb.tar.bz2
ChibiOS-4ffade31534ae304e78c1992b65fc6f1cd1bddeb.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3379 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/spi_lld.c')
-rw-r--r--os/hal/platforms/STM32/spi_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/spi_lld.c b/os/hal/platforms/STM32/spi_lld.c
index 7041ef854..194a386a7 100644
--- a/os/hal/platforms/STM32/spi_lld.c
+++ b/os/hal/platforms/STM32/spi_lld.c
@@ -214,12 +214,12 @@ void spi_lld_start(SPIDriver *spip) {
#if STM32_SPI_USE_SPI3
if (&SPID3 == spip) {
bool_t b;
- b = dmaStreamAllocate(STM32_DMA1_STREAM1,
+ b = dmaStreamAllocate(STM32_DMA2_STREAM1,
STM32_SPI_SPI3_IRQ_PRIORITY,
(stm32_dmaisr_t)spi_lld_serve_rx_interrupt,
(void *)spip);
chDbgAssert(!b, "spi_lld_start(), #5", "stream already allocated");
- b = dmaStreamAllocate(STM32_DMA1_STREAM2,
+ b = dmaStreamAllocate(STM32_DMA2_STREAM2,
STM32_SPI_SPI3_IRQ_PRIORITY,
(stm32_dmaisr_t)spi_lld_serve_tx_interrupt,
(void *)spip);