thepurpleone
I actually have 8 dma channels writing to a buffer each time they're triggered by a PIO FIFO write.
This means that the buffer always contains the last value from the PIOs
But there could be cases where the PIO do not write to the fifo for a long time, and i dont want to take the last value from the buffer in those cases.
So i want to write a zero to the buffer each time i read it in order to know if i already read it (if there is still a zero, there is no new value)