Skip to content

Commit 98f6d1e

Browse files
authored
Merge pull request #15 from tock/1.3
Tie to release-1.3 kernel + small nits
2 parents 8228baf + 060ded5 commit 98f6d1e

File tree

11 files changed

+116
-122
lines changed

11 files changed

+116
-122
lines changed

boards/hail-bootloader/Cargo.lock

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

boards/hail-bootloader/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ panic = "abort"
1515
lto = true
1616

1717
[dependencies]
18-
cortexm4 = { git = "https://github.com/tock/tock" }
19-
capsules = { git = "https://github.com/tock/tock" }
20-
kernel = { git = "https://github.com/tock/tock" }
21-
sam4l = { git = "https://github.com/tock/tock" }
18+
cortexm4 = { git = "https://github.com/tock/tock", tag = "release-1.3" }
19+
capsules = { git = "https://github.com/tock/tock", tag = "release-1.3" }
20+
kernel = { git = "https://github.com/tock/tock", tag = "release-1.3" }
21+
sam4l = { git = "https://github.com/tock/tock", tag = "release-1.3" }
2222
bootloader = { path = "../../bootloader" }
2323

2424
[build-dependencies]

boards/hail-bootloader/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ struct HailBootloader {
3838
}
3939

4040
impl Platform for HailBootloader {
41-
fn with_driver<F, R>(&self, driver_num: usize, f: F) -> R
41+
fn with_driver<F, R>(&self, _driver_num: usize, f: F) -> R
4242
where
4343
F: FnOnce(Option<&kernel::Driver>) -> R,
4444
{
4545
// Bootloader does not support apps.
46-
match driver_num {
47-
_ => f(None),
48-
}
46+
f(None)
4947
}
5048
}
5149

boards/imix-bootloader/Cargo.lock

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

boards/imix-bootloader/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ panic = "abort"
1515
lto = true
1616

1717
[dependencies]
18-
cortexm4 = { git = "https://github.com/tock/tock" }
19-
capsules = { git = "https://github.com/tock/tock" }
20-
kernel = { git = "https://github.com/tock/tock" }
21-
sam4l = { git = "https://github.com/tock/tock" }
18+
cortexm4 = { git = "https://github.com/tock/tock", tag = "release-1.3" }
19+
capsules = { git = "https://github.com/tock/tock", tag = "release-1.3" }
20+
kernel = { git = "https://github.com/tock/tock", tag = "release-1.3" }
21+
sam4l = { git = "https://github.com/tock/tock", tag = "release-1.3" }
2222
bootloader = { path = "../../bootloader" }
2323

2424
[build-dependencies]

boards/imix-bootloader/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ struct ImixBootloader {
3838
}
3939

4040
impl Platform for ImixBootloader {
41-
fn with_driver<F, R>(&self, driver_num: usize, f: F) -> R
41+
fn with_driver<F, R>(&self, _driver_num: usize, f: F) -> R
4242
where
4343
F: FnOnce(Option<&kernel::Driver>) -> R,
4444
{
4545
// Bootloader does not support apps.
46-
match driver_num {
47-
_ => f(None),
48-
}
46+
f(None)
4947
}
5048
}
5149

0 commit comments

Comments
 (0)