Commit Graph

274 Commits (16272ef716a6faba298131e6df922b89d86e3427)
 

Author SHA1 Message Date
Daniel Egger e529a105a0 Mention MSRV of 1.39.0 and test it in CI
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger 6c8a0a1179
Merge pull request #92 from stm32-rs/add-another-blinky
Add a new timer and interrupt based blinky example
3 years ago
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 8e96202d05
Merge pull request #91 from stm32-rs/fix-timer
Assume twice the timer frequency when HCLK != PCLK
3 years ago
Daniel Egger 53e6f73106 Assume twice the timer frequency when HCLK != PCLK
Internally the frequency going to the timers is doubled if PCLK is
prescaled.

Fixes #90

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger c39da7e3f3
Moved USB driver to unreleased release
Closes #86
3 years ago
James Munns b15fc1532f
Add I2C Read implementation (#88)
* Add read implementation
* Add changelog
3 years ago
Daniel Egger 4c259b9ce1
Merge pull request #87 from pigrew/pllsrc
RCC: Correct PLL multiplier calculations.
3 years ago
Nathan Conrad d59291f414 Correct logic used to determine default PLL pre-divider. 3 years ago
Nathan Conrad 258134c875 Disable stm32f030 CI test. 3 years ago
Daniel Egger 0d9f0b275f
Merge pull request #85 from pigrew/usbClkSrc
RCC: USB source switching code.
3 years ago
Nathan Conrad b3988e768e RCC: USB source switching code. 3 years ago
Daniel Egger 06c983c84b
Merge pull request #84 from pigrew/hsi488_cfg
RCC: Only provide HSI48 & CRS in API for devices which have it
3 years ago
Nathan Conrad 8bcf488582 RCC: Only provide HSI48 in API for devices which are documented to have it. 3 years ago
Daniel Egger 6c1420e0d1 Remove costly unwrap from example
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger 865dc15f53 Run through rustfmt
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger 33fe6da6dc Fix STM32F030/STM32F070 impl
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger 67e29bfa8b Bump stm32f0 version to 0.9 and upgrade code accordingly
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
3 years ago
Daniel Egger 88a8d83179
Merge pull request #80 from pigrew/hse_bypass
Add (breaking) API change to allow for HSE bypass to be selected.
3 years ago
Nathan Conrad 02278e5542 Add (breaking) API change to allow for HSE bypass to be selected. 3 years ago
Daniel Egger 8cefde6b03
Merge pull request #82 from pigrew/pll_en_fix
RCC: PLL: Modify CR instead of write, plus remove unnecessary unsafe
3 years ago
Nathan Conrad 3ba20dc0cb RCC: PLL: Modify CR instead of write, plus remove unnecessary unsafe tag. 4 years ago
Daniel Egger 22ad0dc0ed
Merge pull request #81 from pigrew/Systick_returns
systick returns, so should be marked as such.
4 years ago
Nathan Conrad 51d7c76ee8 systick returns, so should be marked as such. 4 years ago
Daniel Egger 31b63ed92d
Merge pull request #76 from Disasm/usb-feature
Mention the stm32-usbd feature
4 years ago
Vadim Kaushan 150063efa1
Mention the stm32-usbd feature 4 years ago
Daniel Egger 188d18a655
Merge pull request #75 from Disasm/usb-docs
Generate USB docs on docs.rs
4 years ago
Vadim Kaushan f6d087944e
Generate usb docs on docs.rs 4 years ago
Daniel Egger 0872ca4f14
Merge pull request #74 from Disasm/usb
Add USB driver
4 years ago
Vadim Kaushan 74670ac848
Update CHANGELOG 4 years ago
Vadim Kaushan f9ef8c3479
Enable USB support for STM32F070x6/B 4 years ago
Vadim Kaushan 83a0e618f3
Add USB example 4 years ago
Vadim Kaushan 86c7f95c0e
Add USB driver 4 years ago
Daniel Egger 9cf30e9961
Merge pull request #73 from stm32-rs/gpios-in-one
Improve legibility by having a single macro structure for all pins
4 years ago
Daniel Egger c943585403
Merge pull request #63 from stm32-rs/features/serial-clear-error
Clear error flags before returning
4 years ago
Daniel Egger 143f6b2bf8 Clear error flags before returning
Closes #61

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger 9f933af6a2 Improve legibility by having a single macro structure for all pins
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger d0c81220b2 Bumped version to 0.15.2
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger 1310978435 Lift specificity of some dependencies and re-enabled LTO for all, yay!
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 years ago
Daniel Egger 1e649bbc0b Fix a number of clippy warnings
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
4 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.
4 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>
4 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 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 a34f6c84e6 Let capture_example_bloat script also capture dev mode 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