diff options
Diffstat (limited to 'demos/ARMCM3-LPC1343-GCC/main.c')
-rw-r--r-- | demos/ARMCM3-LPC1343-GCC/main.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/demos/ARMCM3-LPC1343-GCC/main.c b/demos/ARMCM3-LPC1343-GCC/main.c index 996db61b3..0600865f3 100644 --- a/demos/ARMCM3-LPC1343-GCC/main.c +++ b/demos/ARMCM3-LPC1343-GCC/main.c @@ -92,8 +92,7 @@ static msg_t Thread2(void *arg) { }
/*
- * Entry point, note, the main() function is already a thread in the system
- * on entry.
+ * Application entry point.
*/
int main(int argc, char **argv) {
uint8_t i;
@@ -102,6 +101,16 @@ int main(int argc, char **argv) { (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 SD1 and SPI1 drivers.
*/
sdStart(&SD1, NULL); /* Default: 38400,8,N,1. */
|