Comply to new flash module.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 May 2010 10:14:51 +0000 (10:14 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 May 2010 10:14:51 +0000 (10:14 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3648 38d2e660-2303-0410-9eaa-f027e97ec537

examples/triface/boot/main.c

index 7af08126b67853ac18bc46dc61d009941cf5df90..d84dc2552873aa478e89ea5dd857c18b7626a4de 100644 (file)
@@ -57,7 +57,7 @@
 
 #include <drv/ser.h>
 #include <drv/timer.h>
-#include <drv/flash_avr.h>
+#include <drv/flash.h>
 
 #include <string.h>
 
@@ -89,12 +89,12 @@ void wdt_init(void)
 
 int main(void)
 {
-       FlashAvr flash;
+       Flash flash;
        Serial ser;
 
 
        // Set up flash programming functions.
-       flash_avr_init(&flash);
+       flash_init(&flash);
 
        IRQ_ENABLE;