Complete the code to create an event group.
EventGroupHandle_t [1] = xEventGroupCreate();The event group handle is usually declared with a meaningful name like myEventGroup.
Complete the code to wait for bits 0x01 and 0x02 to be set in the event group.
xEventGroupWaitBits(myEventGroup, [1], pdTRUE, pdTRUE, portMAX_DELAY);Bits 0x01 and 0x02 combined is 0x03 (bitwise OR).
Fix the error in the code to set bit 0x04 in the event group.
xEventGroupSetBits([1], 0x04);
The event group handle used must be the one created and named myEventGroup.
Fill both blanks to create an event group and wait for bit 0x08 without clearing it.
EventGroupHandle_t [1] = xEventGroupCreate(); xEventGroupWaitBits([2], 0x08, pdFALSE, pdTRUE, portMAX_DELAY);
Use the same event group handle syncEventGroup for creation and waiting.
Fill all three blanks to set bits 0x01 and 0x02, then wait for bit 0x01 and clear it after waiting.
EventGroupHandle_t [1] = xEventGroupCreate(); xEventGroupSetBits([2], 0x03); xEventGroupWaitBits([3], 0x01, pdTRUE, pdFALSE, portMAX_DELAY);
Use the same event group handle myEventGroup for creating the event group, setting bits, and waiting.
