diff options
Diffstat (limited to 'demos/AVR-ATmega128-GCC/main.c')
-rw-r--r-- | demos/AVR-ATmega128-GCC/main.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/demos/AVR-ATmega128-GCC/main.c b/demos/AVR-ATmega128-GCC/main.c index b63d793b5..c02ef5404 100644 --- a/demos/AVR-ATmega128-GCC/main.c +++ b/demos/AVR-ATmega128-GCC/main.c @@ -41,6 +41,9 @@ static void TimerHandler(eventid_t id) { TestThread(&SD2);
}
+/*
+ * Application entry point.
+ */
int main(int argc, char **argv) {
static EvTimer evt;
static evhandler_t handlers[1] = {
@@ -48,12 +51,14 @@ int main(int argc, char **argv) { };
static EventListener el0;
- hwinit();
-
/*
- * The main() function becomes a thread here then the interrupts are
- * enabled and ChibiOS/RT goes live.
+ * System initializations.
+ * - HAL initialization, this also initializes the configured device drivers
+ * and performs the board-specific initializations.
+ * - Kernel initialization, the main() function becomes a thread and the
+ * RTOS is active.
*/
+ halInit();
chSysInit();
/*
|