Bird
0
0

In FreeRTOS, which function is used to wait for one or more event bits to be set in an event group?

easy📝 Conceptual Q2 of 15
FreeRTOS - Design Patterns for RTOS
In FreeRTOS, which function is used to wait for one or more event bits to be set in an event group?
AxEventGroupWaitBits()
BxEventGroupSetBits()
CxEventGroupClearBits()
DxEventGroupCreate()
Step-by-Step Solution
Solution:
  1. Step 1: Identify functions related to event groups

    Functions include setting bits, waiting for bits, clearing bits, and creating event groups.
  2. Step 2: Match function to waiting for event bits

    The function to wait for bits is xEventGroupWaitBits(), which blocks until bits are set.
  3. Final Answer:

    xEventGroupWaitBits() -> Option A
  4. Quick Check:

    Wait for bits function = xEventGroupWaitBits() [OK]
Quick Trick: Wait for event bits with xEventGroupWaitBits() [OK]
Common Mistakes:
  • Using xEventGroupSetBits() to wait instead of set
  • Confusing clear bits with wait bits
  • Mistaking create function for wait function

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes