Commit Graph

44 Commits (1310978435e770002792206fe8e1fe88ef212498)

Author SHA1 Message Date
Mike Panetta 4c3504c8e1 Add dac (#70)
* Added dac.rs from stm32g4xx-hal crate and modified it a bit.

* Removed IDE files.

* Fix feature gating for DAC module.

* Remove unused calibrate function from DacPin trait.

* Add feature gates for all devices that support DAC.

* Added docs and example.

* Some cleanup, fixed feature gate.
4 years ago
Daniel Egger 7e345c6b4c Changed implementation to implement digital v2 interface
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger 2116717507 Fixed a number of deprecation warnings and lints
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 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 35ba490c2a Release 0.15.1
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 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 49283cff0e Forgot to push a new header to the CHANGELOG
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger 4ba30c4edd Bumped version to 0.15.0
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger 221c570f24 Release 0.14.1
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger 89d2d6f07b Enable CRS support for USB
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger 88b9c8fd44 Bumped version to 0.14.0
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Jesse Braham 208396d7b6 Update to stm32f0 v0.7.0 4 years ago
Daniel Egger 99c3a38c82 Release v0.13.0
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
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 1c7e2cd93b Update CHANGELOG and README 4 years ago
Daniel Egger f7a464f7ad Relesed 0.12.0
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
David Sawatzke ee11a821a0 Add changelog entry 4 years ago
Jesse Braham ce2ef0d854 Fix build error, update CHANGELOG and README 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
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 35abc7a88f Released 0.11.1
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
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
Daniel Egger 2de56b0878 Bumped version to 0.11.0 for release
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 4c81088ce5 Added interupt enabling/disabling support to USART ports
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
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 11ff76c315 Release 0.10.1
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
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 9cd3f3746a Update changelog for delay overflow guards 5 years ago
David Sawatzke 0c4a1dbc49 Add Send & Sync impls for Pin
With reasons why it's safe to do so
5 years ago
Daniel Egger 1a010012c1 Bumped version to 0.10.0
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago
Daniel Egger 97128234d7 Applied a healthy dose of warning cleanup
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago
Daniel Egger f09a7cb392 Added first stab at a CHANGELOG
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 years ago