hard20 pts · first answer countsconcurrencydata-structures
A lock-free ISR ring buffer
A UART ISR writes into a ring buffer and the main loop reads from it, with no critical sections. What makes this safe on a single-core Cortex-M?
Discussion 0
Join free to post in the discussion.
Related questions
- Priority inversionEmbedded Systems Engineer
- Buffering UART dataEmbedded Systems Engineer
- Counter shared with an ISREmbedded Systems Engineer
- Ring buffer index with a maskEmbedded Systems Engineer
- Atomic GPIO writesEmbedded Systems Engineer
- Garbled log text from two tasksEmbedded Systems Engineer
- Timestamp jumps backwardsEmbedded Systems Engineer
- Duplicate emails despite a checkBackend Developer