Skip to content

Commit

Permalink
Replace cortex_semihosting crate with semihosting to support risc-v
Browse files Browse the repository at this point in the history
  • Loading branch information
t-moe committed Nov 15, 2023
1 parent 06650b9 commit 7a31dfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions firmware/defmt-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# [Unreleased]
- [#796] Add support for risc-v

# [v0.3.1]

Expand Down
3 changes: 1 addition & 2 deletions firmware/defmt-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ repository = "https://github.com/knurling-rs/defmt"
version = "0.3.1"

[dependencies]
cortex-m-rt = "0.7"
cortex-m-semihosting = "0.5"
semihosting = "0.1.4"
defmt = { version = "0.3", path = "../../defmt" }
defmt-test-macros = { version = "=0.3.0", path = "macros" }
4 changes: 1 addition & 3 deletions firmware/defmt-test/src/export.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use cortex_m_rt as _;
use cortex_m_semihosting::debug;
pub use defmt::info;

use crate::TestOutcome;
Expand All @@ -8,7 +6,7 @@ use crate::TestOutcome;
/// with status code 0.
pub fn exit() -> ! {
loop {
debug::exit(debug::EXIT_SUCCESS);
semihosting::process::exit(0);
}
}

Expand Down

0 comments on commit 7a31dfb

Please sign in to comment.