diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-08-05 20:58:04 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-08-05 21:07:42 +0200 |
| commit | 4f7ac1946a43379306aa432961fb97bba1139a6e (patch) | |
| tree | 2589e67baa770acf244dfdea355e16585d683d16 /cyw43-pio | |
| parent | afc8e684dd16c3bc947b365ca293f0f37d95b342 (diff) | |
cyw43: add Bluetooth support.
Co-Authored-By: Brandon Ros <[email protected]>
Diffstat (limited to 'cyw43-pio')
| -rw-r--r-- | cyw43-pio/src/lib.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cyw43-pio/src/lib.rs b/cyw43-pio/src/lib.rs index 8c217b995..40cf63a17 100644 --- a/cyw43-pio/src/lib.rs +++ b/cyw43-pio/src/lib.rs | |||
| @@ -181,7 +181,10 @@ where | |||
| 181 | let read_bits = read.len() * 32 + 32 - 1; | 181 | let read_bits = read.len() * 32 + 32 - 1; |
| 182 | 182 | ||
| 183 | #[cfg(feature = "defmt")] | 183 | #[cfg(feature = "defmt")] |
| 184 | defmt::trace!("write={} read={}", write_bits, read_bits); | 184 | defmt::trace!("cmd_read write={} read={}", write_bits, read_bits); |
| 185 | |||
| 186 | #[cfg(feature = "defmt")] | ||
| 187 | defmt::trace!("cmd_read cmd = {:02x} len = {}", cmd, read.len()); | ||
| 185 | 188 | ||
| 186 | unsafe { | 189 | unsafe { |
| 187 | instr::set_y(&mut self.sm, read_bits as u32); | 190 | instr::set_y(&mut self.sm, read_bits as u32); |
| @@ -201,6 +204,10 @@ where | |||
| 201 | .rx() | 204 | .rx() |
| 202 | .dma_pull(self.dma.reborrow(), slice::from_mut(&mut status)) | 205 | .dma_pull(self.dma.reborrow(), slice::from_mut(&mut status)) |
| 203 | .await; | 206 | .await; |
| 207 | |||
| 208 | #[cfg(feature = "defmt")] | ||
| 209 | defmt::trace!("cmd_read cmd = {:02x} len = {} read = {:08x}", cmd, read.len(), read); | ||
| 210 | |||
| 204 | status | 211 | status |
| 205 | } | 212 | } |
| 206 | } | 213 | } |
