Part Number: TMS320F28069
I have a ringbuffer that can be filled by main code and interrupts code. (interrupts can also be interrupt by other more imported interrupt). Correct interrupt handling is real important!
To solve this I need a atomic operations for my ringbuffer.
index=buffer.next=(buffer.next +1) % 16;
So I can reserve a location(index) to fillup in my ringbuffer.
What is the best way to do this?
Thanks!
EVS