Bird
0
0

Which of the following is the correct syntax to notify a task in FreeRTOS?

easy📝 Syntax Q3 of 15
FreeRTOS - Task Notifications
Which of the following is the correct syntax to notify a task in FreeRTOS?
AxTaskNotify(taskHandle, 0, eSetValueWithOverwrite);
BxNotifyTask(taskHandle, 0, eSetValueWithOverwrite);
CtaskNotifySend(taskHandle, 0, eSetValueWithOverwrite);
DnotifyTask(xTaskHandle, 0, eSetValueWithOverwrite);
Step-by-Step Solution
Solution:
  1. Step 1: Recall FreeRTOS API naming conventions

    FreeRTOS uses the prefix 'xTaskNotify' for task notification functions.
  2. Step 2: Match correct function and parameters

    The correct function is xTaskNotify with parameters: task handle, value, and action.
  3. Final Answer:

    xTaskNotify(taskHandle, 0, eSetValueWithOverwrite); -> Option A
  4. Quick Check:

    Correct API name = xTaskNotify [OK]
Quick Trick: Use xTaskNotify to send notifications [OK]
Common Mistakes:
  • Using incorrect function names like xNotifyTask
  • Mixing parameter order
  • Using non-existent functions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes