aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-G++
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 10:03:11 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 10:03:11 +0000
commitf131e4297dc619b3f3148a079c634f2cec0fd687 (patch)
tree66164de11b5b76539a1886c9fe58cdb1c9ea86de /demos/ARM7-LPC214x-G++
parentada9fb82aac5f1bc2465d4555380c2bef40cb8d3 (diff)
downloadChibiOS-f131e4297dc619b3f3148a079c634f2cec0fd687.tar.gz
ChibiOS-f131e4297dc619b3f3148a079c634f2cec0fd687.tar.bz2
ChibiOS-f131e4297dc619b3f3148a079c634f2cec0fd687.zip
LPC214x board files and demos updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2499 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-G++')
-rw-r--r--demos/ARM7-LPC214x-G++/main.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-G++/main.cpp b/demos/ARM7-LPC214x-G++/main.cpp
index b6b7c83ba..8a9ca1c05 100644
--- a/demos/ARM7-LPC214x-G++/main.cpp
+++ b/demos/ARM7-LPC214x-G++/main.cpp
@@ -142,8 +142,7 @@ static void TimerHandler(eventid_t id) {
}
/*
- * Entry point, note, the main() function is already a thread in the system
- * on entry.
+ * Application entry point.
*/
int main(int argc, char **argv) {
static const evhandler_t evhndl[] = {
@@ -156,6 +155,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();
+ System::Init();
+
+ /*
* Activates the serial driver 2 using the driver default configuration.
*/
sdStart(&SD1, NULL);