From 08776e70eb5577233debaf2615f4184fbee7d85a Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Sun, 6 Dec 2020 09:02:53 +0100 Subject: [PATCH] Threads: rename status_task to device_task --- openrtx/include/threads.h | 6 +++--- openrtx/src/threads.c | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/openrtx/include/threads.h b/openrtx/include/threads.h index 90983b06..f9368bc7 100644 --- a/openrtx/include/threads.h +++ b/openrtx/include/threads.h @@ -43,7 +43,7 @@ void create_threads(); /** * Stack size for state update task, in bytes. */ -#define STATE_TASK_STKSIZE 256*4 +#define DEV_TASK_STKSIZE 256*4 /** * Stack size for baseband control task, in bytes. @@ -65,9 +65,9 @@ void create_threads(); #define KBD_TASK_STKSIZE 256 /** - * Stack size for state update task, in bytes. + * Stack size for device update task, in bytes. */ -#define STATE_TASK_STKSIZE 1024 +#define DEV_TASK_STKSIZE 1024 /** * Stack size for baseband control task, in bytes. diff --git a/openrtx/src/threads.c b/openrtx/src/threads.c index 19f80793..ed5b0a97 100644 --- a/openrtx/src/threads.c +++ b/openrtx/src/threads.c @@ -57,9 +57,9 @@ static CPU_STK ui_stk[UI_TASK_STKSIZE/sizeof(CPU_STK)]; static OS_TCB kbd_tcb; static CPU_STK kbd_stk[KBD_TASK_STKSIZE/4]; -/* State task control block and stack */ -static OS_TCB state_tcb; -static CPU_STK state_stk[STATE_TASK_STKSIZE/sizeof(CPU_STK)]; +/* Device task control block and stack */ +static OS_TCB dev_tcb; +static CPU_STK dev_stk[DEV_TASK_STKSIZE/sizeof(CPU_STK)]; /* Baseband task control block and stack */ static OS_TCB rtx_tcb; @@ -173,7 +173,7 @@ static void kbd_task(void *arg) /** * \internal Task function in charge of updating the radio state. */ -static void state_task(void *arg) +static void dev_task(void *arg) { (void) arg; OS_ERR os_err; @@ -286,14 +286,14 @@ void create_threads() (OS_ERR *) &os_err); // Create state thread - OSTaskCreate((OS_TCB *) &state_tcb, - (CPU_CHAR *) "State Task", - (OS_TASK_PTR ) state_task, + OSTaskCreate((OS_TCB *) &dev_tcb, + (CPU_CHAR *) "Device Task", + (OS_TASK_PTR ) dev_task, (void *) 0, (OS_PRIO ) 30, - (CPU_STK *) &state_stk[0], + (CPU_STK *) &dev_stk[0], (CPU_STK ) 0, - (CPU_STK_SIZE) STATE_TASK_STKSIZE/sizeof(CPU_STK), + (CPU_STK_SIZE) DEV_TASK_STKSIZE/sizeof(CPU_STK), (OS_MSG_QTY ) 0, (OS_TICK ) 0, (void *) 0,