aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 10:39:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 10:39:21 +0000
commitace3f844709b1bfdd4c88acbc943bdecf29f9f21 (patch)
treeaeaa2bcbb29d67e60379a06d92e804be566f4bbb /demos
parent35c315a77a92d8ca0efefea329770c6bf9adca2d (diff)
downloadChibiOS-ace3f844709b1bfdd4c88acbc943bdecf29f9f21.tar.gz
ChibiOS-ace3f844709b1bfdd4c88acbc943bdecf29f9f21.tar.bz2
ChibiOS-ace3f844709b1bfdd4c88acbc943bdecf29f9f21.zip
AVR board files and demos updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2501 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r--demos/AVR-AT90CANx-GCC/main.c13
-rw-r--r--demos/AVR-ATmega128-GCC/main.c13
2 files changed, 18 insertions, 8 deletions
diff --git a/demos/AVR-AT90CANx-GCC/main.c b/demos/AVR-AT90CANx-GCC/main.c
index f922efed0..79888a55a 100644
--- a/demos/AVR-AT90CANx-GCC/main.c
+++ b/demos/AVR-AT90CANx-GCC/main.c
@@ -38,6 +38,9 @@ static void TimerHandler(eventid_t id) {
TestThread(&SD2);
}
+/*
+ * Application entry point.
+ */
int main(int argc, char **argv) {
static EvTimer evt;
static evhandler_t handlers[1] = {
@@ -45,12 +48,14 @@ int main(int argc, char **argv) {
};
static EventListener el0;
- hwinit();
-
/*
- * The main() function becomes a thread here then the interrupts are
- * enabled and ChibiOS/RT goes live.
+ * 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();
/*
diff --git a/demos/AVR-ATmega128-GCC/main.c b/demos/AVR-ATmega128-GCC/main.c
index b63d793b5..c02ef5404 100644
--- a/demos/AVR-ATmega128-GCC/main.c
+++ b/demos/AVR-ATmega128-GCC/main.c
@@ -41,6 +41,9 @@ static void TimerHandler(eventid_t id) {
TestThread(&SD2);
}
+/*
+ * Application entry point.
+ */
int main(int argc, char **argv) {
static EvTimer evt;
static evhandler_t handlers[1] = {
@@ -48,12 +51,14 @@ int main(int argc, char **argv) {
};
static EventListener el0;
- hwinit();
-
/*
- * The main() function becomes a thread here then the interrupts are
- * enabled and ChibiOS/RT goes live.
+ * 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();
/*