Daniel Egger
49dc85c295
Add a new timer and interrupt based blinky example
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger
6c1420e0d1
Remove costly unwrap from example
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Nathan Conrad
51d7c76ee8
systick returns, so should be marked as such.
3 years ago
Vadim Kaushan
83a0e618f3
Add USB example
3 years ago
Daniel Egger
1e649bbc0b
Fix a number of clippy warnings
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
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.
3 years ago
Daniel Egger
c944a4e882
Changed a confusing comment in an example about the event clearing
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Mattia Maldini
2a61f5092d
Added an example for i2c ( #69 )
...
* Added an example for i2c
* added more extensive comments
4 years ago
Daniel Egger
3b124efe23
Improve example to not hold on to the criticial section
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger
d5568bef8c
Add fancier SysTick exception example moving the data into the exception handler
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger
8fa4d3f527
Fixed warning by uppercasing static variable
...
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
Daniel Egger
2b60666a31
Simplified examples a bit and fixed/added commentry
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
David Sawatzke
c8dd9b1f81
Add documentation and update a few examples
...
Also add the `Write` implementation for Serial
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
abe8d56db5
Add a basic spi example
4 years ago
Daniel Egger
f55163cd5c
Ran rustfmt on the code
...
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
476eb404af
Merge pull request #13 from HarkonenBade/adc-test
...
Initial implementation of ADC interface
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
00c46e179a
Make examples more generic ( #20 )
...
* Make examples more generic
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
108319ff13
Merge pull request #12 from david-sawatzke/iwdg
...
Add a watchdog implementation
4 years ago
David Sawatzke
02c01cd7e0
Implement watchdog
...
With example and doc comments
4 years ago
Daniel Egger
386b24bb11
Remove examples requiring external driver crates
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
David Sawatzke
7af92c3294
Add timer example
4 years ago
Daniel Egger
2814d5b32d
Merge pull request #4 from HarkonenBade/gpio-traits
...
Fully erased pins based on trait implementations
4 years ago
Daniel Egger
22c457c097
Fixed some commentary
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
HarkonenBade
c61a55ed85
Fix example and use loops to show off advantages better
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
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
HarkonenBade
27bead1783
Add use of toggle to blinky_delay example
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