The Kinetis SDK provides the µC/OS-III Abstraction Layer for synchronization, mutual exclusion, message queue, etc.
More...
|
#define | OSA_TASK_DEFINE(task, stackSize) |
| Defines a task. More...
|
|
#define | PRIORITY_OSA_TO_RTOS(osa_prio) ((osa_prio)+1U) |
| To provide unified task piority for upper layer, OSA layer makes conversion. More...
|
|
#define | PRIORITY_RTOS_TO_OSA(rtos_prio) ((rtos_prio)-1U) |
|
struct msgq_struct_ucosiii |
Data Fields |
OS_Q | queue |
| the message queue's control block
|
|
OS_MEM | mem |
| control block for the memory where save the messages
|
|
void * | msgs |
| pointer to the memory where save the messages
|
|
uint16_t | size |
| size of the message in words
|
|
#define OSA_WAIT_FOREVER 0xFFFFFFFFU |
#define FSL_OSA_TIME_RANGE 0xFFFFFFFFU |
#define OSA_TASK_DEFINE |
( |
|
task, |
|
|
|
stackSize |
|
) |
| |
Value:
uint32_t task_stack_t
Type for a task stack.
Definition: fsl_os_abstraction_bm.h:104
CPU_STK task_stack_t
Type for a task stack.
Definition: fsl_os_abstraction_ucosiii.h:72
OS_TCB * task_handler_t
Type for a task handler, returned by the OSA_TaskCreate function.
Definition: fsl_os_abstraction_ucosiii.h:69
This macro defines resources for a task statically. Then, the OSA_TaskCreate creates the task based on these resources.
- Parameters
-
task | The task function. |
stackSize | The stack size this task needs in bytes. |
#define PRIORITY_OSA_TO_RTOS |
( |
|
osa_prio | ) |
((osa_prio)+1U) |
uC/OS-III's tick task should have a high piority, so we set tick task to piority 0, applications use other priorities.
#define MSG_QUEUE_DECLARE |
( |
|
name, |
|
|
|
number, |
|
|
|
size |
|
) |
| |
Value:uint32_t msgs_##name[number*size];
\
msgq_struct_ucosiii msg_queue_t
Type for a message queue.
Definition: fsl_os_abstraction_ucosiii.h:93
void * msgs
pointer to the memory where save the messages
Definition: fsl_os_abstraction_ucosiii.h:64
- Parameters
-
name | Identifier for the memory region. |
number | Number of elements in the queue. |
size | Size of every elements in words. |