Complete the code to send data to a queue from an ISR.
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
xQueueSendFromISR(queueHandle, &data, &[1]);Complete the code to perform a context switch if needed after sending to the queue from ISR.
if (xHigherPriorityTaskWoken) { [1](xHigherPriorityTaskWoken); }
Fix the error in the ISR queue send call by completing the blank.
BaseType_t result = xQueueSendFromISR(queueHandle, &data, [1]); if (result != pdPASS) { // Handle error }
Fill both blanks to create a queue and send data from ISR correctly.
QueueHandle_t queueHandle = xQueueCreate([1], sizeof(int)); BaseType_t xHigherPriorityTaskWoken = pdFALSE; xQueueSendFromISR(queueHandle, &data, &[2]);
Fill all three blanks to send data from ISR and perform a context switch if needed.
BaseType_t [1] = pdFALSE; BaseType_t result = xQueueSendFromISR(queueHandle, &data, &[2]); if ([3]) { portYIELD_FROM_ISR([1]); }
