Commit Graph

20 Commits (16272ef716a6faba298131e6df922b89d86e3427)

Author SHA1 Message Date
Daniel Egger c4ad05524e Soft-deprecate `stm32` for PAC access and use `pac` instead
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger 67e29bfa8b Bump stm32f0 version to 0.9 and upgrade code accordingly
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger 2f0fb0b09e Use modify instead of write for HSI14 clock setup
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
HarkonenBade e081e82390 Update the ADC code to take advantage of the named variants in stm32-rs v0.6.0 4 years ago
Tom 1524cb1967 Update to stm32f0 - 0.6.0 (#52)
* Updated stm32f0 to 0.6.0 and neatened other deps

* Adjusted names and removed unneeded unsafe blocks

* Overhauled RCC to gate HSI48 correctly and add a selector function for it to CFGR
4 years ago
Jesse Braham 32b14bf976 Add support for stm32f098 4 years ago
Jesse Braham fca47168d2 Add support for stm32f078 4 years ago
Jesse Braham c79c69c0f3 Add support for stm32f058 4 years ago
Jesse Braham e225bc0f68 Add support for stm32f048 4 years ago
Jesse Braham 95aadbbe18 Add support for stm32f038 4 years ago
Jesse Braham c4967c2645 Add support for stm32f071 4 years ago
Jesse Braham b016ffdfe9 Add support for stm32f051 4 years ago
Jesse Braham e6db427c09 Add support for stm32f031 4 years ago
HarkonenBade 7ea2af8a74 Enforce better safety guarentees
* Makes use of Rcc parameters rather than making RCC pointers
* Applys CS parameters to GPIO functions that mutate the port non
atomically
* Cut down on build gating hell a bit
4 years ago
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
4 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
4 years ago
Daniel Egger 3691709340 Adressed a few clippy lints
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 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>
4 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 <daniel@eggers-club.de>
4 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.
4 years ago