X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lm3s1968%2Ftemplates%2Fkernel%2Fmain.c;h=13adcb0ffcfd175cbf7ecf310c5ec6080a2987a7;hb=e9c476e171383d6a547617a2c284270fe425fae9;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..13adcb0f 100644 --- a/boards/ek-lm3s1968/templates/kernel/main.c +++ b/boards/ek-lm3s1968/templates/kernel/main.c @@ -39,13 +39,18 @@ * continues to monitor the stack utilization of all the processes. */ +#include "hw/hw_led.h" + #include + #include -#include + #include #include #include #include +#include + #include #include @@ -53,7 +58,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) @@ -65,9 +72,9 @@ static void init(void) kdbg_init(); /* Initialize system timer */ timer_init(); - /* Initialize UART0 */ - ser_init(&out, SER_UART0); - /* Configure UART0 to work at 115.200 bps */ + /* Initialize UART1 */ + ser_init(&out, SER_UART1); + /* Configure UART1 to work at 115.200 bps */ ser_setbaudrate(&out, 115200); /* Initialize LED driver */ LED_INIT(); @@ -79,6 +86,8 @@ static void init(void) rit128x96_blitBitmap(&lcd_bitmap); /* Initialize the keypad driver */ kbd_init(); + /* Initialize the internal flash memory */ + flash_init(&flash, 0); /* * Kernel initialization: processes (allow to create and dispatch @@ -119,4 +128,6 @@ int main(void) monitor_report(); timer_delay(1000); } + + return 0; }