X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lm3s1968%2Ftemplates%2Fkernel%2Fmain.c;h=68fdf45fc59e56a06135b3ed5352b79c2ce1bd21;hb=83ea7ed8da72ed69c0ef12589a921694987504fa;hp=99aa70571afd54c1c73382eed5de6f3b93ea131d;hpb=b99421f706c4f6978a6d399cba3bf4d9a383cb2c;p=bertos.git diff --git a/boards/ek-lm3s1968/templates/kernel/main.c b/boards/ek-lm3s1968/templates/kernel/main.c index 99aa7057..68fdf45f 100644 --- a/boards/ek-lm3s1968/templates/kernel/main.c +++ b/boards/ek-lm3s1968/templates/kernel/main.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include @@ -53,7 +54,9 @@ 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) @@ -79,6 +82,8 @@ static void init(void) rit128x96_blitBitmap(&lcd_bitmap); /* Initialize the keypad driver */ kbd_init(); + /* Initialize the internal flash memory */ + flash_init(&flash); /* * Kernel initialization: processes (allow to create and dispatch