Skip to content

Commit d401bb2

Browse files
committed
rtt-target: 0.3.1 -> 0.5.0
1 parent 489d5ee commit d401bb2

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

testsuite/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ cortex-m = { path = "../cortex-m", features = ["critical-section-single-core"] }
1414
minitest.path = "minitest"
1515
critical-section = "1.0.0"
1616
cortex-m-semihosting.path = "../cortex-m-semihosting"
17-
rtt-target = { version = "0.3.1", optional = true }
17+
rtt-target = { version = "0.5.0", optional = true }

testsuite/minitest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ cortex-m-rt.path = "../../cortex-m-rt"
1313
cortex-m-semihosting.path = "../../cortex-m-semihosting"
1414
cortex-m.path = "../../cortex-m"
1515
minitest-macros.path = "macros"
16-
rtt-target = { version = "0.3.1", optional = true }
16+
rtt-target = { version = "0.5.0", optional = true }

testsuite/minitest/macros/src/lib.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -203,22 +203,7 @@ fn tests_impl(args: TokenStream, input: TokenStream) -> parse::Result<TokenStrea
203203

204204
#[cfg(feature = "rtt")]
205205
let init_logging = quote!({
206-
let channels = ::rtt_target::rtt_init! {
207-
up: {
208-
0: {
209-
size: 256
210-
mode: BlockIfFull
211-
name: "minitest"
212-
}
213-
}
214-
};
215-
unsafe {
216-
::rtt_target::set_print_channel_cs(
217-
channels.up.0,
218-
&((|arg, f| ::critical_section::with(|_| f(arg)))
219-
as ::rtt_target::CriticalSectionFunc),
220-
);
221-
}
206+
::rtt_target::rtt_init_print!();
222207
});
223208

224209
#[cfg(not(feature = "rtt"))]

0 commit comments

Comments
 (0)