X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lm3s1968%2Ftemplates%2Fempty%2Fmain.c;h=224e9335be65d715077547af782eb7ed4b4b4e35;hb=b46f64914c62fbb0297728280478681659469654;hp=9ca44575ecd0c0b8a932ee5886c16efb96aff420;hpb=c34de402cec6fda7bf4474f32fed5e5c02cd7e7e;p=bertos.git diff --git a/boards/ek-lm3s1968/templates/empty/main.c b/boards/ek-lm3s1968/templates/empty/main.c index 9ca44575..224e9335 100644 --- a/boards/ek-lm3s1968/templates/empty/main.c +++ b/boards/ek-lm3s1968/templates/empty/main.c @@ -38,19 +38,25 @@ * supported board and proposes an empty main. */ +#include "hw/hw_led.h" + #include + #include -#include + #include #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) @@ -62,8 +68,8 @@ static void init(void) kdbg_init(); /* Initialize system timer */ timer_init(); - /* Initialize UART0 */ - ser_init(&out, SER_UART0); + /* Initialize UART1 */ + ser_init(&out, SER_UART1); /* Configure UART0 to work at 115.200 bps */ ser_setbaudrate(&out, 115200); /* Initialize LED driver */ @@ -76,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); } int main(void)