projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comments to the "empty" preset templates across the supported boards.
[bertos.git]
/
boards
/
stm32-p103
/
templates
/
empty
/
main.c
diff --git
a/boards/stm32-p103/templates/empty/main.c
b/boards/stm32-p103/templates/empty/main.c
index 33777883a8dd2200d9c64f503957c69c1c0a0d7c..577a98a652e53419baf2bfa9fd86bf886c4c7f20 100644
(file)
--- a/
boards/stm32-p103/templates/empty/main.c
+++ b/
boards/stm32-p103/templates/empty/main.c
@@
-46,17
+46,28
@@
static void init(void)
{
static void init(void)
{
+ /* Enable all the interrupts */
IRQ_ENABLE;
IRQ_ENABLE;
+ /* Initialize debugging module (allow kprintf(), etc.) */
kdbg_init();
kdbg_init();
+ /* Initialize system timer */
timer_init();
timer_init();
- proc_init();
+ /* Initialize LED driver */
LED_INIT();
LED_INIT();
+
+ /*
+ * Kernel initialization: processes (allow to create and dispatch
+ * processes using proc_new()).
+ */
+ proc_init();
}
int main(void)
{
init();
}
int main(void)
{
init();
+
+ /* Put your code here... */
while (1)
{
}
while (1)
{
}