Update all legacy ESP32 drivers to latest IDF API
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.
https://github.com/nanoframework/nf-interpreter/pull/3152
@AdrianSoundy can you please update the check list above? You probably have this fresh on your mind... 😉