Skip to content

Commit 9828d7c

Browse files
committed
remove re-export of cortex-m-semihosting
the functionality is not fundamental and can be easily added to a program by directly depending on cortex-m-semihosting
1 parent 6c642b7 commit 9828d7c

File tree

3 files changed

+0
-50
lines changed

3 files changed

+0
-50
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ version = "0.3.0"
1111

1212
[dependencies]
1313
aligned = "0.1.1"
14-
cortex-m-semihosting = "0.1.3"
1514
volatile-register = "0.2.0"

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#![no_std]
1616

1717
extern crate aligned;
18-
pub extern crate cortex_m_semihosting as semihosting;
1918
extern crate volatile_register;
2019

2120
#[macro_use]

src/macros.rs

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,3 @@
1-
/// Macro for printing to the **host's** standard stderr
2-
#[macro_export]
3-
macro_rules! ehprint {
4-
($s:expr) => {
5-
$crate::semihosting::io::ewrite_str($s);
6-
};
7-
($($arg:tt)*) => {
8-
$crate::semihosting::io::ewrite_fmt(format_args!($($arg)*));
9-
};
10-
}
11-
12-
/// Macro for printing to the **host's** standard error, with a newline.
13-
#[macro_export]
14-
macro_rules! ehprintln {
15-
() => (ehprint!("\n"));
16-
($fmt:expr) => {
17-
ehprint!(concat!($fmt, "\n"));
18-
};
19-
($fmt:expr, $($arg:tt)*) => {
20-
ehprint!(concat!($fmt, "\n"), $($arg)*);
21-
};
22-
}
23-
24-
/// Macro for printing to the **host's** standard output
25-
#[macro_export]
26-
macro_rules! hprint {
27-
($s:expr) => {
28-
$crate::semihosting::io::write_str($s);
29-
};
30-
($($arg:tt)*) => {
31-
$crate::semihosting::io::write_fmt(format_args!($($arg)*));
32-
};
33-
}
34-
35-
/// Macro for printing to the **host's** standard output, with a newline.
36-
#[macro_export]
37-
macro_rules! hprintln {
38-
() => {
39-
hprint!("\n");
40-
};
41-
($fmt:expr) => {
42-
hprint!(concat!($fmt, "\n"));
43-
};
44-
($fmt:expr, $($arg:tt)*) => {
45-
hprint!(concat!($fmt, "\n"), $($arg)*);
46-
};
47-
}
48-
491
/// Macro for sending a formatted string through an ITM channel
502
#[macro_export]
513
macro_rules! iprint {

0 commit comments

Comments
 (0)