diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 11:07:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 11:07:54 +0000 |
commit | 1f18297e2a7c96659a63821a766050013e23bf67 (patch) | |
tree | c2630de175662f9a774f688a78f97aa15e7d8d46 /testhal/STM8S/SPI/demo/main.c | |
parent | fa1b222c21a4c2aee932d6605facb9706bf0dae3 (diff) | |
download | ChibiOS-1f18297e2a7c96659a63821a766050013e23bf67.tar.gz ChibiOS-1f18297e2a7c96659a63821a766050013e23bf67.tar.bz2 ChibiOS-1f18297e2a7c96659a63821a766050013e23bf67.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2504 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM8S/SPI/demo/main.c')
-rw-r--r-- | testhal/STM8S/SPI/demo/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/testhal/STM8S/SPI/demo/main.c b/testhal/STM8S/SPI/demo/main.c index d73d8d2ab..9ea76bcf8 100644 --- a/testhal/STM8S/SPI/demo/main.c +++ b/testhal/STM8S/SPI/demo/main.c @@ -46,14 +46,19 @@ static ROMCONST uint8_t digits[32] = { static uint8_t buffer[32];
/*
- * Entry point.
+ * Application entry point.
*/
void main(void) {
/*
- * Board/HAL initialization.
+ * 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.
*/
- hwinit();
+ halInit();
+ chSysInit();
/*
* OS initialization.
|