15 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

0.4.3 Apr 11, 2020
0.4.2 Mar 21, 2020
0.4.0 Dec 27, 2019
0.3.0 Aug 26, 2019
0.1.3 Apr 12, 2019

#30 in Embedded development

Download history 80/week @ 2020-03-16 56/week @ 2020-03-23 23/week @ 2020-03-30 73/week @ 2020-04-06 103/week @ 2020-04-13 31/week @ 2020-04-20 19/week @ 2020-04-27 17/week @ 2020-05-04 56/week @ 2020-05-11 16/week @ 2020-05-18 29/week @ 2020-05-25 66/week @ 2020-06-01 17/week @ 2020-06-08 16/week @ 2020-06-15 12/week @ 2020-06-22 28/week @ 2020-06-29

216 downloads per month
Used in less than 6 crates

0BSD license

245KB
5.5K SLoC

stm32f3xx-hal

Build Status Crate Docs

stm32f3xx-hal contains a multi device hardware abstraction on top of the peripheral access API for the STMicro STM32F3 series microcontrollers. The selection of the MCU is done by feature gates, typically specified by board support crates. Currently supported configurations are:

  • stm32f301 ✔️ YES!
  • stm32f318 ✔️ YES!
  • stm32f302 ✔️ YES!
  • stm32f303 ✔️ YES!
  • stm32f373 ✔️ YES!
  • stm32f378 ✔️ YES!
  • stm32f334 ✔️ YES!
  • stm32f328 ✔️ YES!
  • stm32f358 ✔️ YES!
  • stm32f398 ✔️ YES!

The idea behind this crate is to gloss over the slight differences in the various peripherals available on those MCUs so a HAL can be written for all chips in that same family without having to cut and paste crates for every single model.

Collaboration on this crate is highly welcome as are pull requests!

This crate relies on Adam Greigs fantastic stm32f3 crate to provide appropriate register definitions and implements a partial set of the embedded-hal traits.

Almost all of the implementation was shamelessly adapted from the stm32f30x-hal crate by Jorge Aparicio.

License

0-clause BSD license.

Dependencies

~35MB
~1M SLoC