From 3022d886372b71e22df29e5470f4607cebbd8fc1 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Fri, 23 Oct 2020 09:35:23 +0200 Subject: [PATCH] Adapted platform test code to new bootstrap organisation --- tests/platform/MD380_blink.c | 33 +-------------------------------- tests/platform/MD380_display.c | 33 +-------------------------------- 2 files changed, 2 insertions(+), 64 deletions(-) diff --git a/tests/platform/MD380_blink.c b/tests/platform/MD380_blink.c index 552ce9b1..fc256239 100644 --- a/tests/platform/MD380_blink.c +++ b/tests/platform/MD380_blink.c @@ -27,10 +27,6 @@ #include "delays.h" #include -static OS_TCB startTCB; -static CPU_STK_SIZE startStk[APP_CFG_TASK_START_STK_SIZE]; -static void startTask(void *arg); - static OS_TCB t1TCB; static CPU_STK_SIZE t1Stk[128]; static void t1(void *arg); @@ -43,34 +39,6 @@ int main(void) { OS_ERR err; - OSInit(&err); - - OSTaskCreate((OS_TCB *)&startTCB, - (CPU_CHAR *)" ", - (OS_TASK_PTR ) startTask, - (void *) 0, - (OS_PRIO ) APP_CFG_TASK_START_PRIO, - (CPU_STK *)&startStk[0], - (CPU_STK )startStk[APP_CFG_TASK_START_STK_SIZE / 10u], - (CPU_STK_SIZE) APP_CFG_TASK_START_STK_SIZE, - (OS_MSG_QTY ) 0, - (OS_TICK ) 0, - (void *) 0, - (OS_OPT )(OS_OPT_TASK_STK_CHK | OS_OPT_TASK_STK_CLR), - (OS_ERR *)&err); - - OSStart(&err); - - for(;;) ; - return 0; -} - -static void startTask(void* arg) -{ - - (void) arg; - OS_ERR err; - gpio_setMode(GPIOE, 0, OUTPUT); gpio_setMode(GPIOE, 1, OUTPUT); @@ -106,6 +74,7 @@ static void startTask(void* arg) (OS_ERR *)&err); while(1) ; + return 0; } static void t1(void *arg) diff --git a/tests/platform/MD380_display.c b/tests/platform/MD380_display.c index a4b68d81..382223c9 100644 --- a/tests/platform/MD380_display.c +++ b/tests/platform/MD380_display.c @@ -29,10 +29,6 @@ #include "hwconfig.h" #include "platform.h" -static OS_TCB startTCB; -static CPU_STK_SIZE startStk[APP_CFG_TASK_START_STK_SIZE]; -static void startTask(void *arg); - static OS_TCB t1TCB; static CPU_STK_SIZE t1Stk[128]; static void t1(void *arg); @@ -60,34 +56,6 @@ int main(void) { OS_ERR err; - OSInit(&err); - - OSTaskCreate((OS_TCB *)&startTCB, - (CPU_CHAR *)" ", - (OS_TASK_PTR ) startTask, - (void *) 0, - (OS_PRIO ) APP_CFG_TASK_START_PRIO, - (CPU_STK *)&startStk[0], - (CPU_STK )startStk[APP_CFG_TASK_START_STK_SIZE / 10u], - (CPU_STK_SIZE) APP_CFG_TASK_START_STK_SIZE, - (OS_MSG_QTY ) 0, - (OS_TICK ) 0, - (void *) 0, - (OS_OPT )(OS_OPT_TASK_STK_CHK | OS_OPT_TASK_STK_CLR), - (OS_ERR *)&err); - - OSStart(&err); - - for(;;) ; - return 0; -} - -static void startTask(void* arg) -{ - - (void) arg; - OS_ERR err; - gpio_setMode(GPIOE, 0, OUTPUT); gpio_setMode(GPIOE, 1, OUTPUT); @@ -123,6 +91,7 @@ static void startTask(void* arg) (OS_ERR *)&err); while(1) ; + return 0; } static void t1(void *arg)