X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lm3s1968%2Ftemplates%2Fempty%2Fmain.c;h=e4895270e651c312cc1797b8c946eab91886c8a5;hb=f6583713e24d19800f93733fb5adba6a8408b6f5;hp=659b51b5524aeee572c5f573888ab7331340e9ed;hpb=57bc2725ffb9ebe4c40ad1942090d462e1208a5d;p=bertos.git diff --git a/boards/ek-lm3s1968/templates/empty/main.c b/boards/ek-lm3s1968/templates/empty/main.c index 659b51b5..e4895270 100644 --- a/boards/ek-lm3s1968/templates/empty/main.c +++ b/boards/ek-lm3s1968/templates/empty/main.c @@ -38,20 +38,25 @@ * supported board and proposes an empty main. */ +#include "hw/hw_led.h" + #include + #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) @@ -63,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 */ @@ -77,12 +82,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, 0); } int main(void)