Skip to content

Commit 8c13fba

Browse files
committed
update to embedded-hal=1.0.0-rc.2
1 parent cc7c994 commit 8c13fba

File tree

5 files changed

+32
-30
lines changed

5 files changed

+32
-30
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
<!-- next-header -->
88
## [Unreleased] - ReleaseDate
9+
### Changed
10+
* Update to `embedded-hal=1.0.0-rc.2`
911

1012
## [0.2.0] - 2023-11-28
1113
### Changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ keywords = ["tb6612fng", "driver", "motor", "controller", "embedded-hal-driver"]
1111
license = "MIT OR Apache-2.0"
1212

1313
[dependencies]
14-
embedded-hal = "=1.0.0-rc.1"
14+
embedded-hal = "=1.0.0-rc.2"
1515

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

1818
[dev-dependencies]
19-
embedded-hal-mock = { version = "=0.10.0-rc.2", features = ["eh1"] }
19+
embedded-hal-mock = { version = "=0.10.0-rc.3", features = ["eh1"] }

examples/stm32f4-single-motor-example/Cargo.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/stm32f4-single-motor-example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cortex-m = { version = "0.7", features = ["critical-section-single-core"]}
99
cortex-m-rtic = "1.1.4"
1010
panic-probe = { version = "0.3", features = ["print-defmt"] }
1111

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

1414
defmt = "0.3.5"
1515
defmt-rtt = "0.4"

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ mod tests {
299299
let motor_in1_expectations = [PinTransaction::set(Low)];
300300
let motor_in2_expectations = [PinTransaction::set(Low)];
301301
let motor_pwm_expectations = [
302-
PwmTransaction::get_max_duty_cycle(max_duty),
302+
PwmTransaction::max_duty_cycle(max_duty),
303303
PwmTransaction::set_duty_cycle(0),
304304
];
305305
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
@@ -324,7 +324,7 @@ mod tests {
324324
let motor_in1_expectations = [PinTransaction::set(High)];
325325
let motor_in2_expectations = [PinTransaction::set(High)];
326326
let motor_pwm_expectations = [
327-
PwmTransaction::get_max_duty_cycle(max_duty),
327+
PwmTransaction::max_duty_cycle(max_duty),
328328
PwmTransaction::set_duty_cycle(0),
329329
];
330330
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
@@ -350,7 +350,7 @@ mod tests {
350350
let motor_in1_expectations = [PinTransaction::set(High)];
351351
let motor_in2_expectations = [PinTransaction::set(Low)];
352352
let motor_pwm_expectations = [
353-
PwmTransaction::get_max_duty_cycle(max_duty),
353+
PwmTransaction::max_duty_cycle(max_duty),
354354
PwmTransaction::set_duty_cycle(speed as u16),
355355
];
356356
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
@@ -376,7 +376,7 @@ mod tests {
376376
let motor_in1_expectations = [PinTransaction::set(Low)];
377377
let motor_in2_expectations = [PinTransaction::set(High)];
378378
let motor_pwm_expectations = [
379-
PwmTransaction::get_max_duty_cycle(max_duty),
379+
PwmTransaction::max_duty_cycle(max_duty),
380380
PwmTransaction::set_duty_cycle(speed as u16),
381381
];
382382
let mut motor_in1 = PinMock::new(&motor_in1_expectations);

0 commit comments

Comments
 (0)