11 releases (7 breaking)

✓ Uses Rust 2018 edition

0.14.1 Jun 5, 2019
0.13.0 Feb 6, 2019
0.10.1 Dec 25, 2018

#28 in Embedded development

Download history 2/week @ 2019-02-20 25/week @ 2019-02-27 12/week @ 2019-03-06 6/week @ 2019-03-13 43/week @ 2019-03-20 12/week @ 2019-03-27 10/week @ 2019-04-03 10/week @ 2019-04-10 3/week @ 2019-04-17 33/week @ 2019-04-24 25/week @ 2019-05-01 2/week @ 2019-05-08 28/week @ 2019-05-15 49/week @ 2019-05-22 19/week @ 2019-05-29

89 downloads per month
Used in 4 crates

0BSD license

130KB
3K SLoC

stm32f0xx-hal

Travis Crates.io docs.rs

stm32f0xx-hal contains a hardware abstraction on top of the peripheral access API for the STMicro STM32F0xx family of microcontrollers.

This crate replaces the stm32f042-hal by a more ubiquitous version suitable for additional families. 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.

This crate relies on Adam Greig's fantastic stm32f0 crate to provide appropriate register definitions, and implements a partial set of the embedded-hal traits. Some of the implementation was shamelessly adapted from the stm32f103xx-hal crate by Jorge Aparicio.

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

Supported Configurations

  • stm32f030 (stm32f030x4, stm32f030x6, stm32f030x8, stm32f030xc)
  • stm32f031
  • stm32f038
  • stm32f042
  • stm32f048
  • stm32f051
  • stm32f058
  • stm32f070 (stm32f070x6, stm32f070xb)
  • stm32f071
  • stm32f072
  • stm32f078
  • stm32f091
  • stm32f098

Getting Started

If you are unfamiliar with embedded development using Rust, there are a number of fantastic resources available to help.

Changelog

See CHANGELOG.md.

License

0-Clause BSD License, see LICENSE-0BSD.txt for more details.

Dependencies

~19MB
~699K SLoC