diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-31 21:11:29 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-31 21:11:29 +0000 |
commit | 53115c611716b692fbb3622e150c96c0431d147c (patch) | |
tree | d658d48cb65e334dd9e9ac89467ec1ae862755e8 | |
parent | 8b31aedf7af3a0892d1cbd1c6b25931e01a22314 (diff) | |
download | px4-nuttx-53115c611716b692fbb3622e150c96c0431d147c.tar.gz px4-nuttx-53115c611716b692fbb3622e150c96c0431d147c.tar.bz2 px4-nuttx-53115c611716b692fbb3622e150c96c0431d147c.zip |
Open1788 SDCard DMA works
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5805 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/ChangeLog | 4 | ||||
-rw-r--r-- | nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 878555bb5..654b9e031 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -4478,3 +4478,7 @@ logic to extend directory clusters for the case of long file names but also include a few important general fixes (such as for storing 32 bit FAT values) (2013-03-31). + * arch/arm/src/lpc17xx/lpc17_gdma.c and lpc17_sdcard.c: SD card DMA + is now functional. Thre may be some issues with DMA from CPU SRAM + which is apparently disabled in sleep mode; up_idle() always enters + sleep mode (2013-03-31). diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.c b/nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.c index 4edc87dbf..6ccc8e4ef 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.c @@ -247,6 +247,10 @@ void weak_function up_dmainitialize(void) { up_enable_irq(LPC17_IRQ_GPDMA); } + + /* Enable the DMA controller (for little endian operation) */ + + putreg32(DMA_CONFIG_E, LPC17_DMA_CONFIG); } /**************************************************************************** |