Commit Graph

19 Commits (f54423aa9c057b4c55b6863a15e3ac2a1069f821)

Author SHA1 Message Date
David Sawatzke abe8d56db5 Add a basic spi example 5 years ago
Daniel Egger f55163cd5c Ran rustfmt on the code
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago
Tom f6155f99a5 Initial test implementation of ADC helper functions (#22)
Added ADC helper functions to read more intuitive values

Co-Authored-By: HarkonenBade <github@harkonen.net>
5 years ago
Daniel Egger 476eb404af
Merge pull request #13 from HarkonenBade/adc-test
Initial implementation of ADC interface
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 00c46e179a Make examples more generic (#20)
* Make examples more generic
5 years ago
Daniel Egger 97128234d7 Applied a healthy dose of warning cleanup
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago
Daniel Egger 108319ff13
Merge pull request #12 from david-sawatzke/iwdg
Add a watchdog implementation
5 years ago
David Sawatzke 02c01cd7e0 Implement watchdog
With example and doc comments
5 years ago
Daniel Egger 386b24bb11 Remove examples requiring external driver crates
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago
David Sawatzke 7af92c3294 Add timer example 5 years ago
Daniel Egger 2814d5b32d
Merge pull request #4 from HarkonenBade/gpio-traits
Fully erased pins based on trait implementations
5 years ago
Daniel Egger 22c457c097 Fixed some commentary
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago
HarkonenBade c61a55ed85 Fix example and use loops to show off advantages better 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
Daniel Egger 6b3f3bc34f Bumped stm32f0 dependency, changed interrupt handler, bumped version to 0.9.0
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago
HarkonenBade 27bead1783 Add use of toggle to blinky_delay example 5 years ago
Daniel Egger 162083af74 Updated to edition 2018, bumped crate version to 0.8.0
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago
Daniel Egger 3db793e9d6 First release of stm32f0xx-hal based on stm32f042-hal
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago