FreeRTOS - Task Notifications
Consider the following code snippet:
void Task1(void *pvParameters) {
// Wait for notification
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
// Continue after notification
printf("Task1 resumed\n");
}
void Task2(void *pvParameters) {
// Notify Task1
xTaskNotifyGive(Task1Handle);
}
What will be printed when Task2 calls xTaskNotifyGive()?