esp-rs / esp32-hal

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

Add eFuse module #13

Closed Gasper closed 4 years ago

Gasper commented 4 years ago

This PR contains an eFuse module with couple of functions for reading factory-flashed ADC calibration values, as well as, few functions for reading basic data about the chip. The code is mostly based of info available in ESP IDF codebase.

Some of the things in this module may seem like they don't belong here or together, but in my opinion they do, because they all deal only with decoding information from the eFuse: due to limited capacity designers had to cram in as much information as possible.

Feel free to propose any additions/corrections.

MabezDev commented 4 years ago

Sorry for taking so long to get to this. This looks perfect as is. Thank you!