Daniel Egger
7e345c6b4c
Changed implementation to implement digital v2 interface
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger
2116717507
Fixed a number of deprecation warnings and lints
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger
ff1cea2829
Enable commented out GPIOE support which now works
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger
9a1ba72ed1
Extract the GPIO RegisterBlock address only once per function call
...
This improves code clarity and slightly reduces dev mode build sizes
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger
aec4e470d9
Added #inline(always) attributes to gpio functions
...
This has a positive effect on dev build sizes
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Jesse Braham
63bbfd3068
Review all device datasheets and fix inconsistencies
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
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
David Sawatzke
0c4a1dbc49
Add Send & Sync impls for Pin
...
With reasons why it's safe to do so
4 years ago
Daniel Egger
97128234d7
Applied a healthy dose of warning cleanup
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
David Sawatzke
f3fe126634
Enable gpiod, since stm32f0 crate was updated
4 years ago
Jesse Braham
c68731fd4d
Implement GPIO for STM32F070
4 years ago
HarkonenBade
27b5a9ef20
Change trait functions to line up with digital traits
4 years ago
HarkonenBade
9ac58669d3
rustfmt pass
4 years ago
HarkonenBade
d8b7a12e19
Update trait name and visibility
4 years ago
HarkonenBade
aba8d47473
Fix some pointer derefs that were missing unsafe
4 years ago
HarkonenBade
5fd73b0fa9
Implement toggleable for the new erased pins
4 years ago
HarkonenBade
116a511474
Move to temporary macro based trait initialization
4 years ago
HarkonenBade
0006281d59
Initial implementation of GPIO traits
4 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
4 years ago
David Sawatzke
8e60bd30be
Implement gpio for stm32f030
4 years ago
HarkonenBade
58caea6fa5
Added implementation of the default toggleable trait.
4 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>
4 years ago
Daniel Egger
3db793e9d6
First release of stm32f0xx-hal based on stm32f042-hal
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago