RTOS_Init_Snippet_3

// Loop through the task table and create each task. for(uint8_t TaskCount = 0; TaskCount < TasksToCreate; TaskCount++) { (void)xTaskCreate(TaskInitParameters[TaskCount].TaskCodePtr, TaskInitParameters[TaskCount].TaskName, TaskInitParameters[TaskCount].StackDepth, TaskInitParameters[TaskCount].ParametersPtr, TaskInitParameters[TaskCount].TaskPriority, TaskInitParameters[TaskCount].TaskHandle); }

Read More >>>

RTOS_Init_Snippet_2

/** * Task configuration table that contains all the parameters necessary to initialize * the system tasks. */ TaskInitParams_t const TaskInitParameters[] = { // Pointer to the Task function, Task String Name , The task...

Read More >>>

RTOS_Init_Snippet_1

/** * Task configuration structure used to create a task configuration table. * Note: this is for dynamic memory allocation. We create all the tasks up front * dynamically and then never allocate memory again...

Read More >>>