From 86e7f82aceb9bd4289dc5dad35d7a5849f794e93 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Mon, 16 Nov 2020 08:42:10 +0100 Subject: [PATCH] Moved platform initialisation to main() function --- openrtx/src/bootstrap.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/openrtx/src/bootstrap.c b/openrtx/src/bootstrap.c index 09c00864..084ed256 100644 --- a/openrtx/src/bootstrap.c +++ b/openrtx/src/bootstrap.c @@ -19,9 +19,7 @@ #include #include #include -#include #include -#include /* * Entry point for application code, not in this translation unit. @@ -66,16 +64,13 @@ static void startTask(void* arg) CPU_Init(); - /* SysTick is available only for ARM-based targets */ + /* On ARM-based targets setup SysTick */ #ifdef __arm__ OS_CPU_SysTickInitFreq(SystemCoreClock); #else OS_CPU_SysTickInit(); #endif - /* Initialise platform drivers */ - platform_init(); - /* Jump to application code */ main(0, NULL);