aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM8S
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 11:07:54 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 11:07:54 +0000
commit1f18297e2a7c96659a63821a766050013e23bf67 (patch)
treec2630de175662f9a774f688a78f97aa15e7d8d46 /testhal/STM8S
parentfa1b222c21a4c2aee932d6605facb9706bf0dae3 (diff)
downloadChibiOS-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')
-rw-r--r--testhal/STM8S/SPI/demo/main.c11
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.