From 3e42a8fe7620e26912ed27f626f771b6bd757b31 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 3 May 2011 20:36:44 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2917 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/sdc_lld.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'os/hal/platforms/STM32/sdc_lld.c') diff --git a/os/hal/platforms/STM32/sdc_lld.c b/os/hal/platforms/STM32/sdc_lld.c index 43493d8dd..69c04a41a 100644 --- a/os/hal/platforms/STM32/sdc_lld.c +++ b/os/hal/platforms/STM32/sdc_lld.c @@ -319,6 +319,11 @@ bool_t sdc_lld_read_blocks(SDCDriver *sdcp, uint8_t *buf, uint32_t n) { msg_t msg; chSysLock(); + dmaChannelSetup(&STM32_DMA2->channels[STM32_DMA_CHANNEL_4], + n * SDC_BLOCK_SIZE, buf, + (STM32_SDC_SDIO_DMA_PRIORITY << 12) | + DMA_CCR1_MINC | DMA_CCR1_EN); + chDbgAssert(sdcp->thread == NULL, "sdc_lld_read_blocks(), #1", "not NULL"); sdcp->thread = chThdSelf(); chSchGoSleepS(THD_STATE_SUSPENDED); -- cgit v1.2.3