aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM8S/SPI/demo/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM8S/SPI/demo/main.c')
-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.