Home icon indicating copy to clipboard operation
Home copied to clipboard

Update all legacy ESP32 drivers to latest IDF API

Open AdrianSoundy opened this issue 1 year ago • 2 comments

Details about Problem

Since updating to IDF-5.x for ESP32 we are using the legacy API for a number of devices. The legacy devices are being reported on startup from boot loader.

These need to be updated so they use the current API. This will also mean updating the C# API to support the new native API and any new features. Any changes reflected in C# API will also require the Samples and nanoFramework.IoT.Device assemblies using those devices updated.

For more details see migration guides https://docs.espressif.com/projects/esp-idf/en/v5.3.2/esp32/migration-guides/release-5.x/5.0/peripherals.html

This task can be used to track the progress of updates with specific driver changes in a separate issue.

Description

The following devices will need to be updated.

In most drivers the architecture has changed from specifying a hardware channel to open to just opening the next resource available and returning a handle.

  • [ ] ADC
  • [ ] DAC
  • [ ] I2C
    • Required for IDF 5.3.2 release
    • Can fix #1534
  • [ ] I2S
  • [ ] Pulse Counter Driver (Done)
  • [ ] RMT (In progress https://github.com/nanoframework/Home/issues/1540)
  • [ ] PWM

AdrianSoundy avatar Jan 03 '25 05:01 AdrianSoundy

https://github.com/nanoframework/nf-interpreter/pull/3152

networkfusion avatar Apr 12 '25 20:04 networkfusion

@AdrianSoundy can you please update the check list above? You probably have this fresh on your mind... 😉

josesimoes avatar Oct 31 '25 09:10 josesimoes