lm3s1968: add internal flash memory initialization to "empty" and "kernel" templates.
[bertos.git] / boards / ek-lm3s1968 / templates / empty / main.c
index 659b51b5524aeee572c5f573888ab7331340e9ed..b6df37c952141834db6aa524e93acf24548b8688 100644 (file)
 #include <hw/hw_led.h>
 #include <drv/timer.h>
 #include <drv/ser.h>
-#include <kern/proc.h>
 #include <drv/lcd_rit128x96.h>
 #include <drv/kbd.h>
+#include <drv/flash.h>
 
 /* Bitmap to display on the OLED display */
 static Bitmap lcd_bitmap;
 /* Raster associated to the Bitmap image */
 static uint8_t raster[RAST_SIZE(LCD_WIDTH, LCD_HEIGHT)];
-
+/* Internal flash memory descriptor */
+static Flash flash;
+/* UART port descriptor */
 static Serial out;
 
 static void init(void)
@@ -77,12 +79,8 @@ static void init(void)
        rit128x96_blitBitmap(&lcd_bitmap);
        /* Initialize the keypad driver */
        kbd_init();
-
-       /*
-        * Kernel initialization: processes (allow to create and dispatch
-        * processes using proc_new()).
-        */
-       proc_init();
+       /* Initialize the internal flash memory */
+        flash_init(&flash);
 }
 
 int main(void)