Init the dmac to use sd or i2s module.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Sep 2011 15:10:37 +0000 (15:10 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Sep 2011 15:10:37 +0000 (15:10 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5115 38d2e660-2303-0410-9eaa-f027e97ec537

boards/sam3x-ek/templates/empty/main.c

index fc0eaae9bee72b358d4a084e1ece4cc35d511208..0b8ac8007ce5c50bebe80c6f2f324daad8c0ed63 100644 (file)
@@ -46,6 +46,7 @@
 
 #include <drv/timer.h>
 #include <drv/lcd_hx8347.h>
+#include <drv/dmac_sam3.h>
 
 static void init(void)
 {
@@ -56,6 +57,7 @@ static void init(void)
        timer_init();
        LED_INIT();
        lcd_hx8347_init();
+       dmac_init();
 }
 
 int main(void)