We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Debug
1 parent 4114f56 commit 511c260Copy full SHA for 511c260
src/dma.rs
@@ -541,6 +541,7 @@ macro_rules! dma {
541
/// A singleton that represents a single DMAx channel (channel X in this case)
542
///
543
/// This singleton has exclusive access to the registers of the DMAx channel X
544
+ #[derive(Debug)]
545
pub struct $CX;
546
547
impl $CX {
@@ -594,7 +595,9 @@ macro_rules! dma {
594
595
#[inline]
596
pub fn listen(&mut self, event: Event) {
597
match event {
- Event::HalfTransfer => self.ccr().modify(|_, w| w.htie().set_bit()),
598
+ Event::HalfTransfer => {
599
+ self.ccr().modify(|_, w| w.htie().set_bit())
600
+ },
601
Event::TransferComplete => {
602
self.ccr().modify(|_, w| w.tcie().set_bit())
603
}
0 commit comments