Commit Graph

19 Commits (6f13445bfcdd699edec4a8a95d37092a3b6319a3)

Author SHA1 Message Date
Jesse Braham 6f13445bfc Add support for the STM32f091 (#35)
* Add GPIO support for the stm32f091
* Implement RCC, Serial and Timers for stm32f091
* Implement ADC, I2C and SPI for stm32f091
* Add STM32F091 to Travis config, CHANGELOG and README
5 years ago
Yatekii 7da190e507 Added definitions for the stm32f072xx chips (#31)
* Fixed wrong gpio definitions with #[cfg(any(feature = "stm32f030", feature = "stm32f070"))]
* Added definitions for the 072 series
5 years ago
Daniel Egger ef855a0829 Added "device-selected" meta-feature and simplified feature gates
Also reworked some use statements to reduce amount of meta code

Signed-off-by: Daniel Egger <>
5 years ago
HarkonenBade 0fa7a2012a Implementation of ADC interface
Base implementation of ADC functionality according to the embedded hal
traits for `Channel` and `OneShot`. Also provides references for
converting the internal temperature sensor and voltage reference values,
also the VBat reference where available.

Closes #11.
5 years ago
David Sawatzke 0c4a1dbc49 Add Send & Sync impls for Pin
With reasons why it's safe to do so
5 years ago
Daniel Egger 97128234d7 Applied a healthy dose of warning cleanup
Signed-off-by: Daniel Egger <>
5 years ago
Jesse Braham c68731fd4d Implement GPIO for STM32F070 5 years ago
HarkonenBade 27b5a9ef20 Change trait functions to line up with digital traits 5 years ago
HarkonenBade 9ac58669d3 rustfmt pass 5 years ago
HarkonenBade d8b7a12e19 Update trait name and visibility 5 years ago
HarkonenBade aba8d47473 Fix some pointer derefs that were missing unsafe 5 years ago
HarkonenBade 5fd73b0fa9 Implement toggleable for the new erased pins 5 years ago
HarkonenBade 116a511474 Move to temporary macro based trait initialization 5 years ago
HarkonenBade 0006281d59 Initial implementation of GPIO traits 5 years ago
David Sawatzke aca43e3a11 Add Input Trait to OpenDrain
Add full pin Abstraction

Fix build for differences between 2015 & 2018 edition

Replace transmute with cast

Add example for using multiple pins of different ports together

Fix warning for example
5 years ago
David Sawatzke 8e60bd30be Implement gpio for stm32f030 5 years ago
HarkonenBade 58caea6fa5 Added implementation of the default toggleable trait. 5 years ago
Daniel Egger 162083af74 Updated to edition 2018, bumped crate version to 0.8.0
Signed-off-by: Daniel Egger <>
5 years ago
Daniel Egger 3db793e9d6 First release of stm32f0xx-hal based on stm32f042-hal
Signed-off-by: Daniel Egger <>
5 years ago