Code: Select all
typedef struct _Task
{
tStack* stackPointer; /**< Pointer to the current task stack. THIS MUST BE THE FIRST ENTRY IN THIS STRUCTURE */
tTaskState state; /**< Current task state */
uint8_t priority; /**< Task priority */
uint16_t ticksToWait; /**< Timeout value that will be counted down at each system tick */
char* taskName; /**< Pointer to the task name */
struct _Task* next; /**< Pointer to the next task in the linked list */
} tTask;