I2Cv1 without DMA

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Thargon
Posts: 135
Joined: Wed Feb 04, 2015 5:03 pm
Location: CITEC, Bielefeld University, germany
Has thanked: 15 times
Been thanked: 24 times
Contact:

I2Cv1 without DMA

Postby Thargon » Mon Aug 14, 2017 12:44 pm

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
Attachments
Introduced-I2C-without-DMA.patch.zip
(3.76 KiB) Downloaded 207 times

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: I2Cv1 without DMA

Postby Giovanni » Tue Aug 15, 2017 5:32 pm

Moved in "small change requests".

Giovanni


Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 5 guests