Skip to content

Commit fd5ac84

Browse files
committed
Update PACs, remove xtensa/riscv features
1 parent b9b8829 commit fd5ac84

File tree

6 files changed

+21
-37
lines changed

6 files changed

+21
-37
lines changed

esp-hal-embassy/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,3 @@ integrated-timers = ["embassy-executor?/integrated-timers"]
5050

5151
[lints.rust]
5252
unexpected_cfgs = "allow"
53-
54-
[patch.crates-io]
55-
xtensa-lx = { path = "../xtensa-lx" }

esp-hal/Cargo.toml

+20-24
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,32 @@ nb = "1.1.0"
4444
paste = "1.0.15"
4545
portable-atomic = { version = "1.9.0", default-features = false }
4646
procmacros = { version = "0.14.0", features = ["enum-dispatch", "interrupt", "ram"], package = "esp-hal-procmacros", path = "../esp-hal-procmacros" }
47-
riscv = { version = "0.11.1", optional = true }
4847
strum = { version = "0.26.3", default-features = false, features = ["derive"] }
4948
void = { version = "1.0.2", default-features = false }
5049
usb-device = { version = "0.3.2", optional = true }
5150
rand_core = "0.6.4"
5251
ufmt-write = "0.1.0"
53-
xtensa-lx = { version = "0.9.0", optional = true }
5452

5553
# IMPORTANT:
5654
# Each supported device MUST have its PAC included below along with a
5755
# corresponding feature.
58-
esp32 = { version = "0.33.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "80ed3b5", features = ["critical-section", "rt"], optional = true }
59-
esp32c2 = { version = "0.22.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "80ed3b5", features = ["critical-section", "rt"], optional = true }
60-
esp32c3 = { version = "0.25.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "80ed3b5", features = ["critical-section", "rt"], optional = true }
61-
esp32c6 = { version = "0.16.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "80ed3b5", features = ["critical-section", "rt"], optional = true }
62-
esp32h2 = { version = "0.12.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "80ed3b5", features = ["critical-section", "rt"], optional = true }
63-
esp32s2 = { version = "0.24.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "80ed3b5", features = ["critical-section", "rt"], optional = true }
64-
esp32s3 = { version = "0.28.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "80ed3b5", features = ["critical-section", "rt"], optional = true }
56+
esp32 = { version = "0.33.0", git = "https://github.com/esp-rs/esp-pacs", rev = "2d9fb24a7077aea7b071e2dfb63d81764957b1e9", features = ["critical-section", "rt"], optional = true }
57+
esp32c2 = { version = "0.22.0", git = "https://github.com/esp-rs/esp-pacs", rev = "2d9fb24a7077aea7b071e2dfb63d81764957b1e9", features = ["critical-section", "rt"], optional = true }
58+
esp32c3 = { version = "0.25.0", git = "https://github.com/esp-rs/esp-pacs", rev = "2d9fb24a7077aea7b071e2dfb63d81764957b1e9", features = ["critical-section", "rt"], optional = true }
59+
esp32c6 = { version = "0.16.0", git = "https://github.com/esp-rs/esp-pacs", rev = "2d9fb24a7077aea7b071e2dfb63d81764957b1e9", features = ["critical-section", "rt"], optional = true }
60+
esp32h2 = { version = "0.12.0", git = "https://github.com/esp-rs/esp-pacs", rev = "2d9fb24a7077aea7b071e2dfb63d81764957b1e9", features = ["critical-section", "rt"], optional = true }
61+
esp32s2 = { version = "0.24.0", git = "https://github.com/esp-rs/esp-pacs", rev = "2d9fb24a7077aea7b071e2dfb63d81764957b1e9", features = ["critical-section", "rt"], optional = true }
62+
esp32s3 = { version = "0.28.0", git = "https://github.com/esp-rs/esp-pacs", rev = "2d9fb24a7077aea7b071e2dfb63d81764957b1e9", features = ["critical-section", "rt"], optional = true }
6563

6664
[target.'cfg(target_arch = "riscv32")'.dependencies]
67-
esp-riscv-rt = { version = "0.9.0", path = "../esp-riscv-rt" }
65+
riscv = { version = "0.11.1" }
66+
esp-riscv-rt = { version = "0.9.0", path = "../esp-riscv-rt" }
67+
critical-section = { version = "1.1.3", features = ["restore-state-u8"] }
6868

6969
[target.'cfg(target_arch = "xtensa")'.dependencies]
70-
xtensa-lx-rt = { version = "0.17.0", path = "../xtensa-lx-rt" }
70+
xtensa-lx = { version = "0.9.0", path = "../xtensa-lx" }
71+
xtensa-lx-rt = { version = "0.17.0", path = "../xtensa-lx-rt" }
72+
critical-section = { version = "1.1.3", features = ["restore-state-u32"] }
7173

7274
[build-dependencies]
7375
basic-toml = "0.1.9"
@@ -80,9 +82,6 @@ serde = { version = "1.0.210", features = ["derive"] }
8082
[features]
8183
default = []
8284

83-
riscv = ["dep:riscv", "critical-section/restore-state-u8"]
84-
xtensa = ["dep:xtensa-lx", "critical-section/restore-state-u32"]
85-
8685
bluetooth = []
8786

8887
usb-otg = ["dep:embassy-usb-driver", "dep:embassy-usb-synopsys-otg", "dep:esp-synopsys-usb-otg", "dep:usb-device"]
@@ -104,19 +103,19 @@ log = ["dep:log"]
104103

105104
# Chip Support Feature Flags
106105
# Target the ESP32.
107-
esp32 = ["dep:esp32", "xtensa", "xtensa-lx-rt/esp32"]
106+
esp32 = ["dep:esp32", "xtensa-lx-rt/esp32"]
108107
# Target the ESP32-C2.
109-
esp32c2 = ["dep:esp32c2", "riscv", "portable-atomic/unsafe-assume-single-core"]
108+
esp32c2 = ["dep:esp32c2", "portable-atomic/unsafe-assume-single-core"]
110109
# Target the ESP32-C3.
111-
esp32c3 = ["dep:esp32c3", "riscv", "portable-atomic/unsafe-assume-single-core", "esp-riscv-rt/rtc-ram"]
110+
esp32c3 = ["dep:esp32c3", "portable-atomic/unsafe-assume-single-core", "esp-riscv-rt/rtc-ram"]
112111
# Target the ESP32-C6.
113-
esp32c6 = ["dep:esp32c6", "riscv", "procmacros/has-lp-core", "esp-riscv-rt/rtc-ram"]
112+
esp32c6 = ["dep:esp32c6", "procmacros/has-lp-core", "esp-riscv-rt/rtc-ram"]
114113
# Target the ESP32-H2.
115-
esp32h2 = ["dep:esp32h2", "riscv", "esp-riscv-rt/rtc-ram"]
114+
esp32h2 = ["dep:esp32h2", "esp-riscv-rt/rtc-ram"]
116115
# Target the ESP32-S2.
117-
esp32s2 = ["dep:esp32s2", "xtensa", "portable-atomic/critical-section", "procmacros/has-ulp-core", "xtensa-lx-rt/esp32s2", "usb-otg"]
116+
esp32s2 = ["dep:esp32s2", "portable-atomic/critical-section", "procmacros/has-ulp-core", "xtensa-lx-rt/esp32s2", "usb-otg"]
118117
# Target the ESP32-S3.
119-
esp32s3 = ["dep:esp32s3", "xtensa", "procmacros/has-ulp-core", "xtensa-lx-rt/esp32s3", "usb-otg"]
118+
esp32s3 = ["dep:esp32s3", "procmacros/has-ulp-core", "xtensa-lx-rt/esp32s3", "usb-otg"]
120119

121120
#! ### RISC-V Exclusive Feature Flags
122121
## Move the stack to start of RAM to get zero-cost stack overflow protection
@@ -157,6 +156,3 @@ mixed_attributes_style = "allow"
157156

158157
[lints.rust]
159158
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(host_os, values("windows"))'] }
160-
161-
[patch.crates-io]
162-
xtensa-lx = { path = "../xtensa-lx" }

esp-wifi/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,3 @@ features = [
197197
"esp-hal/default",
198198
]
199199
default-target = "riscv32imc-unknown-none-elf"
200-
201-
[patch.crates-io]
202-
xtensa-lx = { path = "../xtensa-lx" }

examples/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,3 @@ incremental = false
7070
opt-level = 3
7171
lto = 'fat'
7272
overflow-checks = false
73-
74-
[patch.crates-io]
75-
xtensa-lx = { path = "../xtensa-lx" }

hil-test/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,3 @@ incremental = false
312312
opt-level = 3
313313
lto = false # LTO (thin or fat) miscompiles some tests on RISC-V
314314
overflow-checks = false
315-
316-
[patch.crates-io]
317-
xtensa-lx = { path = "../xtensa-lx" }

xtensa-lx-rt/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ features = ["esp32"]
1616
document-features = "0.2.10"
1717
macros = { version = "0.2.2", package = "xtensa-lx-rt-proc-macros", path = "./procmacros" }
1818
r0 = "1.0.0"
19-
xtensa-lx = "0.9.0"
19+
xtensa-lx = { version = "0.9.0", path = "../xtensa-lx" }
2020

2121
[build-dependencies]
2222
anyhow = "1.0.89"

0 commit comments

Comments
 (0)