aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-05-01 18:52:42 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-05-01 18:52:42 +0000
commit9dd9aca2d4da2c346b3dd48ce532bdd07ac913f6 (patch)
treebf94521ed27ccfa6af8fddd656e6d3d8788d1e1e
parente916f7d7bf83960a007a4ced5387f375198a868a (diff)
downloadChibiOS-9dd9aca2d4da2c346b3dd48ce532bdd07ac913f6.tar.gz
ChibiOS-9dd9aca2d4da2c346b3dd48ce532bdd07ac913f6.tar.bz2
ChibiOS-9dd9aca2d4da2c346b3dd48ce532bdd07ac913f6.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2913 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/platforms/STM32/sdc_lld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.c b/os/hal/platforms/STM32/sdc_lld.c
index ecd09f1b8..bc6855fed 100644
--- a/os/hal/platforms/STM32/sdc_lld.c
+++ b/os/hal/platforms/STM32/sdc_lld.c
@@ -89,6 +89,7 @@ void sdc_lld_start(SDCDriver *sdcp) {
if (sdcp->state == SDC_STOP) {
/* Note, the DMA must be enabled before the IRQs.*/
dmaAllocate(STM32_DMA2_ID, STM32_DMA_CHANNEL_4, NULL, NULL);
+ dmaChannelSetPeripheral(&STM32_DMA2->channels[STM32_DMA_CHANNEL_4], &SDIO->FIFO);
NVICEnableVector(SDIO_IRQn,
CORTEX_PRIORITY_MASK(STM32_SDC_SDIO_IRQ_PRIORITY));
RCC->AHBENR |= RCC_AHBENR_SDIOEN;