Add comments to the "empty" preset templates across the supported boards.
[bertos.git] / boards / stm32-p103 / templates / empty / main.c
index 33777883a8dd2200d9c64f503957c69c1c0a0d7c..577a98a652e53419baf2bfa9fd86bf886c4c7f20 100644 (file)
 
 static void init(void)
 {
+       /* Enable all the interrupts */
        IRQ_ENABLE;
 
+       /* Initialize debugging module (allow kprintf(), etc.) */
        kdbg_init();
+       /* Initialize system timer */
        timer_init();
-       proc_init();
+       /* Initialize LED driver */
        LED_INIT();
+
+       /*
+        * Kernel initialization: processes (allow to create and dispatch
+        * processes using proc_new()).
+        */
+       proc_init();
 }
 
 int main(void)
 {
        init();
+
+       /* Put your code here... */
        while (1)
        {
        }