lm3s1968: add internal flash memory initialization to "empty" and "kernel" templates.
[bertos.git] / boards / ek-lm3s1968 / templates / empty / main.c
index 9ca44575ecd0c0b8a932ee5886c16efb96aff420..b6df37c952141834db6aa524e93acf24548b8688 100644 (file)
 #include <drv/ser.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)
@@ -76,6 +79,8 @@ static void init(void)
        rit128x96_blitBitmap(&lcd_bitmap);
        /* Initialize the keypad driver */
        kbd_init();
+       /* Initialize the internal flash memory */
+        flash_init(&flash);
 }
 
 int main(void)