Statically-Allocated I2C Component

therealergo
Posts: 8
Joined: Wed Jun 30, 2021 6:16 pm

Statically-Allocated I2C Component

Postby therealergo » Mon Sep 06, 2021 8:17 pm

Hey All!

In a recent project, I was having issues with jitter caused by all of the ESP-IDF I2C driver's heap allocations. It looks like there's currently work going into updating this driver to allow static allocation in the ESP-IDF repo, but unfortunately I'm stuck on ESP-IDF 4.3 right now so I can't use it. To work around this, I created a simple (~100loc) component that allows for statically-allocated use of the existing I2C driver. You can find it here https://github.com/therealergo/i2c_esp32_static if that sounds like something you'd find handy.

User avatar
fasani
Posts: 197
Joined: Wed Jan 30, 2019 12:00 pm
Location: Barcelona
Contact:

Re: Statically-Allocated I2C Component

Postby fasani » Sat Sep 11, 2021 6:10 am

Good job there! And interesting contribution.
I starred this in GitHub since may come in handy soon
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design

Who is online

Users browsing this forum: No registered users and 15 guests