esp-rs / esp32-hal

A hardware abstraction layer for the esp32 written in Rust.
Apache License 2.0
193 stars 28 forks source link

Initialize the repo #1

Closed jeandudey closed 4 years ago

jeandudey commented 4 years ago

At least an empty README.md, i want to give it a try by creating a simple HAL for GPIO pins

MabezDev commented 4 years ago

Done :). I look forward to seeing what you come up with.

HarkonenBade commented 4 years ago

Are you planning something based on https://github.com/rust-embedded/embedded-hal?

jeandudey commented 4 years ago

@HarkonenBade yes, I'm planning to use the embedded-hal traits

HarkonenBade commented 4 years ago

Awesome! Very interested to see more.

jeandudey commented 4 years ago

I have been working today on creating a little .svd file by hand for the peripherals, mainly I'm going first to support GPIO, so svd2rust can be used. I'm not very optimistic since it's a lot of hard work, but as peripherals are in need, we can modify the .svd file adding the necessary peripherals and registers.

I've tried to mimic peripheral API by hand directly but it seems like an overkill and error prone.

And now that Espressif announced on the llvm-xtensa repo that they're close to release a new version of the back-end I think that having a functional example is good showing the capabilities of Rust, and possibly get some new hands here.

HarkonenBade commented 4 years ago

Would you consider putting what you have so far in a WIP pull request? As I have some time tomorrow and would be happy to add some registers.

jeandudey commented 4 years ago

Let me finish some registers and I'll add a WIP PR.