stm32-rs / stm32l0xx-hal

A hardware abstraction layer (HAL) for the STM32L0 series microcontrollers written in Rust
BSD Zero Clause License
96 stars 60 forks source link

Expose factory calibration data #121

Closed dbrgn closed 4 years ago

dbrgn commented 4 years ago

This PR exposes the factory calibration data.

Verified to be working on an STM32L071KBTx. As a cross-check, I verified the memory addresses against the datasheet of the (randomly picked) STM32L053C6, they match.

2020-08-05-233719_346x79_scrot

Strongly inspired by the signature module in https://github.com/stm32-rs/stm32f4xx-hal/blob/master/src/signature.rs.

Fixes #120.

CC @rnestler

dbrgn commented 4 years ago

Docs improved and branch rebased against master!