diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 09:13:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 09:13:54 +0000 |
commit | 7d7d9727f9a280d63157ac9997fe271610f05b1e (patch) | |
tree | fe51a6af796f2d0976025db4b68d553875bf0994 /demos/ARMCM3-STM32F103-FATFS-GCC/main.c | |
parent | 3b378d2b9b86bc4242873982a9222e3abcbfaead (diff) | |
download | ChibiOS-7d7d9727f9a280d63157ac9997fe271610f05b1e.tar.gz ChibiOS-7d7d9727f9a280d63157ac9997fe271610f05b1e.tar.bz2 ChibiOS-7d7d9727f9a280d63157ac9997fe271610f05b1e.zip |
STM32 board files and demos now use the new organization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2497 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F103-FATFS-GCC/main.c')
-rw-r--r-- | demos/ARMCM3-STM32F103-FATFS-GCC/main.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/demos/ARMCM3-STM32F103-FATFS-GCC/main.c b/demos/ARMCM3-STM32F103-FATFS-GCC/main.c index c9407731c..1d0018b9b 100644 --- a/demos/ARMCM3-STM32F103-FATFS-GCC/main.c +++ b/demos/ARMCM3-STM32F103-FATFS-GCC/main.c @@ -264,8 +264,7 @@ static void RemoveHandler(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[] = {
@@ -279,6 +278,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 2 using the driver default configuration.
*/
sdStart(&SD2, NULL);
|