X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lm3s1968%2Ftemplates%2Fkernel%2Fmain.c;h=677553eda3613d2941caeb501db5f4df3743b393;hb=4ddace69429f1b24dfccfba49d2e47ae059609d3;hp=31408ec35dbee6f33fe399108c2696f6c9fae2eb;hpb=74081ebc421ca63e090ae8027a634a0c1b8f6864;p=bertos.git diff --git a/boards/ek-lm3s1968/templates/kernel/main.c b/boards/ek-lm3s1968/templates/kernel/main.c index 31408ec3..677553ed 100644 --- a/boards/ek-lm3s1968/templates/kernel/main.c +++ b/boards/ek-lm3s1968/templates/kernel/main.c @@ -72,6 +72,11 @@ static void init(void) kdbg_init(); /* Initialize system timer */ timer_init(); + /* + * Kernel initialization: processes (allow to create and dispatch + * processes using proc_new()). + */ + proc_init(); /* Initialize UART1 */ ser_init(&out, SER_UART1); /* Configure UART1 to work at 115.200 bps */ @@ -88,12 +93,6 @@ static void init(void) kbd_init(); /* Initialize the internal flash memory */ flash_init(&flash, 0); - - /* - * Kernel initialization: processes (allow to create and dispatch - * processes using proc_new()). - */ - proc_init(); } static void NORETURN led_process(void) @@ -128,4 +127,6 @@ int main(void) monitor_report(); timer_delay(1000); } + + return 0; }