This page https://www.freertos.org/a00129.html describe Free RTOS vTaskPrioritySet
Given code in page
I am looking at example code, task could be set by priority
I do not understand code given in example, anybody know What the example of code explain ?
Given code in page
I am looking at example code, task could be set by priority
I do not understand code given in example, anybody know What the example of code explain ?
C:
void vAFunction( void )
{
TaskHandle_t xHandle;
// Create a task, storing the handle.
xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );
// ...
// Use the handle to raise the priority of the created task.
vTaskPrioritySet( xHandle, tskIDLE_PRIORITY + 1 );
// ...
// Use a NULL handle to raise our priority to the same value.
vTaskPrioritySet( NULL, tskIDLE_PRIORITY + 1 );
}