L0 I2C slave RX DMA - clean cancel with I2C STOP ?
Heyho,
using L073 at 32MHz, so even I2C transfers "seem" fast, at least in "fast mode plus" at SCL 1 MHz. And I don't want to over-use clock stretching.
I'm looking for a way to use I2C slave receive with DMA, but an unknown transfer length.
Right now it looks to me as if I could do the following:
- I2C & DMA prep: all stuff & addresses set, DMA in I2C enabled
- on I2C ADDR match interrupt:
- set DMA CNDTR to max buffer length
- enable DMA
- on I2C STOP match interrupt:
- disable DMA
Any problems with that?
Have only 1 device for now...
Thanks!
