[INFO] I2C fallback driver added

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
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:

[INFO] I2C fallback driver added

Postby Giovanni » Tue Jan 17, 2017 2:30 pm

Hi,

I added a bit banged I2C driver to the HAL, it can be used when an HW I2C is not present or not usable/reliable.

It sits on top of the PAL driver so it should be usable on any platform. In order to enable it on the STM32 put "USE_HAL_I2C_FALLBACK = yes" in the Makefile, it will replace the default LLD.

Note that delays are implemented using osalThreadSleep() so the data rate is slow but the driver is thread friendly. If you want an higher data rate then you can provide an alternative delay function in the configuration structure. The delay unit represents half bit time

To be tested, I don't have much time right now.

Giovanni

Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 16 guests