aboutsummaryrefslogtreecommitdiffstats
path: root/demos/MSP430-MSP430x1611-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC/main.c')
-rw-r--r--demos/MSP430-MSP430x1611-GCC/main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/main.c b/demos/MSP430-MSP430x1611-GCC/main.c
index 3bac249d0..c010b89b3 100644
--- a/demos/MSP430-MSP430x1611-GCC/main.c
+++ b/demos/MSP430-MSP430x1611-GCC/main.c
@@ -38,7 +38,7 @@ static msg_t Thread1(void *arg) {
}
/*
- * Entry point, the interrupts are disabled on entry.
+ * Application entry point.
*/
int main(int argc, char **argv) {
@@ -46,9 +46,14 @@ int main(int argc, char **argv) {
(void)argv;
/*
- * Hardware initialization, see board.c.
+ * 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.
*/
- hwinit();
+ halInit();
+ chSysInit();
/*
* Activates the serial driver 2 using the driver default configuration.