A buffer structure to allocate the needed memory for a task in user space. More...
#include <ZW_UserTask.h>
Data Fields | |
| StaticTask_t * | taskBuffer |
| Memory needed by the Task for internal states. Pointer to buffer. | |
| uint8_t * | stackBuffer |
| Pointer to a statically allocated stack-buffer-array for the task. Pointer to buffer. | |
| uint16_t | stackBufferLength |
| This is measured in bytes and is preferably a multiple of 4, or it will be rounded down. | |
A buffer structure to allocate the needed memory for a task in user space.
The stack size is not fixed, but limited to between TASK_STACK_SIZE_MAX and TASK_STACK_SIZE_MIN. The actual size chosen must be set in stackBufferLength The buffers must be allocated elsewhere, since this structure does not allocate any space, but holds the pointers to the buffers
| uint8_t* ZW_UserTask_Buffer_t::stackBuffer |
Pointer to a statically allocated stack-buffer-array for the task. Pointer to buffer.
| uint16_t ZW_UserTask_Buffer_t::stackBufferLength |
This is measured in bytes and is preferably a multiple of 4, or it will be rounded down.
| StaticTask_t* ZW_UserTask_Buffer_t::taskBuffer |
Memory needed by the Task for internal states. Pointer to buffer.