STM32 - I²C LLD without DMA

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
Thargon
Posts: 113
Joined: Wed Feb 04, 2015 5:03 pm
Location: CITEC, Bielefeld University, germany
Has thanked: 11 times
Been thanked: 20 times

STM32 - I²C LLD without DMA

Postby Thargon » Thu Apr 30, 2015 10:03 am

Hi,

I have added a non-DMA option for the STM32 I2Cv1 LLD. A patch for ChibiOS 2.6.8 is attached.
This patch modifies the files os/hal/platforms/STM32/I2Cv1/i2c_lld.h and *.c, and introduces a new macro, which can be added in the mcuconf.h.

In order to deactivate DMA for the I2C communication, just add the following line in the mcuconf.h where all other I2C driver system settings are located:

Code: Select all

#define STM32_I2C_USE_DMA                   FALSE

If undefined, the macro is defined as

Code: Select all

#define STM32_I2C_USE_DMA                   TRUE
by default.

Best regards,
Thargon
Attachments
SMT32-I2Cv1-add-optional-I2C-non-DMA-driver-option.patch.zip
(3.91 KiB) Downloaded 140 times

Return to “User Projects”

Who is online

Users browsing this forum: No registered users and 1 guest