Daniel Egger
89d2d6f07b
Enable CRS support for USB
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Matous Hybl
4714c70d18
Remove STM32F030 from devices that have I2C1 available on pins PA11 and PA12.
4 years ago
David Turner
be7084cbbe
Fix typo in SPI example
4 years ago
Daniel Egger
1e040f403b
Implement TSC (touch sensitive controller) support
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 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
Daniel Egger
77a6dad00a
Improved serial write_str implementation to properly handle errors
...
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
63bbfd3068
Review all device datasheets and fix inconsistencies
4 years ago
Jesse Braham
e3d7111c08
Fix some long-standing errors and inconsistencies for USARTS
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
David Sawatzke
c8dd9b1f81
Add documentation and update a few examples
...
Also add the `Write` implementation for Serial
4 years ago
David Sawatzke
ec1fa416e2
Move `read`, `flush` & `write` in separate functions
4 years ago
David Sawatzke
2c62bd99eb
Only enable usart tx/rx when needed
4 years ago
David Sawatzke
8e0179d60c
Add a tx only and a rx only serial instance
4 years ago
Jesse Braham
ce2ef0d854
Fix build error, update CHANGELOG and README
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
david-sawatzke
f54423aa9c
Optimize delay implementation ( #42 )
...
* Optimize delay implementation
* Configure delay with hclk & only for 1MHz+
* Clean up delay implementation
* Add more reasoning and fix documentation
* Add changelog entry for delay optimization
4 years ago
david-sawatzke
b2111b98b0
Fix overflow in delay ( #40 )
...
Gets checked in debug builds
4 years ago
HarkonenBade
626d8960e7
Add fixes to RCC code for plain builds
4 years ago
David Sawatzke
083323b110
Add more spi documentation
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
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
bc723e1437
More rubost error handling for I2C
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
david-sawatzke
f729f7e4df
Allow multi delay instances for the systick timer ( #23 )
...
* Fix typo from #21
* Implement shareable systick
* Fix it, so downcounting is expected & add overflow guards
* Add changelog entry for multi-delay
4 years ago
Daniel Egger
f55163cd5c
Ran rustfmt on the code
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger
4c81088ce5
Added interupt enabling/disabling support to USART ports
...
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
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
David Sawatzke
2f486c62c6
Add documentation about systick to delay & timers
4 years ago
David Sawatzke
3dd342e536
Implement larger delays
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
6a02615074
Read the whole iwdg sr at once
...
It's more efficient
4 years ago
David Sawatzke
02c01cd7e0
Implement watchdog
...
With example and doc comments
4 years ago
Daniel Egger
1ed311cd62
impl Send for serial Rx and Tx abstractions
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Jesse Braham
a07539737e
Implement I2C for STM32F070 devices
4 years ago
Jesse Braham
4e1e98aa23
Implement SPI for STM32F070 devices
4 years ago
Jesse Braham
982b5039dd
Re-implement Serial for STM32F070 devices following merge
4 years ago