aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikeGstefan <53955528+MikeGstefan@users.noreply.github.com>2024-11-27 13:59:55 -0500
committerGitHub <noreply@github.com>2024-11-27 18:59:55 +0000
commited026cc4a319ead48b0519b0e01f09f695498e5c (patch)
treea3f9bbe84cfadc8549634378eae21884187f65fd
parentd251ba717393a73e9ea26a34fe738e3baec477d2 (diff)
bump esp32c3 (#997)
* bump esp32-c3 * update changelog and example * rtic-monotonics: update esp32c3 to v0.26 --------- Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
-rw-r--r--examples/esp32c3/Cargo.toml2
-rw-r--r--examples/lm3s6965/Cargo.lock28
-rw-r--r--rtic-monotonics/CHANGELOG.md1
-rw-r--r--rtic-monotonics/Cargo.toml2
-rw-r--r--rtic/CHANGELOG.md1
-rw-r--r--rtic/Cargo.toml2
-rw-r--r--rtic/src/export/riscv_esp32c3.rs8
7 files changed, 19 insertions, 25 deletions
diff --git a/examples/esp32c3/Cargo.toml b/examples/esp32c3/Cargo.toml
index ae2024d..5351293 100644
--- a/examples/esp32c3/Cargo.toml
+++ b/examples/esp32c3/Cargo.toml
@@ -16,7 +16,7 @@ esp-backtrace = { version = "0.14.0", features = [
"exception-handler",
"println",
] }
-esp32c3 = {version = "0.25.0", features = ["critical-section"]}
+esp32c3 = {version = "0.26.0", features = ["critical-section"]}
esp-println = { version = "0.11.0", features = ["esp32c3"] }
[features]
diff --git a/examples/lm3s6965/Cargo.lock b/examples/lm3s6965/Cargo.lock
index c599ef8..2167092 100644
--- a/examples/lm3s6965/Cargo.lock
+++ b/examples/lm3s6965/Cargo.lock
@@ -306,27 +306,25 @@ dependencies = [
]
[[package]]
-name = "proc-macro-error"
-version = "1.0.4"
+name = "proc-macro-error-attr2"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
+checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5"
dependencies = [
- "proc-macro-error-attr",
"proc-macro2",
"quote",
- "syn 1.0.109",
- "version_check",
]
[[package]]
-name = "proc-macro-error-attr"
-version = "1.0.4"
+name = "proc-macro-error2"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802"
dependencies = [
+ "proc-macro-error-attr2",
"proc-macro2",
"quote",
- "version_check",
+ "syn 2.0.49",
]
[[package]]
@@ -378,7 +376,7 @@ name = "rtic-macros"
version = "2.1.0"
dependencies = [
"indexmap",
- "proc-macro-error",
+ "proc-macro-error2",
"proc-macro2",
"quote",
"syn 2.0.49",
@@ -386,7 +384,7 @@ dependencies = [
[[package]]
name = "rtic-monotonics"
-version = "2.0.2"
+version = "2.0.3"
dependencies = [
"cfg-if",
"cortex-m",
@@ -503,12 +501,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77439c1b53d2303b20d9459b1ade71a83c716e3f9c34f3228c00e6f185d6c002"
[[package]]
-name = "version_check"
-version = "0.9.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
-
-[[package]]
name = "void"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/rtic-monotonics/CHANGELOG.md b/rtic-monotonics/CHANGELOG.md
index 6231cf7..8c7f683 100644
--- a/rtic-monotonics/CHANGELOG.md
+++ b/rtic-monotonics/CHANGELOG.md
@@ -15,6 +15,7 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
### Changed
+- Updated esp32c3 dependency to v0.26.0
- Update `esp32c3` dependency
### Fixed
diff --git a/rtic-monotonics/Cargo.toml b/rtic-monotonics/Cargo.toml
index 24b739c..79017ec 100644
--- a/rtic-monotonics/Cargo.toml
+++ b/rtic-monotonics/Cargo.toml
@@ -67,7 +67,7 @@ stm32-metapac = { version = "15.0.0", optional = true }
imxrt-ral = { version = "0.5.3", optional = true }
-esp32c3 = {version = "0.25.0", optional = true }
+esp32c3 = {version = "0.26.0", optional = true }
riscv = {version = "0.12.1", optional = true }
diff --git a/rtic/CHANGELOG.md b/rtic/CHANGELOG.md
index d7203fa..835c7f0 100644
--- a/rtic/CHANGELOG.md
+++ b/rtic/CHANGELOG.md
@@ -14,6 +14,7 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
- Replace `atomic-polyfill` with `portable-atomic`
- Remove unused dependency `rtic-monotonics`
- Updated esp32c3 dependency to v0.25.0
+- Updated esp32c3 dependency to v0.26.0
## [v2.1.1] - 2024-03-13
diff --git a/rtic/Cargo.toml b/rtic/Cargo.toml
index 0cc6a07..5c9fae7 100644
--- a/rtic/Cargo.toml
+++ b/rtic/Cargo.toml
@@ -26,7 +26,7 @@ name = "rtic"
[dependencies]
riscv-slic = { version = "0.1.1", optional = true }
-esp32c3 = { version = "0.25.0", optional = true }
+esp32c3 = { version = "0.26.0", optional = true }
riscv = { version = "0.12.1", optional = true }
cortex-m = { version = "0.7.0", optional = true }
bare-metal = "1.0.0"
diff --git a/rtic/src/export/riscv_esp32c3.rs b/rtic/src/export/riscv_esp32c3.rs
index 1b0a91d..f1b6b63 100644
--- a/rtic/src/export/riscv_esp32c3.rs
+++ b/rtic/src/export/riscv_esp32c3.rs
@@ -71,13 +71,13 @@ pub unsafe fn lock<T, R>(ptr: *mut T, ceiling: u8, f: impl FnOnce(&mut T) -> R)
unsafe {
(*INTERRUPT_CORE0::ptr())
.cpu_int_thresh()
- .write(|w| w.cpu_int_thresh().bits(ceiling + 1))
+ .write(|w| w.cpu_int_thresh().bits(ceiling + 1));
} //esp32c3 lets interrupts with prio equal to threshold through so we up it by one
let r = f(&mut *ptr);
unsafe {
(*INTERRUPT_CORE0::ptr())
.cpu_int_thresh()
- .write(|w| w.cpu_int_thresh().bits(current))
+ .write(|w| w.cpu_int_thresh().bits(current));
}
r
}
@@ -106,7 +106,7 @@ pub fn pend(int: Interrupt) {
.cpu_intr_from_cpu_3()
.write(|w| w.cpu_intr_from_cpu_3().bit(true)),
_ => panic!("Unsupported software interrupt"), //should never happen, checked at compile time
- }
+ };
}
}
@@ -132,7 +132,7 @@ pub fn unpend(int: Interrupt) {
.cpu_intr_from_cpu_3()
.write(|w| w.cpu_intr_from_cpu_3().bit(false)),
_ => panic!("Unsupported software interrupt"),
- }
+ };
}
}