File tree Expand file tree Collapse file tree 3 files changed +0
-50
lines changed Expand file tree Collapse file tree 3 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,4 @@ version = "0.3.0"
11
11
12
12
[dependencies ]
13
13
aligned = " 0.1.1"
14
- cortex-m-semihosting = " 0.1.3"
15
14
volatile-register = " 0.2.0"
Original file line number Diff line number Diff line change 15
15
#![ no_std]
16
16
17
17
extern crate aligned;
18
- pub extern crate cortex_m_semihosting as semihosting;
19
18
extern crate volatile_register;
20
19
21
20
#[ macro_use]
Original file line number Diff line number Diff line change 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
-
49
1
/// Macro for sending a formatted string through an ITM channel
50
2
#[ macro_export]
51
3
macro_rules! iprint {
You can’t perform that action at this time.
0 commit comments