Skip to content

Commit 38abd60

Browse files
committed
Remove cortex-m-semihosting
Signed-off-by: genan2003 <genanomer99@gmail.com>
1 parent 61dea40 commit 38abd60

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

boards/lpc55s69-evk/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ components = { path = "../components" }
1717
enum_primitive = { path = "../../libraries/enum_primitive" }
1818
capsules-core = { path = "../../capsules/core" }
1919
capsules-system = { path = "../../capsules/system" }
20-
cortex-m-semihosting = "0.5.0"
2120

2221
[build-dependencies]
2322
tock_build_scripts = { path = "../build_scripts" }

boards/lpc55s69-evk/src/io.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{LPCPin, CHIP, PROCESSES, PROCESS_PRINTER};
66
use core::fmt::Write;
77
use core::panic::PanicInfo;
88
use core::ptr::{addr_of, addr_of_mut};
9-
use cortex_m_semihosting::hprint;
9+
// use cortex_m_semihosting::hprint;
1010
use kernel::debug::{self, IoWrite};
1111
use kernel::hil::gpio::Configure;
1212
use kernel::hil::led::LedHigh;
@@ -20,17 +20,17 @@ pub static mut WRITER: Writer = Writer;
2020

2121
impl Write for Writer {
2222
fn write_str(&mut self, s: &str) -> ::core::fmt::Result {
23-
for byte in s.as_bytes() {
24-
hprint!("{}", *byte as char);
23+
for _byte in s.as_bytes() {
24+
// hprint!("{}", *byte as char);
2525
}
2626
Ok(())
2727
}
2828
}
2929

3030
impl IoWrite for Writer {
3131
fn write(&mut self, buf: &[u8]) -> usize {
32-
for byte in buf {
33-
hprint!("{}", *byte as char);
32+
for _byte in buf {
33+
// hprint!("{}", *byte as char);
3434
}
3535
buf.len()
3636
}

0 commit comments

Comments
 (0)