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
Vadim Kaushan
407bd890c9
Fix pllsrc bits for HSE
3 years ago
Nathan Conrad
d59291f414
Correct logic used to determine default PLL pre-divider.
3 years ago
Nathan Conrad
b3988e768e
RCC: USB source switching code.
3 years ago
Nathan Conrad
8bcf488582
RCC: Only provide HSI48 in API for devices which are documented to have it.
3 years ago
Daniel Egger
33fe6da6dc
Fix STM32F030/STM32F070 impl
...
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
Nathan Conrad
02278e5542
Add (breaking) API change to allow for HSE bypass to be selected.
3 years ago
Nathan Conrad
3ba20dc0cb
RCC: PLL: Modify CR instead of write, plus remove unnecessary unsafe tag.
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
89d2d6f07b
Enable CRS support for USB
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
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
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
HarkonenBade
626d8960e7
Add fixes to RCC code for plain builds
4 years ago
Ze'ev Klapow
23be76c14c
RCC: Add ability to use HSE clock source ( #25 )
...
* allow enabling hse
* enable hse pll src correctly
* fix build + warning
* rusfmt
* updated CHANGELOG
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
Daniel Egger
f55163cd5c
Ran rustfmt on the code
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Mike Panetta
1924bb15cc
Stm32f04x additions for RCC ( #17 )
...
Some new logic to select clock source
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
Daniel Egger
97128234d7
Applied a healthy dose of warning cleanup
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Jesse Braham
7ae024ed43
Implement RCC and Timers for STM32F070
4 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>
4 years ago
David Sawatzke
5d4a841a46
Add rcc to stm32f030
4 years ago
David Sawatzke
83f354ac4e
Add feature gates to everything
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