diff stm32_eval.h @ 55:b21db2b47a27

Enable DMA mode by initing DMA channel and enabling IRQ handler.
author Daniel O'Connor <darius@dons.net.au>
date Sun, 07 Apr 2013 22:34:05 +0930
parents 9521be9b391e
children f0563086040d
line wrap: on
line diff
--- a/stm32_eval.h	Sun Apr 07 22:33:16 2013 +0930
+++ b/stm32_eval.h	Sun Apr 07 22:34:05 2013 +0930
@@ -7,8 +7,8 @@
 
 /* Going to 4 bit mode gives CRC errors */
 #define SD_NO_4BIT
-//#define SD_DMA_MODE                                ((uint32_t)0x00000000)
-#define SD_POLLING_MODE                            ((uint32_t)0x00000002)
+#define SD_DMA_MODE                                ((uint32_t)0x00000000)
+//#define SD_POLLING_MODE                            ((uint32_t)0x00000002)
 
 /* No idea if this is for all SD cards. The one I have has 1024 byte blocks but 512 byte reads work
  * Note that SD_ReadBlock forces blocksize to be 512 and divides the address by 512 but only for SDIO_HIGH_CAPACITY_SD_CARD's
@@ -21,4 +21,3 @@
 void SD_LowLevel_DMA_TxConfig(uint32_t *BufferSRC, uint32_t BufferSize);
 uint32_t SD_DMAEndOfTransferStatus(void);
 
-