MabezDev / idf2svd

Apache License 2.0
14 stars 7 forks source link

Add the ability to generate SVD for ESP8266 #14

Closed jessebraham closed 4 years ago

jessebraham commented 4 years ago

This is based on the work done by @icewind1991, available here, to generate an SVD file for the ESP8266. Just thought it'd be good to have everything under one roof.

I basically just created a simple CLI utility using clap which allows you to generate either file using cargo run esp32 or cargo run esp8266, and pulled in the aforementioned code. The bits specific to the ESP32 are in the idf module, and for the ESP8266 in the sdk module. A small refactor was then done and some code was extracted into the common module.

The ESP8266 requires invoking the Makefile prior to running the application, which as been documented in the README.

I have also updated Cargo.toml to include some additional metadata. The version number has already been incremented as well. Additionally I added the license files (I'm just assuming on these, let me know if you'd like to use something else).

I'm not really sure what to call this anymore since the ESP8266 doesn't use esp-idf, so I've just used header2svd for now. I can change this if we come up with something better.

As far as I can tell everything is working as expected. If you find any problems or would like any further changes made please just let me know and I'll be happy to take care of it.

MabezDev commented 4 years ago

Apologies for the delay!

This looks awesome! Thanks for taking the time to put this together :)