Threads: rename status_task to device_task
This commit is contained in:
parent
0fb3493bef
commit
08776e70eb
|
|
@ -43,7 +43,7 @@ void create_threads();
|
||||||
/**
|
/**
|
||||||
* Stack size for state update task, in bytes.
|
* 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.
|
* Stack size for baseband control task, in bytes.
|
||||||
|
|
@ -65,9 +65,9 @@ void create_threads();
|
||||||
#define KBD_TASK_STKSIZE 256
|
#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.
|
* Stack size for baseband control task, in bytes.
|
||||||
|
|
|
||||||
|
|
@ -57,9 +57,9 @@ static CPU_STK ui_stk[UI_TASK_STKSIZE/sizeof(CPU_STK)];
|
||||||
static OS_TCB kbd_tcb;
|
static OS_TCB kbd_tcb;
|
||||||
static CPU_STK kbd_stk[KBD_TASK_STKSIZE/4];
|
static CPU_STK kbd_stk[KBD_TASK_STKSIZE/4];
|
||||||
|
|
||||||
/* State task control block and stack */
|
/* Device task control block and stack */
|
||||||
static OS_TCB state_tcb;
|
static OS_TCB dev_tcb;
|
||||||
static CPU_STK state_stk[STATE_TASK_STKSIZE/sizeof(CPU_STK)];
|
static CPU_STK dev_stk[DEV_TASK_STKSIZE/sizeof(CPU_STK)];
|
||||||
|
|
||||||
/* Baseband task control block and stack */
|
/* Baseband task control block and stack */
|
||||||
static OS_TCB rtx_tcb;
|
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.
|
* \internal Task function in charge of updating the radio state.
|
||||||
*/
|
*/
|
||||||
static void state_task(void *arg)
|
static void dev_task(void *arg)
|
||||||
{
|
{
|
||||||
(void) arg;
|
(void) arg;
|
||||||
OS_ERR os_err;
|
OS_ERR os_err;
|
||||||
|
|
@ -286,14 +286,14 @@ void create_threads()
|
||||||
(OS_ERR *) &os_err);
|
(OS_ERR *) &os_err);
|
||||||
|
|
||||||
// Create state thread
|
// Create state thread
|
||||||
OSTaskCreate((OS_TCB *) &state_tcb,
|
OSTaskCreate((OS_TCB *) &dev_tcb,
|
||||||
(CPU_CHAR *) "State Task",
|
(CPU_CHAR *) "Device Task",
|
||||||
(OS_TASK_PTR ) state_task,
|
(OS_TASK_PTR ) dev_task,
|
||||||
(void *) 0,
|
(void *) 0,
|
||||||
(OS_PRIO ) 30,
|
(OS_PRIO ) 30,
|
||||||
(CPU_STK *) &state_stk[0],
|
(CPU_STK *) &dev_stk[0],
|
||||||
(CPU_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_MSG_QTY ) 0,
|
||||||
(OS_TICK ) 0,
|
(OS_TICK ) 0,
|
||||||
(void *) 0,
|
(void *) 0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue