diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-01 18:52:42 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-01 18:52:42 +0000 |
commit | 9dd9aca2d4da2c346b3dd48ce532bdd07ac913f6 (patch) | |
tree | bf94521ed27ccfa6af8fddd656e6d3d8788d1e1e | |
parent | e916f7d7bf83960a007a4ced5387f375198a868a (diff) | |
download | ChibiOS-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.c | 1 |
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;
|