Skip to content

Commit 5acbe96

Browse files
committed
fmt
1 parent f197daf commit 5acbe96

File tree

2 files changed

+12
-27
lines changed

2 files changed

+12
-27
lines changed

src/dma/stream.rs

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -508,28 +508,15 @@ macro_rules! dma_stream {
508508
};
509509
}
510510

511-
512511
dma_stream!(
513512
// Note: the field names start from one, unlike the RM where they start from
514513
// zero. May need updating if it gets fixed upstream.
515-
(
516-
Stream0, 0, 1
517-
),
518-
(
519-
Stream1, 1, 2
520-
),
521-
(
522-
Stream2, 2, 3
523-
),
524-
(
525-
Stream3, 3, 4
526-
),
527-
(
528-
Stream4, 4, 5
529-
),
530-
(
531-
Stream5, 5, 6
532-
),
514+
(Stream0, 0, 1),
515+
(Stream1, 1, 2),
516+
(Stream2, 2, 3),
517+
(Stream3, 3, 4),
518+
(Stream4, 4, 5),
519+
(Stream5, 5, 6),
533520
);
534521

535522
// Cat 3 and 4 devices
@@ -545,10 +532,6 @@ dma_stream!(
545532
dma_stream!(
546533
// Note: the field names start from one, unlike the RM where they start from
547534
// zero. May need updating if it gets fixed upstream.
548-
(
549-
Stream6, 6, 7
550-
),
551-
(
552-
Stream7, 7, 8
553-
),
535+
(Stream6, 6, 7),
536+
(Stream7, 7, 8),
554537
);

src/independent_watchdog.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl IndependentWatchdog {
9393
}
9494
self.iwdg
9595
.winr()
96-
.write(|w| unsafe { w.win().bits(Self::MAX_COUNTER_VALUE as u16) } );
96+
.write(|w| unsafe { w.win().bits(Self::MAX_COUNTER_VALUE as u16) });
9797

9898
// Calculate the counter values
9999
let reload_value = max_window_time.to_millis() * (Self::CLOCK_SPEED / 1000)
@@ -105,7 +105,9 @@ impl IndependentWatchdog {
105105
while self.iwdg.sr().read().rvu().bit_is_set() {
106106
cortex_m::asm::nop();
107107
}
108-
self.iwdg.rlr().write(|w| unsafe { w.rl().bits(reload_value as u16) });
108+
self.iwdg
109+
.rlr()
110+
.write(|w| unsafe { w.rl().bits(reload_value as u16) });
109111

110112
self.feed();
111113
// Enable register access

0 commit comments

Comments
 (0)