Merge pull request #73 from daniel-larsen/master
cyw43-pio optional feature for defmt
This commit is contained in:
commit
03737e4be4
3 changed files with 5 additions and 3 deletions
|
@ -7,7 +7,7 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cyw43 = { path = "../" }
|
cyw43 = { path = "../" }
|
||||||
embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver"] }
|
embassy-rp = { version = "0.1.0", features = ["unstable-traits", "nightly", "unstable-pac", "time-driver"] }
|
||||||
pio-proc = "0.2"
|
pio-proc = "0.2"
|
||||||
pio = "0.2.1"
|
pio = "0.2.1"
|
||||||
defmt = "0.3"
|
defmt = { version = "0.3", optional = true }
|
|
@ -129,6 +129,7 @@ where
|
||||||
let write_bits = write.len() * 32 - 1;
|
let write_bits = write.len() * 32 - 1;
|
||||||
let read_bits = 31;
|
let read_bits = 31;
|
||||||
|
|
||||||
|
#[cfg(feature = "defmt")]
|
||||||
defmt::trace!("write={} read={}", write_bits, read_bits);
|
defmt::trace!("write={} read={}", write_bits, read_bits);
|
||||||
|
|
||||||
let mut dma = Peripheral::into_ref(&mut self.dma);
|
let mut dma = Peripheral::into_ref(&mut self.dma);
|
||||||
|
@ -151,6 +152,7 @@ where
|
||||||
let write_bits = 31;
|
let write_bits = 31;
|
||||||
let read_bits = read.len() * 32 + 32 - 1;
|
let read_bits = read.len() * 32 + 32 - 1;
|
||||||
|
|
||||||
|
#[cfg(feature = "defmt")]
|
||||||
defmt::trace!("write={} read={}", write_bits, read_bits);
|
defmt::trace!("write={} read={}", write_bits, read_bits);
|
||||||
|
|
||||||
let mut dma = Peripheral::into_ref(&mut self.dma);
|
let mut dma = Peripheral::into_ref(&mut self.dma);
|
||||||
|
|
|
@ -6,7 +6,7 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cyw43 = { path = "../../", features = ["defmt", "firmware-logs"] }
|
cyw43 = { path = "../../", features = ["defmt", "firmware-logs"] }
|
||||||
cyw43-pio = { path = "../../cyw43-pio" }
|
cyw43-pio = { path = "../../cyw43-pio", features = ["defmt"] }
|
||||||
embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers", "executor-thread", "arch-cortex-m"] }
|
embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers", "executor-thread", "arch-cortex-m"] }
|
||||||
embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] }
|
embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] }
|
||||||
embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver"] }
|
embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver"] }
|
||||||
|
|
Loading…
Reference in a new issue