Bird
0
0

Which of the following is the correct way to enable the idle hook in FreeRTOS?

easy📝 Syntax Q12 of 15
FreeRTOS - Task Scheduling

Which of the following is the correct way to enable the idle hook in FreeRTOS?

#define configUSE_IDLE_HOOK  ???
ANULL
B0
CTRUE
D1
Step-by-Step Solution
Solution:
  1. Step 1: Identify the config macro for idle hook

    The macro configUSE_IDLE_HOOK enables or disables the idle hook feature.
  2. Step 2: Determine the correct value to enable it

    Setting configUSE_IDLE_HOOK to 1 enables the idle hook; 0 disables it.
  3. Final Answer:

    1 -> Option D
  4. Quick Check:

    Enable idle hook = 1 [OK]
Quick Trick: Enable idle hook by setting configUSE_IDLE_HOOK to 1 [OK]
Common Mistakes:
  • Using 0 disables the idle hook
  • Using NULL or TRUE are invalid for this macro
  • Confusing with other config macros

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes