diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-04 09:31:36 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-04 09:31:36 +0000 |
commit | 9415b92dde53fe5898be66a29ccf35bb25d2ebe5 (patch) | |
tree | fa02cd4b70eb9a7ba5ae6d742b8b8530403ce582 /demos/ARMCM3-STM32F103-GCC/main.c | |
parent | 102341ad5d0e39af783675233b888977ab4585db (diff) | |
download | ChibiOS-9415b92dde53fe5898be66a29ccf35bb25d2ebe5.tar.gz ChibiOS-9415b92dde53fe5898be66a29ccf35bb25d2ebe5.tar.bz2 ChibiOS-9415b92dde53fe5898be66a29ccf35bb25d2ebe5.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@450 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/main.c')
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/main.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/main.c b/demos/ARMCM3-STM32F103-GCC/main.c index 59e7b792a..0df4bc03d 100644 --- a/demos/ARMCM3-STM32F103-GCC/main.c +++ b/demos/ARMCM3-STM32F103-GCC/main.c @@ -39,17 +39,12 @@ static msg_t Thread1(void *arg) { }
/*
- * Entry point, the interrupts are disabled on entry.
+ * Entry point, note, the main() function is already a thread in the system
+ * on entry.
*/
int main(int argc, char **argv) {
/*
- * The main() function becomes a thread here then the interrupts are
- * enabled and ChibiOS/RT goes live.
- */
- chSysInit();
-
- /*
* Creates the blinker thread.
*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
|