Bird
0
0

Which combination of steps is correct?Configure interrupt priorities properlyUse portYIELD_FROM_ISR() inside ISRsDisable all interrupts during ISR executionUse FromISR API versions for FreeRTOS calls inside ISRsChoose the best combination.

hard📝 Application Q15 of 15
FreeRTOS - Interrupt Management

You want to implement nested interrupt handling where a high priority interrupt can preempt a low priority one and safely switch tasks if needed. Which combination of steps is correct?

  1. Configure interrupt priorities properly
  2. Use portYIELD_FROM_ISR() inside ISRs
  3. Disable all interrupts during ISR execution
  4. Use FromISR API versions for FreeRTOS calls inside ISRs

Choose the best combination.

A1, 2, and 4 only
B1 and 3 only
C2, 3, and 4 only
DAll four steps
Step-by-Step Solution
Solution:
  1. Step 1: Configure interrupt priorities

    Proper priority setup allows nested interrupts to work correctly.
  2. Step 2: Use portYIELD_FROM_ISR and FromISR APIs

    These ensure safe task switching and API calls inside ISRs.
  3. Step 3: Avoid disabling all interrupts during ISR

    Disabling all interrupts prevents nesting, so step 3 is incorrect.
  4. Final Answer:

    1, 2, and 4 only -> Option A
  5. Quick Check:

    Nested interrupts need priorities + FromISR APIs + portYIELD_FROM_ISR [OK]
Quick Trick: Use priorities and FromISR APIs; don't disable all interrupts [OK]
Common Mistakes:
  • Disabling all interrupts prevents nesting
  • Forgetting to use FromISR API versions
  • Ignoring interrupt priority configuration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes