Skip to content

Commit b56ebb4

Browse files
committed
Update riscv to 0.11.1
1 parent 4f705c8 commit b56ebb4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

e310x-hal/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased]
99

1010
### Changed
11+
- Update `riscv` to 0.11.1
1112
- Apply clippy changes
1213
- Use `portable-atomic` with `zaamo` feature to use native `amo*` operations.
1314
- Official target is now `riscv32imc-unknown-none-elf`, as it does not fully support the A extension.

e310x-hal/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ rust-version = "1.72"
1313
[dependencies]
1414
embedded-hal = { version = "0.2.6", features = ["unproven"] }
1515
nb = "1.0.0"
16-
riscv = { version = "0.10.1", features = ["critical-section-single-hart"] }
16+
riscv = { version = "0.11.1", features = ["critical-section-single-hart"] }
1717
e310x = { path = "../e310x", version = "0.11.0", features = ["rt", "critical-section"] }
1818
portable-atomic = { version = "1.9", default-features = false}
1919

e310x-hal/src/delay.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ impl DelayMs<u32> for Sleep {
113113
// after which empty handler gets called and we go into the
114114
// next iteration of this loop
115115
loop {
116-
unsafe {
117-
riscv::asm::wfi();
118-
}
116+
riscv::asm::wfi();
119117

120118
// check if we got the right interrupt cause, otherwise just loop back to wfi
121119
if mip::read().mtimer() {

0 commit comments

Comments
 (0)