hard20 pts · first answer countsrtosfreertoscritical-sections
Critical section inside an ISR
Inside an ISR, FreeRTOS code must protect a shared structure. Which pattern is correct?
UBaseType_t s = taskENTER_CRITICAL_FROM_ISR(); update_shared(); taskEXIT_CRITICAL_FROM_ISR(s);
Discussion 0
Join free to post in the discussion.
Related questions
- Delaying inside an RTOS taskEmbedded Systems Engineer
- Mutex compared with semaphoreEmbedded Systems Engineer
- Waiting inside an RTOS taskEmbedded Systems Engineer
- What real-time really meansEmbedded Systems Engineer
- Hard versus soft deadlinesEmbedded Systems Engineer
- FreeRTOS task waiting on a queueEmbedded Systems Engineer
- Which task the scheduler runsEmbedded Systems Engineer
- Two tasks at the same priorityEmbedded Systems Engineer