Page 1 of 1

I2Cv1 without DMA

Posted: Mon Aug 14, 2017 12:44 pm
by Thargon
Ever faced the problem of having not enough DMAs for your task? Why not free it of low-priority I2C transfers? If your system uses I2Cv1, the salvation to your misery is attached to this post! ;)

I enhanced the driver to support the full state machine of the I2C logic and added required data fields to the driver struct. Note that with activated DMA the driver is still as lightweight as before, whilst with DMA deactivated (STM32_I2C_USE_DMA set to FALSE in mcuconf.h) all DMA-related code is omitted and no unused overhead remains.

Mayhaps someone other than me finds this useful :)

cheers,
Thomas

Re: I2Cv1 without DMA

Posted: Tue Aug 15, 2017 5:32 pm
by Giovanni
Moved in "small change requests".

Giovanni