Comply to new api.
[bertos.git] / 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);