The Kinetis SDK provides the µC/OS-II 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)+4U) |
| To provide unified task piority for upper layer, OSA layer makes conversion.
|
|
#define | PRIORITY_RTOS_TO_OSA(rtos_prio) ((rtos_prio)-4U) |
|
Data Fields |
OS_EVENT * | pQueue |
| Pointer to the queue.
|
|
void ** | msgTbl |
| Pointer to the array that saves the pointers to messages.
|
|
OS_MEM * | pMem |
| Pointer to memory where save the messages.
|
|
void * | msgs |
| Memory to 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
OS_TCB * task_handler_t
Type for a task handler, returned by the OSA_TaskCreate function.
Definition: fsl_os_abstraction_ucosii.h:88
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 MSG_QUEUE_DECLARE |
( |
|
name, |
|
|
|
number, |
|
|
|
size |
|
) |
| |
Value:void* msgTbl_##name[number]; \
uint32_t msgs_##name[number*size];
\
.msgs = msgs_##name \
msgq_ucosii msg_queue_t
Type for a message queue.
Definition: fsl_os_abstraction_ucosii.h:82
void ** msgTbl
Pointer to the array that saves the pointers to messages.
Definition: fsl_os_abstraction_ucosii.h:63
- Parameters
-
name | Identifier for the memory region. |
number | Number of elements in the queue. |
size | Size of every elements in words. |