Daniel Egger
f2986badc1
Ran rustfmt over all code
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger
879e4e3c77
Simplify serial `read()` error handling
...
Clearing the error bits once should suffice
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
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
ae29706781
Use core::convert::Infallible instead of void::Void for USARTs
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Vadim Kaushan
154495b378
Replace volatile access with pac register read/write
3 years ago
Daniel Egger
143f6b2bf8
Clear error flags before returning
...
Closes #61
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger
1e649bbc0b
Fix a number of clippy warnings
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger
cf4de96aee
Clear UART errors after we've detected and reported them
...
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
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
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
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
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
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
982b5039dd
Re-implement Serial for STM32F070 devices following merge
4 years ago
David Sawatzke
ad830af23c
Remove unecessary serial pin restriction
4 years ago
David Sawatzke
928fd640c3
Settle PB10
...
Found a way to confirm binding
4 years ago
David Sawatzke
0e03a324c7
Adjust note for confusing pin
4 years ago
HarkonenBade
e5f7a2c5be
Make USART pins macro more flexible
4 years ago
David Sawatzke
b8ec4e4957
Enable usart6, since stm32f0 crate was updated
4 years ago
David Sawatzke
4d5f926c6d
Add serial single pin traits and implement all af pins
4 years ago
David Sawatzke
1c21cc7cd9
Add some documentation to serial
4 years ago
David Sawatzke
a26e44c6d4
Use macros for initalization code
4 years ago
David Sawatzke
d059c11b3b
Enable macro less implementations of multiple usarts
4 years ago
Jesse Braham
bc4e0d101b
Implement Serial for the STM32F070
4 years ago
David Sawatzke
83f354ac4e
Add feature gates to everything
4 years ago
David Sawatzke
117c8121da
Implement partial uart port to stm32f030
...
Missing are uart3-uart6
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