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
ee11a821a0
Add changelog entry
4 years ago
David Sawatzke
8e0179d60c
Add a tx only and a rx only serial instance
4 years ago
Daniel Egger
ac4c91b95f
Merge pull request #43 from jessebraham/stm32f0x1
...
Add support for stm32f031, stm32f051, stm32f071
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
Daniel Egger
c6b96c397b
Merge pull request #41 from HarkonenBade/down-with-ub
...
Apply critical sections to uses of registers where exclusivity is not guaranteed
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
Tom
94eea3924b
Tweaks to travis to run plain builds and faster cargo executions ( #39 )
...
* Tweaks to travis to run plain builds and faster cargo executions
4 years ago
david-sawatzke
b2111b98b0
Fix overflow in delay ( #40 )
...
Gets checked in debug builds
4 years ago
Tom
6b2ffaa650
Merge pull request #38 from HarkonenBade/RCC-fixes
...
Add fixes to RCC code for plain builds
4 years ago
Daniel Egger
e10dae9663
Merge pull request #37 from david-sawatzke/spi_doc
...
Add more spi documentation
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
Daniel Egger
aef15217c7
Merge pull request #36 from jessebraham/readme-updates
...
Overhaul README, add Getting Started section
4 years ago
Jesse Braham
be98d3ce8d
Overhaul README, add Getting Started section
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
e74eea773d
Merge pull request #33 from david-sawatzke/spi_example
...
Add a basic spi example which isn't dependent on external components
4 years ago
David Sawatzke
abe8d56db5
Add a basic spi example
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
e3c8e6f1a5
Merge pull request #30 from HarkonenBade/readme-badges
...
Add badges to README
4 years ago
HarkonenBade
187ea7d5b0
Add badges to README
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
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
11ff76c315
Release 0.10.1
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
5 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>
5 years ago
Daniel Egger
476eb404af
Merge pull request #13 from HarkonenBade/adc-test
...
Initial implementation of ADC interface
5 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 .
5 years ago
david-sawatzke
00c46e179a
Make examples more generic ( #20 )
...
* Make examples more generic
5 years ago
Daniel Egger
0daa4df1c9
Merge pull request #14 from david-sawatzke/delay
...
Allow larger systick delays
5 years ago
David Sawatzke
9cd3f3746a
Update changelog for delay overflow guards
5 years ago
David Sawatzke
2f486c62c6
Add documentation about systick to delay & timers
5 years ago
David Sawatzke
3dd342e536
Implement larger delays
5 years ago
Daniel Egger
b07a4885ad
Merge pull request #19 from david-sawatzke/send_sync
...
Add Send & Sync impls for Pin
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