diff options
Diffstat (limited to 'demos/ARM7-AT91SAM7S-GCC/main.c')
-rw-r--r-- | demos/ARM7-AT91SAM7S-GCC/main.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/demos/ARM7-AT91SAM7S-GCC/main.c b/demos/ARM7-AT91SAM7S-GCC/main.c index 82e1ee5f2..49ce3df70 100644 --- a/demos/ARM7-AT91SAM7S-GCC/main.c +++ b/demos/ARM7-AT91SAM7S-GCC/main.c @@ -35,14 +35,24 @@ static msg_t Thread1(void *p) { }
/*
- * Entry point, note, the main() function is already a thread in the system
- * on entry.
+ * Application entry point.
*/
int main(int argc, char **argv) {
+
(void)argc;
(void)argv;
/*
+ * 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();
+
+ /*
* Activates the serial driver 1 using the driver default configuration.
*/
sdStart(&SD1, NULL);
|