Complete the code to send a task notification to unblock the task.
xTaskNotifyGive([1]);The function xTaskNotifyGive() requires the handle of the task to notify, which is xTaskHandle.
Complete the code to receive a notification and unblock the task.
ulTaskNotifyTake([1], portMAX_DELAY);pdFALSE which does not clear the notification value.pdPASS or pdFAIL.The first parameter of ulTaskNotifyTake() is pdTRUE to clear the notification value on exit.
Fix the error in the queue send function to avoid blocking the task indefinitely.
xQueueSend([1], &item, 0);
The first parameter of xQueueSend() must be a queue handle, here xQueue.
Fill both blanks to create a dictionary mapping task names to their notification counts, filtering tasks with counts greater than 5.
task_notifications = {task_name: [1] for task_name, count in tasks.items() if count [2] 5}The dictionary comprehension maps task_name to count for counts greater than 5.
Fill all three blanks to create a dictionary of tasks with notification counts above zero, using uppercase task names as keys.
active_tasks = {{ [1]: [2] for [3], count in tasks.items() if count > 0 }}The dictionary keys are uppercase task names, values are counts, iterating over task_name and count.