Skip to content

Commit

Permalink
Merge pull request #28 from rursprung/update-to-eh-1.0.0.rc2
Browse files Browse the repository at this point in the history
update to `embedded-hal=1.0.0-rc.2`
  • Loading branch information
rursprung authored Dec 11, 2023
2 parents cc7c994 + 8c13fba commit 235a43e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 30 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- next-header -->
## [Unreleased] - ReleaseDate
### Changed
* Update to `embedded-hal=1.0.0-rc.2`

## [0.2.0] - 2023-11-28
### Changed
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ keywords = ["tb6612fng", "driver", "motor", "controller", "embedded-hal-driver"]
license = "MIT OR Apache-2.0"

[dependencies]
embedded-hal = "=1.0.0-rc.1"
embedded-hal = "=1.0.0-rc.2"

defmt = { version = "0.3", optional = true }

[dev-dependencies]
embedded-hal-mock = { version = "=0.10.0-rc.2", features = ["eh1"] }
embedded-hal-mock = { version = "=0.10.0-rc.3", features = ["eh1"] }
46 changes: 23 additions & 23 deletions examples/stm32f4-single-motor-example/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/stm32f4-single-motor-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cortex-m = { version = "0.7", features = ["critical-section-single-core"]}
cortex-m-rtic = "1.1.4"
panic-probe = { version = "0.3", features = ["print-defmt"] }

stm32f4xx-hal = { version = "0.18.0", features = ["stm32f401", "rtic", "rtic-monotonic"] }
stm32f4xx-hal = { version = "0.19.0", features = ["stm32f401", "rtic", "rtic-monotonic"] }

defmt = "0.3.5"
defmt-rtt = "0.4"
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ mod tests {
let motor_in1_expectations = [PinTransaction::set(Low)];
let motor_in2_expectations = [PinTransaction::set(Low)];
let motor_pwm_expectations = [
PwmTransaction::get_max_duty_cycle(max_duty),
PwmTransaction::max_duty_cycle(max_duty),
PwmTransaction::set_duty_cycle(0),
];
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
Expand All @@ -324,7 +324,7 @@ mod tests {
let motor_in1_expectations = [PinTransaction::set(High)];
let motor_in2_expectations = [PinTransaction::set(High)];
let motor_pwm_expectations = [
PwmTransaction::get_max_duty_cycle(max_duty),
PwmTransaction::max_duty_cycle(max_duty),
PwmTransaction::set_duty_cycle(0),
];
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
Expand All @@ -350,7 +350,7 @@ mod tests {
let motor_in1_expectations = [PinTransaction::set(High)];
let motor_in2_expectations = [PinTransaction::set(Low)];
let motor_pwm_expectations = [
PwmTransaction::get_max_duty_cycle(max_duty),
PwmTransaction::max_duty_cycle(max_duty),
PwmTransaction::set_duty_cycle(speed as u16),
];
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
Expand All @@ -376,7 +376,7 @@ mod tests {
let motor_in1_expectations = [PinTransaction::set(Low)];
let motor_in2_expectations = [PinTransaction::set(High)];
let motor_pwm_expectations = [
PwmTransaction::get_max_duty_cycle(max_duty),
PwmTransaction::max_duty_cycle(max_duty),
PwmTransaction::set_duty_cycle(speed as u16),
];
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
Expand Down

0 comments on commit 235a43e

Please sign in to comment.