esp-rs / esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers
https://docs.esp-rs.org/esp-hal/
Apache License 2.0
757 stars 212 forks source link

Tracking issue to reduce boilerplate #2010

Open bugadani opened 2 months ago

bugadani commented 2 months ago

The goal of this issue is to lower the amount of code the users need to write for no good reason.

Feel free to share your pain point if you have any!

scottdalgliesh commented 2 months ago

Would it make sense to also initialize and return the io driver by default in esp_hal::init? It seems like most use cases will require access to io, but I could certainly be overlooking/misunderstanding something.

Regardless, great work on these simplifications - love to see it.

bugadani commented 2 months ago

^ a good thing to keep in mind, although we deliberately don't initialize any peripherals at this point.

MabezDev commented 3 days ago

I think we should think about closing this.

It's been great to track the "obviously" good choices (the init changes etc), but I think at this point most of the decisions we need to make going forward are non-trivial and require discussion before we commit to the design. We should track those in individual issues.

bugadani commented 3 days ago

I suppose I'll mark the last DMA PR to close this :)