Comply to new api.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 May 2010 12:44:37 +0000 (12:44 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 May 2010 12:44:37 +0000 (12:44 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3651 38d2e660-2303-0410-9eaa-f027e97ec537

examples/develgps/develgps.c

index 8a46e1830e111031e802ba67f292cbb0a56c8a5d..c0be6800e227fc834b7c504f1e88517179e99e89 100644 (file)
@@ -43,7 +43,7 @@
 #include <drv/lcd_rit128x96.h>
 #include <drv/timer.h>
 #include <drv/ser.h>
-#include <drv/flash_lm3s.h>
+#include <drv/flash.h>
 #include <drv/kbd.h>
 
 #include <kern/proc.h>
@@ -84,7 +84,7 @@ static long target_lat, target_lon;
 
 /* Storage stuff */
 #define GPS_POS_MAGIC 0xdeadbeef
-static FlashLM3S flash;
+static Flash flash;
 
 static void flash_load_target(void)
 {
@@ -550,7 +550,7 @@ static void init(void)
        scrsvr_timestamp = ticks_to_ms(timer_clock_unlocked());
        led_init();
 
-       flash_lm3sInit(&flash);
+       flash_init(&flash);
        flash_load_target();
 
        ser_init(&ser_port, SER_UART1);