projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up. Reformat.
[bertos.git]
/
boards
/
ek-lm3s1968
/
templates
/
kernel
/
main.c
diff --git
a/boards/ek-lm3s1968/templates/kernel/main.c
b/boards/ek-lm3s1968/templates/kernel/main.c
index 34ad1c652112a20f59cdb604568429b4bbd9c2dc..677553eda3613d2941caeb501db5f4df3743b393 100644
(file)
--- 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();
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 */
/* Initialize UART1 */
ser_init(&out, SER_UART1);
/* Configure UART1 to work at 115.200 bps */
@@
-87,13
+92,7
@@
static void init(void)
/* Initialize the keypad driver */
kbd_init();
/* Initialize the internal flash memory */
/* Initialize the keypad driver */
kbd_init();
/* Initialize the internal flash memory */
- flash_init(&flash);
-
- /*
- * Kernel initialization: processes (allow to create and dispatch
- * processes using proc_new()).
- */
- proc_init();
+ flash_init(&flash, 0);
}
static void NORETURN led_process(void)
}
static void NORETURN led_process(void)
@@
-128,4
+127,6
@@
int main(void)
monitor_report();
timer_delay(1000);
}
monitor_report();
timer_delay(1000);
}
+
+ return 0;
}
}