Skip to content

Commit

Permalink
svd2rust: breaking changes from update to v0.15.0
Browse files Browse the repository at this point in the history
svd2rust makes the following breaking change

> [breaking-change] for access to alternate registers functions now
  used instead of untagged_unions (no more nightly features)

Fix by making function calls for `cmrrX_output`.

Fixing this will be a breaking change for anyone building `stm32-rs`
locally. To bring your build enviroment up-to-date:

```
cargo install svd2rust --force
```

Closes stm32-rs#29

Unblocks stm32-rs#28 and others
  • Loading branch information
richardeoin committed Jul 28, 2019
1 parent 190d50a commit f1f9f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ macro_rules! tim_pin_hal {
fn enable(&mut self) {
let tim = unsafe { &*$TIMX::ptr() };

tim.$ccmrx_output.modify(|_, w|
tim.$ccmrx_output().modify(|_, w|
w.$ocxpe()
.enabled() // Enable preload
.$ocxm()
Expand Down
2 changes: 1 addition & 1 deletion src/qei.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ macro_rules! tim_hal {


// Configure TxC1 and TxC2 as captures
tim.ccmr1_output.write(|w| unsafe {
tim.ccmr1_output().write(|w| unsafe {
w.cc1s()
.bits(0b01)
.cc2s()
Expand Down

0 comments on commit f1f9f95

Please sign in to comment.