diff --git a/examples/hpm5300evk/.cargo/config.toml b/examples/hpm5300evk/.cargo/config.toml index d96c202..ec0a6a8 100644 --- a/examples/hpm5300evk/.cargo/config.toml +++ b/examples/hpm5300evk/.cargo/config.toml @@ -13,7 +13,7 @@ runner = [ "--protocol", "jtag", "--log-format", - "{t} {L} {F}:{l} {s}", + "{t} {L} {fff}:{l} {s}", ] rustflags = [ diff --git a/examples/hpm5300evk/Cargo.toml b/examples/hpm5300evk/Cargo.toml index f0f7177..9e3639e 100644 --- a/examples/hpm5300evk/Cargo.toml +++ b/examples/hpm5300evk/Cargo.toml @@ -9,6 +9,7 @@ hpm-hal = { path = "../..", features = [ "rt", "embassy", "hpm5361", + "defmt", "usb-pin-reuse-hpm5300", ] } @@ -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" diff --git a/examples/hpm6200evk/.cargo/config.toml b/examples/hpm6200evk/.cargo/config.toml index 4d1e596..3acef35 100644 --- a/examples/hpm6200evk/.cargo/config.toml +++ b/examples/hpm6200evk/.cargo/config.toml @@ -13,7 +13,7 @@ runner = [ "--protocol", "jtag", "--log-format", - "{t} {L} {F}:{l} {s}", + "{t} {L} {fff}:{l} {s}", ] rustflags = [ diff --git a/examples/hpm6200evk/Cargo.toml b/examples/hpm6200evk/Cargo.toml index e77fa52..6788254 100644 --- a/examples/hpm6200evk/Cargo.toml +++ b/examples/hpm6200evk/Cargo.toml @@ -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" diff --git a/examples/hpm6300evk/.cargo/config.toml b/examples/hpm6300evk/.cargo/config.toml index 885e08c..3eb4130 100644 --- a/examples/hpm6300evk/.cargo/config.toml +++ b/examples/hpm6300evk/.cargo/config.toml @@ -13,7 +13,7 @@ runner = [ "--protocol", "jtag", "--log-format", - "{t} {L} {F}:{l} {s}", + "{t} {L} {fff}:{l} {s}", ] rustflags = [ diff --git a/examples/hpm6300evk/Cargo.toml b/examples/hpm6300evk/Cargo.toml index 9f56a87..2627880 100644 --- a/examples/hpm6300evk/Cargo.toml +++ b/examples/hpm6300evk/Cargo.toml @@ -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" diff --git a/examples/hpm6e00evk/.cargo/config.toml b/examples/hpm6e00evk/.cargo/config.toml index a7d480f..7b0b269 100644 --- a/examples/hpm6e00evk/.cargo/config.toml +++ b/examples/hpm6e00evk/.cargo/config.toml @@ -13,7 +13,7 @@ runner = [ "--protocol", "jtag", "--log-format", - "{t} {L} {F}:{l} {s}", + "{t} {L} {fff}:{l} {s}", ] rustflags = [ diff --git a/examples/hpm6e00evk/Cargo.toml b/examples/hpm6e00evk/Cargo.toml index 437d31c..5d1df93 100644 --- a/examples/hpm6e00evk/Cargo.toml +++ b/examples/hpm6e00evk/Cargo.toml @@ -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" diff --git a/src/internal/mod.rs b/src/internal/mod.rs index e62e46d..5e5d5ac 100644 --- a/src/internal/mod.rs +++ b/src/internal/mod.rs @@ -18,6 +18,7 @@ impl Iterator for BitIter { } /// Numbered pin trait +#[allow(dead_code)] pub trait NumberedPin { fn num(&self) -> u8; } diff --git a/src/lib.rs b/src/lib.rs index e35c49b..212d3d0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;