Comply the demo project to new spi dma interface.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 13 Jun 2011 09:05:59 +0000 (09:05 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 13 Jun 2011 09:05:59 +0000 (09:05 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4951 38d2e660-2303-0410-9eaa-f027e97ec537

boards/at91sam7x-ek/examples/sd_fat/main.c
boards/sam3n-ek/examples/display/display_user.mk
boards/sam3n-ek/examples/display/main.c
boards/sam3n-ek/templates/empty/main.c
boards/sam3n-ek/templates/kernel/main.c

index c51da3e64d776a8ddfe6d56450d75e41c16eb3de..05c9ae01ffc107ee9fbb90367275ef01e15c4ced 100644 (file)
 #include <drv/sd.h>
 #include <drv/ser.h>
 #include <drv/tmp123.h>
-#include <drv/spi_dma_at91.h>
+#include <drv/spi_dma.h>
 #include <drv/mpxx6115a.h>
 #include <drv/adc.h>
 
@@ -207,7 +207,7 @@ typedef struct INISetting
 /*
  * Static definition for application devices.
  */
-static SpiDmaAt91 spi_dma;
+static SpiDma spi_dma;
 static Serial temp_sensor_bus;
 static Serial log_port;
 static Sd sd;
index f952df3fb728c37838ac65135bdda4582cad5857..4fabfb74f0d912c8eee75341db28c3da90fd44bc 100644 (file)
@@ -13,7 +13,7 @@ display_USER_CSRC = \
        $(display_SRC_PATH)/bitmaps.c \
        bertos/icons/logo.c \
        bertos/fonts/gohu.c \
-       bertos/cpu/arm/drv/spi_dma_at91.c \
+       bertos/cpu/cortex-m3/drv/spi_dma_sam3.c \
        #
 
 # Files included by the user.
index caa70930e3a4d24d0c69f8eac3181819b67d464f..260ada0fa590c8a803d2e4886d652a627cad5374 100644 (file)
@@ -48,7 +48,7 @@
 #include <drv/kbd.h>
 #include <drv/lcd_ili9225.h>
 
-#include <cpu/arm/drv/spi_dma_at91.h>
+#include <drv/spi_dma.h>
 
 #include <gfx/gfx.h>
 #include <gfx/font.h>
@@ -79,7 +79,7 @@
        static PROC_DEFINE_STACK(led_stack, PROC_STACK_SIZE);
 #endif
 
-struct SpiDmaAt91 spi;
+struct SpiDma spi;
 static uint8_t raster[RAST_SIZE(LCD_WIDTH, LCD_HEIGHT)];
 static Bitmap lcd_bitmap;
 extern Font font_gohu;
index 698992fee2962843f29b5cd5cba8ece32ee6a573..8e5fb7826052bda9b9cf54a2dd415de3f11d6c48 100644 (file)
@@ -44,7 +44,7 @@
 #include <cfg/debug.h>
 
 #include <cpu/irq.h>
-#include <cpu/arm/drv/spi_dma_at91.h>
+#include <drv/spi_dma.h>
 
 #include <drv/timer.h>
 #include <drv/kbd.h>
@@ -56,7 +56,7 @@ static Bitmap lcd_bitmap;
 /* Raster associated to the Bitmap image */
 static uint8_t raster[RAST_SIZE(LCD_WIDTH, LCD_HEIGHT)];
 /* LCD spi context with DMA access */
-struct SpiDmaAt91 spi;
+struct SpiDma spi;
 
 static void init(void)
 {
index c0119e7b884c9379c044b42088cc30e498a7e086..55740793672cf6bd61455fb8928faca897b5e3c4 100644 (file)
@@ -44,7 +44,7 @@
 #include <cfg/debug.h>
 
 #include <cpu/irq.h>
-#include <cpu/arm/drv/spi_dma_at91.h>
+#include <drv/spi_dma.h>
 
 #include <drv/timer.h>
 #include <drv/kbd.h>
@@ -58,7 +58,7 @@ static Bitmap lcd_bitmap;
 /* Raster associated to the Bitmap image */
 static uint8_t raster[RAST_SIZE(LCD_WIDTH, LCD_HEIGHT)];
 /* LCD spi context with DMA access */
-struct SpiDmaAt91 spi;
+struct SpiDma spi;
 
 static void init(void)
 {