Skip to content

Commit

Permalink
chore: refine defmt log flag
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Nov 25, 2024
1 parent 6cb7272 commit 295f3d2
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/hpm5300evk/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runner = [
"--protocol",
"jtag",
"--log-format",
"{t} {L} {F}:{l} {s}",
"{t} {L} {fff}:{l} {s}",
]

rustflags = [
Expand Down
2 changes: 2 additions & 0 deletions examples/hpm5300evk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ hpm-hal = { path = "../..", features = [
"rt",
"embassy",
"hpm5361",
"defmt",
"usb-pin-reuse-hpm5300",
] }

Expand All @@ -17,6 +18,7 @@ defmt-rtt = "0.4.1"
panic-halt = "1.0.0"

riscv = { version = "0.11.1", features = ["critical-section-single-hart"] }
andes-riscv = "0.1.1"

embedded-graphics = "0.8.1"
embedded-hal = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/hpm6200evk/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runner = [
"--protocol",
"jtag",
"--log-format",
"{t} {L} {F}:{l} {s}",
"{t} {L} {fff}:{l} {s}",
]

rustflags = [
Expand Down
2 changes: 1 addition & 1 deletion examples/hpm6200evk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
hpm-hal = { path = "../..", features = ["rt", "embassy", "hpm6280"] }
hpm-hal = { path = "../..", features = ["rt", "embassy", "hpm6280", "defmt"] }

# embedded helper libraries
defmt = "0.3.8"
Expand Down
2 changes: 1 addition & 1 deletion examples/hpm6300evk/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runner = [
"--protocol",
"jtag",
"--log-format",
"{t} {L} {F}:{l} {s}",
"{t} {L} {fff}:{l} {s}",
]

rustflags = [
Expand Down
2 changes: 1 addition & 1 deletion examples/hpm6300evk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
# "memory-x",
# "rt",
# ], git = "https://github.com/hpmicro-rs/hpm-metapac.git", tag = "hpm-data-caa8fd80439f3ac44e0701c4e6cde71a87128ee6" }
hpm-hal = { path = "../..", features = ["rt", "embassy", "hpm6360"] }
hpm-hal = { path = "../..", features = ["rt", "embassy", "hpm6360", "defmt"] }
defmt = "0.3.8"
defmt-rtt = "0.4.1"
embedded-hal = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/hpm6e00evk/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runner = [
"--protocol",
"jtag",
"--log-format",
"{t} {L} {F}:{l} {s}",
"{t} {L} {fff}:{l} {s}",
]

rustflags = [
Expand Down
2 changes: 1 addition & 1 deletion examples/hpm6e00evk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
resolver = "2"

[dependencies]
hpm-hal = { path = "../../", features = ["hpm6e80", "rt", "embassy"] }
hpm-hal = { path = "../../", features = ["hpm6e80", "rt", "embassy", "defmt"] }

panic-halt = "1.0.0"

Expand Down
1 change: 1 addition & 0 deletions src/internal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ impl Iterator for BitIter {
}

/// Numbered pin trait
#[allow(dead_code)]
pub trait NumberedPin {
fn num(&self) -> u8;
}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![no_std]
#![feature(abi_riscv_interrupt)]
#![allow(unexpected_cfgs)]
#![allow(unexpected_cfgs, static_mut_refs)]

#[doc(hidden)]
pub(crate) mod internal;
Expand Down

0 comments on commit 295f3d2

Please sign in to comment.