medium10 pts · first answer countsrtosinterruptsdesign-patterns
Lock-free ring buffer from ISR to task
An ISR writes bytes into a ring buffer and one task reads them. The ISR only changes head and the task only changes tail. Why does this work without disabling interrupts on a Cortex-M?
Discussion 0
Join free to post in the discussion.
Related questions
- Why use volatileEmbedded Systems Engineer
- Keeping ISRs shortEmbedded Systems Engineer
- The interrupt vector tableEmbedded Systems Engineer
- Delaying inside an RTOS taskEmbedded Systems Engineer
- Mutex compared with semaphoreEmbedded Systems Engineer
- Waiting inside an RTOS taskEmbedded Systems Engineer
- Doing heavy work in an ISREmbedded Systems Engineer
- printf inside an interruptEmbedded Systems Engineer