Does anyone know the procedure for canceling DMA transfers mid-stream?
Inside the DMA_CR register there are CX and ECX bits, but it is not at all clear how to use them. There is no method I can discern for telling the DMA controller what channel to cancel. The bit descriptions say they cancel the "executing" channel, but then right above it, it says writes to CR can only be performed when the channel is inactive. Who came up with this!?
Searches turn up nothing, I can't find any descriptions, code, or appnotes on how to use these cancel bits. Any ideas?
Inside the DMA_CR register there are CX and ECX bits, but it is not at all clear how to use them. There is no method I can discern for telling the DMA controller what channel to cancel. The bit descriptions say they cancel the "executing" channel, but then right above it, it says writes to CR can only be performed when the channel is inactive. Who came up with this!?
Searches turn up nothing, I can't find any descriptions, code, or appnotes on how to use these cancel bits. Any ideas?