aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Balbi <[email protected]>2025-11-17 16:36:19 -0800
committerFelipe Balbi <[email protected]>2025-11-17 16:36:19 -0800
commit017c8020f56a996182788202c8bc9da1cf4d503a (patch)
treec953f04faecd06123a7beb788d729fe10c705270
parent02285c2153d22f2c0c93a4ce920cdebc03f18658 (diff)
parent62e297c130ac26afe4d7d5752bb79709bd370e39 (diff)
Merge remote-tracking branch 'odp/main' into james/impl-clocks
-rw-r--r--.cargo/config.toml2
-rw-r--r--Cargo.lock89
-rw-r--r--Cargo.toml14
-rw-r--r--examples/.cargo/config.toml2
-rw-r--r--examples/Cargo.lock1
-rw-r--r--examples/Cargo.toml4
-rw-r--r--examples/memory.x4
-rw-r--r--examples/src/bin/blink.rs4
-rw-r--r--supply-chain/audits.toml5
-rw-r--r--supply-chain/config.toml4
10 files changed, 25 insertions, 104 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 000000000..55dd5ea5f
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,2 @@
1[build]
2target = "thumbv8m.main-none-eabihf" # Cortex-M33
diff --git a/Cargo.lock b/Cargo.lock
index e9f4d3165..0fb5bfb12 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -81,41 +81,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
81checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" 81checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b"
82 82
83[[package]] 83[[package]]
84name = "darling"
85version = "0.20.11"
86source = "registry+https://github.com/rust-lang/crates.io-index"
87checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
88dependencies = [
89 "darling_core",
90 "darling_macro",
91]
92
93[[package]]
94name = "darling_core"
95version = "0.20.11"
96source = "registry+https://github.com/rust-lang/crates.io-index"
97checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
98dependencies = [
99 "fnv",
100 "ident_case",
101 "proc-macro2",
102 "quote",
103 "strsim",
104 "syn",
105]
106
107[[package]]
108name = "darling_macro"
109version = "0.20.11"
110source = "registry+https://github.com/rust-lang/crates.io-index"
111checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
112dependencies = [
113 "darling_core",
114 "quote",
115 "syn",
116]
117
118[[package]]
119name = "defmt" 84name = "defmt"
120version = "1.0.1" 85version = "1.0.1"
121source = "registry+https://github.com/rust-lang/crates.io-index" 86source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -174,37 +139,6 @@ dependencies = [
174] 139]
175 140
176[[package]] 141[[package]]
177name = "embassy-executor"
178version = "0.9.1"
179source = "registry+https://github.com/rust-lang/crates.io-index"
180checksum = "06070468370195e0e86f241c8e5004356d696590a678d47d6676795b2e439c6b"
181dependencies = [
182 "cortex-m",
183 "critical-section",
184 "document-features",
185 "embassy-executor-macros",
186 "embassy-executor-timer-queue",
187]
188
189[[package]]
190name = "embassy-executor-macros"
191version = "0.7.0"
192source = "registry+https://github.com/rust-lang/crates.io-index"
193checksum = "dfdddc3a04226828316bf31393b6903ee162238576b1584ee2669af215d55472"
194dependencies = [
195 "darling",
196 "proc-macro2",
197 "quote",
198 "syn",
199]
200
201[[package]]
202name = "embassy-executor-timer-queue"
203version = "0.1.0"
204source = "registry+https://github.com/rust-lang/crates.io-index"
205checksum = "2fc328bf943af66b80b98755db9106bf7e7471b0cf47dc8559cd9a6be504cc9c"
206
207[[package]]
208name = "embassy-futures" 142name = "embassy-futures"
209version = "0.1.2" 143version = "0.1.2"
210source = "registry+https://github.com/rust-lang/crates.io-index" 144source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -230,7 +164,6 @@ dependencies = [
230 "critical-section", 164 "critical-section",
231 "defmt", 165 "defmt",
232 "embassy-embedded-hal", 166 "embassy-embedded-hal",
233 "embassy-executor",
234 "embassy-hal-internal", 167 "embassy-hal-internal",
235 "embassy-sync", 168 "embassy-sync",
236 "embassy-time", 169 "embassy-time",
@@ -352,12 +285,6 @@ dependencies = [
352] 285]
353 286
354[[package]] 287[[package]]
355name = "fnv"
356version = "1.0.7"
357source = "registry+https://github.com/rust-lang/crates.io-index"
358checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
359
360[[package]]
361name = "futures-core" 288name = "futures-core"
362version = "0.3.31" 289version = "0.3.31"
363source = "registry+https://github.com/rust-lang/crates.io-index" 290source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -389,12 +316,6 @@ dependencies = [
389] 316]
390 317
391[[package]] 318[[package]]
392name = "ident_case"
393version = "1.0.1"
394source = "registry+https://github.com/rust-lang/crates.io-index"
395checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
396
397[[package]]
398name = "litrs" 319name = "litrs"
399version = "1.0.0" 320version = "1.0.0"
400source = "registry+https://github.com/rust-lang/crates.io-index" 321source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -511,16 +432,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
511checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" 432checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
512 433
513[[package]] 434[[package]]
514name = "strsim"
515version = "0.11.1"
516source = "registry+https://github.com/rust-lang/crates.io-index"
517checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
518
519[[package]]
520name = "syn" 435name = "syn"
521version = "2.0.109" 436version = "2.0.110"
522source = "registry+https://github.com/rust-lang/crates.io-index" 437source = "registry+https://github.com/rust-lang/crates.io-index"
523checksum = "2f17c7e013e88258aa9543dcbe81aca68a667a9ac37cd69c9fbc07858bfe0e2f" 438checksum = "a99801b5bd34ede4cf3fc688c5919368fea4e4814a4664359503e6015b280aea"
524dependencies = [ 439dependencies = [
525 "proc-macro2", 440 "proc-macro2",
526 "quote", 441 "quote",
diff --git a/Cargo.toml b/Cargo.toml
index 3913104fc..841ce1903 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,24 +13,20 @@ cortex-m-rt = { version = "0.7", features = ["device"] }
13critical-section = "1.2.0" 13critical-section = "1.2.0"
14defmt = { version = "1.0", optional = true } 14defmt = { version = "1.0", optional = true }
15embassy-embedded-hal = "0.5.0" 15embassy-embedded-hal = "0.5.0"
16embassy-executor = { version = "0.9.0", features = ["arch-cortex-m", "executor-interrupt", "executor-thread"], default-features = false }
17embassy-hal-internal = { version = "0.3.0", features = ["cortex-m", "prio-bits-3"] } 16embassy-hal-internal = { version = "0.3.0", features = ["cortex-m", "prio-bits-3"] }
18embassy-sync = "0.7.2" 17embassy-sync = "0.7.2"
19embassy-time = "0.5.0" 18embassy-time = "0.5.0"
20embassy-time-driver = "0.2.1" 19embassy-time-driver = "0.2.1"
21embedded-io = "0.6"
22heapless = "0.8"
23mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt"], rev = "3ab4c868f75a9240bb8fdce24982d34f2273aabf", version = "0.1.0" }
24paste = "1.0.15"
25
26embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = [
27 "unproven",
28] }
29embedded-hal = { package = "embedded-hal", version = "1.0" } 20embedded-hal = { package = "embedded-hal", version = "1.0" }
21embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
30embedded-hal-async = { version = "1.0" } 22embedded-hal-async = { version = "1.0" }
31embedded-hal-nb = { version = "1.0" } 23embedded-hal-nb = { version = "1.0" }
24embedded-io = "0.6"
32embedded-io-async = { version = "0.6.1" } 25embedded-io-async = { version = "0.6.1" }
26heapless = "0.8"
27mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt"], rev = "3ab4c868f75a9240bb8fdce24982d34f2273aabf", version = "0.1.0" }
33nb = "1.1.0" 28nb = "1.1.0"
29paste = "1.0.15"
34 30
35[features] 31[features]
36default = [] 32default = []
diff --git a/examples/.cargo/config.toml b/examples/.cargo/config.toml
index ecb11be64..aedc55b06 100644
--- a/examples/.cargo/config.toml
+++ b/examples/.cargo/config.toml
@@ -1,5 +1,5 @@
1[target.thumbv8m.main-none-eabihf] 1[target.thumbv8m.main-none-eabihf]
2runner = 'probe-rs run --chip MCXA276 --preverify --verify' 2runner = 'probe-rs run --chip MCXA276 --preverify --verify --protocol swd --speed 12000'
3 3
4rustflags = [ 4rustflags = [
5 "-C", "linker=flip-link", 5 "-C", "linker=flip-link",
diff --git a/examples/Cargo.lock b/examples/Cargo.lock
index b774aff97..b2ac9a051 100644
--- a/examples/Cargo.lock
+++ b/examples/Cargo.lock
@@ -240,7 +240,6 @@ dependencies = [
240 "critical-section", 240 "critical-section",
241 "defmt", 241 "defmt",
242 "embassy-embedded-hal", 242 "embassy-embedded-hal",
243 "embassy-executor",
244 "embassy-hal-internal", 243 "embassy-hal-internal",
245 "embassy-sync", 244 "embassy-sync",
246 "embassy-time", 245 "embassy-time",
diff --git a/examples/Cargo.toml b/examples/Cargo.toml
index 6b100de42..d03d3d95c 100644
--- a/examples/Cargo.toml
+++ b/examples/Cargo.toml
@@ -19,3 +19,7 @@ embassy-time-driver = "0.2.1"
19embedded-io-async = "0.6.1" 19embedded-io-async = "0.6.1"
20heapless = "0.9.2" 20heapless = "0.9.2"
21panic-probe = { version = "1.0", features = ["print-defmt"] } 21panic-probe = { version = "1.0", features = ["print-defmt"] }
22
23[profile.release]
24lto = true # better optimizations
25debug = 2 # enough information for defmt/rtt locations
diff --git a/examples/memory.x b/examples/memory.x
index 528545b64..315ced58a 100644
--- a/examples/memory.x
+++ b/examples/memory.x
@@ -1,5 +1,5 @@
1MEMORY 1MEMORY
2{ 2{
3 FLASH : ORIGIN = 0x20000000, LENGTH = 80K 3 FLASH : ORIGIN = 0x00000000, LENGTH = 1M
4 RAM : ORIGIN = 0x20014000, LENGTH = 48K 4 RAM : ORIGIN = 0x20000000, LENGTH = 128K
5} 5}
diff --git a/examples/src/bin/blink.rs b/examples/src/bin/blink.rs
index 8c48e79f1..d8b158d50 100644
--- a/examples/src/bin/blink.rs
+++ b/examples/src/bin/blink.rs
@@ -26,6 +26,8 @@ async fn main(_spawner: Spawner) {
26 init_led_gpio_clocks(hal::pac()); 26 init_led_gpio_clocks(hal::pac());
27 } 27 }
28 28
29 defmt::info!("Blink example");
30
29 // Initialize embassy-time global driver backed by OSTIMER0 31 // Initialize embassy-time global driver backed by OSTIMER0
30 hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000); 32 hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000);
31 33
@@ -41,6 +43,8 @@ async fn main(_spawner: Spawner) {
41 // With pauses between letters and words 43 // With pauses between letters and words
42 44
43 loop { 45 loop {
46 defmt::info!("SOS");
47
44 // S: three short blinks 48 // S: three short blinks
45 for _ in 0..3 { 49 for _ in 0..3 {
46 led.set_low(); 50 led.set_low();
diff --git a/supply-chain/audits.toml b/supply-chain/audits.toml
index 60ebedf9b..2aba6b961 100644
--- a/supply-chain/audits.toml
+++ b/supply-chain/audits.toml
@@ -110,6 +110,11 @@ delta = "2.1.0 -> 2.1.1"
110[[audits.syn]] 110[[audits.syn]]
111who = "Felipe Balbi <[email protected]>" 111who = "Felipe Balbi <[email protected]>"
112criteria = "safe-to-deploy" 112criteria = "safe-to-deploy"
113version = "2.0.110"
114
115[[audits.syn]]
116who = "Felipe Balbi <[email protected]>"
117criteria = "safe-to-deploy"
113delta = "2.0.100 -> 2.0.109" 118delta = "2.0.100 -> 2.0.109"
114 119
115[[audits.thiserror]] 120[[audits.thiserror]]
diff --git a/supply-chain/config.toml b/supply-chain/config.toml
index 5927b0b61..36a513ee2 100644
--- a/supply-chain/config.toml
+++ b/supply-chain/config.toml
@@ -181,10 +181,6 @@ criteria = "safe-to-deploy"
181version = "2.1.0" 181version = "2.1.0"
182criteria = "safe-to-run" 182criteria = "safe-to-run"
183 183
184[[exemptions.syn]]
185version = "2.0.100"
186criteria = "safe-to-deploy"
187
188[[exemptions.typenum]] 184[[exemptions.typenum]]
189version = "1.18.0" 185version = "1.18.0"
190criteria = "safe-to-deploy" 186criteria = "safe-to-deploy"