X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lm3s1968%2Ftemplates%2Fempty%2Fmain.c;fp=boards%2Fek-lm3s1968%2Ftemplates%2Fempty%2Fmain.c;h=b6df37c952141834db6aa524e93acf24548b8688;hb=83ea7ed8da72ed69c0ef12589a921694987504fa;hp=9ca44575ecd0c0b8a932ee5886c16efb96aff420;hpb=7b5a8ebc799a5d9486db4c2d89670b7ac7a236b4;p=bertos.git diff --git a/boards/ek-lm3s1968/templates/empty/main.c b/boards/ek-lm3s1968/templates/empty/main.c index 9ca44575..b6df37c9 100644 --- a/boards/ek-lm3s1968/templates/empty/main.c +++ b/boards/ek-lm3s1968/templates/empty/main.c @@ -45,12 +45,15 @@ #include #include #include +#include /* 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)