Skip to content

Commit c8bc668

Browse files
authored
Merge pull request #32 from BartMassey-upstream/upgrade-20260103
Re-export embassy_time, upgrade dependencies (WIP)
2 parents 416be28 + 41fc889 commit c8bc668

17 files changed

Lines changed: 49 additions & 58 deletions

File tree

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "microbit-bsp"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
edition = "2021"
55
description = "An embassy-based boards support package (BSP) for BBC Micro:bit v2"
66
license = "MIT OR Apache-2.0"
@@ -10,30 +10,30 @@ repository = "https://github.com/lulf/microbit-bsp"
1010
rust-version = "1.83"
1111

1212
[dependencies]
13-
embassy-nrf = { version = "0.4.1", features = [
13+
embassy-nrf = { version = "0.9.0", features = [
1414
"gpiote",
1515
"nfc-pins-as-gpio",
1616
"nrf52833",
1717
"time-driver-rtc1",
1818
"time",
1919
] }
20-
embassy-time = { version = "0.4", default-features = false }
21-
embassy-sync = { version = "0.7.0" }
22-
cortex-m = { version = "0.7.6" }
20+
embassy-time = { version = "0.5", default-features = false }
21+
embassy-sync = { version = "0.7.2" }
22+
cortex-m = { version = "0.7.7" }
2323
embedded-hal = "1.0"
2424
lsm303agr = { version = "1.1.0", features = ["async"] }
2525
futures = { version = "0.3", default-features = false }
2626

2727
defmt = { version = "^1.0.1", optional = true }
28-
heapless = "0.8.0"
28+
heapless = "0.9.1"
2929

3030
# trouble bluetooth dependencies
31-
nrf-sdc = { version = "0.1", default-features = false, features = [
31+
nrf-sdc = { git = "https://github.com/alexmoon/nrf-sdc.git", rev = "d4d244d5ce21f59fa2263333cb1d8f2a5d997145", default-features = false, features = [
3232
"defmt",
3333
"peripheral",
3434
"nrf52833",
3535
], optional = true }
36-
nrf-mpsl = { version = "0.1", default-features = false, features = [
36+
nrf-mpsl = { git = "https://github.com/alexmoon/nrf-sdc.git", rev = "d4d244d5ce21f59fa2263333cb1d8f2a5d997145", default-features = false, features = [
3737
"defmt",
3838
"critical-section-impl",
3939
], optional = true }
@@ -44,7 +44,7 @@ default = ["defmt"]
4444
defmt = [
4545
"dep:defmt",
4646
"embassy-nrf/defmt",
47-
"heapless/defmt-03",
47+
"heapless/defmt",
4848
"embassy-time/defmt",
4949
"embassy-time/defmt-timestamp-uptime",
5050
]

examples/accelerometer/Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ edition = "2021"
77
microbit-bsp = { path = "../../" }
88

99
embassy-futures = { version = "0.1.1", default-features = false }
10-
embassy-executor = { version = "0.7", default-features = false, features = [
11-
"arch-cortex-m",
12-
"defmt",
13-
"executor-interrupt",
10+
embassy-executor = { version = "0.9", default-features = false, features = [
11+
"arch-cortex-m",
12+
"defmt",
13+
"executor-interrupt",
1414
"executor-thread"
1515
] }
16-
embassy-time = { version = "0.4", default-features = false, features = ["defmt-timestamp-uptime", "defmt"] }
1716

1817
cortex-m-rt = "0.7"
1918

examples/accelerometer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
use defmt::{info, Debug2Format};
55
use embassy_executor::Spawner;
6-
use embassy_time::Duration;
76
use microbit_bsp::{
87
display::{Brightness, Frame},
98
embassy_nrf::{bind_interrupts, peripherals::TWISPI0, twim::InterruptHandler},
9+
embassy_time::Duration,
1010
motion::Sensor,
1111
LedMatrix, Microbit,
1212
};

examples/ble-nrf-softdevice/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ edition = "2021"
77
microbit-bsp = { path = "../../" }
88

99
embassy-futures = { version = "0.1.1", default-features = false }
10-
embassy-executor = { version = "0.7", default-features = false, features = [
11-
"arch-cortex-m",
12-
"defmt",
10+
embassy-executor = { version = "0.9", default-features = false, features = [
11+
"arch-cortex-m",
12+
"defmt",
1313
"executor-thread"
1414
] }
15-
embassy-time = { version = "0.4", default-features = false, features = ["defmt-timestamp-uptime"] }
1615

1716
nrf-softdevice = { version = "0.1.0", features = ["ble-peripheral", "ble-gatt-server", "s113", "nrf52833", "critical-section-impl", "defmt"] }
1817
nrf-softdevice-s113 = { version = "0.1.2" }

examples/ble-trouble/Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@ edition = "2021"
55
resolver = "2"
66

77
[dependencies]
8-
embassy-executor = { version = "0.7", default-features = false, features = [
9-
"arch-cortex-m",
10-
"defmt",
11-
"executor-interrupt",
8+
embassy-executor = { version = "0.9", default-features = false, features = [
9+
"arch-cortex-m",
10+
"defmt",
11+
"executor-interrupt",
1212
"executor-thread"
1313
] }
14-
embassy-time = { version = "0.4", default-features = false, features = ["defmt", "defmt-timestamp-uptime"] }
1514
embassy-futures = "0.1.1"
1615
embassy-sync = { version = "0.7", features = ["defmt"] }
1716
microbit-bsp = { path = "../../", features = ["trouble"]}
1817

1918
futures = { version = "0.3", default-features = false, features = ["async-await"]}
20-
trouble-host = { version = "0.2.0", features = ["defmt", "gatt", "peripheral"] }
19+
trouble-host = { version = "0.5", features = ["defmt", "gatt", "peripheral"] }
2120

2221
defmt = "1.0.1"
2322
defmt-rtt = "1"

examples/display/Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ edition = "2021"
77
microbit-bsp = { path = "../../" }
88

99
embassy-futures = { version = "0.1.1", default-features = false }
10-
embassy-executor = { version = "0.7.0", default-features = false, features = [
11-
"arch-cortex-m",
12-
"defmt",
13-
"executor-interrupt",
10+
embassy-executor = { version = "0.9", default-features = false, features = [
11+
"arch-cortex-m",
12+
"defmt",
13+
"executor-interrupt",
1414
"executor-thread"
1515
] }
16-
embassy-time = { version = "0.4.0", default-features = false, features = ["defmt-timestamp-uptime", "defmt"] }
1716

1817
cortex-m-rt = "0.7"
1918

examples/display/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
use embassy_executor::Spawner;
55
use embassy_futures::select::{select, Either};
6-
use embassy_time::Duration;
7-
use microbit_bsp::*;
6+
use microbit_bsp::{*, embassy_time::Duration};
87
use {defmt_rtt as _, panic_probe as _};
98

109
#[embassy_executor::main]

examples/magnetometer/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ edition = "2021"
77
microbit-bsp = { path = "../../" }
88

99
embassy-futures = { version = "0.1.1", default-features = false }
10-
embassy-executor = { version = "0.7", default-features = false, features = ["defmt", "arch-cortex-m", "executor-thread", "executor-interrupt"] }
11-
embassy-time = { version = "0.4", default-features = false, features = ["defmt-timestamp-uptime", "defmt"] }
10+
embassy-executor = { version = "0.9", default-features = false, features = ["defmt", "arch-cortex-m", "executor-thread", "executor-interrupt"] }
1211

1312
cortex-m-rt = "0.7"
1413

examples/magnetometer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
use core::f32::consts::PI;
55
use defmt::{debug, info, Debug2Format};
66
use embassy_executor::Spawner;
7-
use embassy_time::{Duration, Timer};
87
use microbit_bsp::{
98
display::{Brightness, Frame},
109
embassy_nrf::{bind_interrupts, peripherals::TWISPI0, twim::InterruptHandler},
10+
embassy_time::{self, Duration, Timer},
1111
lsm303agr,
1212
motion::new_lsm303agr,
1313
Microbit,

examples/microphone/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ edition = "2021"
77
microbit-bsp = { path = "../../" }
88

99
embassy-futures = { version = "0.1", default-features = false }
10-
embassy-executor = { version = "0.7", default-features = false, features = [
10+
embassy-executor = { version = "0.9", default-features = false, features = [
1111
"arch-cortex-m",
1212
"defmt",
1313
"executor-interrupt",
1414
"executor-thread",
1515
"task-arena-size-32768",
1616
] }
17-
embassy-time = { version = "0.4", default-features = false, features = [
18-
"defmt-timestamp-uptime",
19-
"defmt",
20-
] }
2117

2218
cortex-m-rt = "0.7"
2319

0 commit comments

Comments
 (0)