diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 11:02:56 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 11:02:56 +0000 |
commit | fa1b222c21a4c2aee932d6605facb9706bf0dae3 (patch) | |
tree | a068446ef83e2dc26edab631dc54e1ca2faab50d /demos | |
parent | 13f5b1b97fa1ca9516665807682c164aa926fb78 (diff) | |
download | ChibiOS-fa1b222c21a4c2aee932d6605facb9706bf0dae3.tar.gz ChibiOS-fa1b222c21a4c2aee932d6605facb9706bf0dae3.tar.bz2 ChibiOS-fa1b222c21a4c2aee932d6605facb9706bf0dae3.zip |
PPC board files and demo updated (to be tested).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2503 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/PPC-SPC563-GCC/main.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/demos/PPC-SPC563-GCC/main.c b/demos/PPC-SPC563-GCC/main.c index 6e65e2263..f5c6c9b40 100644 --- a/demos/PPC-SPC563-GCC/main.c +++ b/demos/PPC-SPC563-GCC/main.c @@ -145,8 +145,7 @@ static msg_t Thread1(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) {
Thread *shelltp = NULL;
@@ -155,6 +154,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 serial driver 1 using the driver default configuration.
*/
sdStart(&SD1, NULL);
|