@@ -44,30 +44,32 @@ nb = "1.1.0"
44
44
paste = " 1.0.15"
45
45
portable-atomic = { version = " 1.9.0" , default-features = false }
46
46
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 }
48
47
strum = { version = " 0.26.3" , default-features = false , features = [" derive" ] }
49
48
void = { version = " 1.0.2" , default-features = false }
50
49
usb-device = { version = " 0.3.2" , optional = true }
51
50
rand_core = " 0.6.4"
52
51
ufmt-write = " 0.1.0"
53
- xtensa-lx = { version = " 0.9.0" , optional = true }
54
52
55
53
# IMPORTANT:
56
54
# Each supported device MUST have its PAC included below along with a
57
55
# 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 }
65
63
66
64
[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" ] }
68
68
69
69
[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" ] }
71
73
72
74
[build-dependencies ]
73
75
basic-toml = " 0.1.9"
@@ -80,9 +82,6 @@ serde = { version = "1.0.210", features = ["derive"] }
80
82
[features ]
81
83
default = []
82
84
83
- riscv = [" dep:riscv" , " critical-section/restore-state-u8" ]
84
- xtensa = [" dep:xtensa-lx" , " critical-section/restore-state-u32" ]
85
-
86
85
bluetooth = []
87
86
88
87
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"]
104
103
105
104
# Chip Support Feature Flags
106
105
# Target the ESP32.
107
- esp32 = [" dep:esp32" , " xtensa" , " xtensa -lx-rt/esp32" ]
106
+ esp32 = [" dep:esp32" , " xtensa-lx-rt/esp32" ]
108
107
# 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" ]
110
109
# 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" ]
112
111
# 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" ]
114
113
# Target the ESP32-H2.
115
- esp32h2 = [" dep:esp32h2" , " riscv " , " esp-riscv-rt/rtc-ram" ]
114
+ esp32h2 = [" dep:esp32h2" , " esp-riscv-rt/rtc-ram" ]
116
115
# 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" ]
118
117
# 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" ]
120
119
121
120
# ! ### RISC-V Exclusive Feature Flags
122
121
# # Move the stack to start of RAM to get zero-cost stack overflow protection
@@ -157,6 +156,3 @@ mixed_attributes_style = "allow"
157
156
158
157
[lints .rust ]
159
158
unexpected_cfgs = { level = " warn" , check-cfg = [' cfg(host_os, values("windows"))' ] }
160
-
161
- [patch .crates-io ]
162
- xtensa-lx = { path = " ../xtensa-lx" }
0 commit comments