Complete the code to wait for a notification using ulTaskNotifyTake.
uint32_t ulNotificationValue = ulTaskNotifyTake(pdTRUE, [1]);ulTaskNotifyTake waits indefinitely for a notification when the block time is set to portMAX_DELAY.
Complete the code to clear the notification value on exit.
uint32_t ulNotificationValue = ulTaskNotifyTake([1], portMAX_DELAY);Setting ulClearCountOnExit to pdTRUE clears the notification value when the function returns.
Fix the error in the code to correctly receive a counting notification.
uint32_t ulNotificationValue = ulTaskNotifyTake(pdTRUE, [1]);The block time must be a valid tick count or portMAX_DELAY to wait properly. Using 0 causes immediate return.
Fill both blanks to create a counting notification wait that clears on exit and waits forever.
uint32_t ulNotificationValue = ulTaskNotifyTake([1], [2]);
Use pdTRUE to clear the count on exit and portMAX_DELAY to wait indefinitely.
Fill all three blanks to check if a notification was received and print its value.
uint32_t ulNotificationValue = ulTaskNotifyTake([1], [2]); if (ulNotificationValue [3] 0) { printf("Notification count: %u\n", ulNotificationValue); }
Clear count on exit with pdTRUE, wait forever with portMAX_DELAY, and check if notification count is greater than 0.