boards/dk/src/lib.rs: increase rtt bufsz, set mode to blocking for beginner

This commit is contained in:
Lotte Steenbrink 2020-06-24 11:31:47 +02:00
parent 86c0c25534
commit d7cc36d237

View file

@ -177,7 +177,10 @@ pub fn init() -> Result<Board, ()> {
// NOTE this must be executed as early as possible or the tool will timeout
// NOTE the unsafety of this macro is incorrect; it must be run at most once
rtt_init_print!(NoBlockSkip, 2048);
#[cfg(feature = "beginner")]
rtt_init_print!(BlockIfFull, 4096);
#[cfg(feature = "advanced")]
rtt_init_print!(NoBlockSkip, 4096);
log::set_logger(&Logger).unwrap();