Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hal/src/peripherals/timer/d11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ where
// need to manually read the bit here
while count.ctrla().read().bits() & 1 != 0 {}

count.ctrlbset().write(|w| {
count.ctrlbclr().write(|w| {
// Count up when the direction bit is zero
w.dir().clear_bit();
w.dir().set_bit();
// Periodic
w.oneshot().clear_bit()
w.oneshot().set_bit()
});

// Set TOP value for mfrq mode
Expand Down
6 changes: 3 additions & 3 deletions hal/src/peripherals/timer/d5x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ where
count.ctrla().write(|w| w.swrst().set_bit());
while count.syncbusy().read().swrst().bit_is_set() {}

count.ctrlbset().write(|w| {
count.ctrlbclr().write(|w| {
// Count up when the direction bit is zero
w.dir().clear_bit();
w.dir().set_bit();
// Periodic
w.oneshot().clear_bit()
w.oneshot().set_bit()
});

// Set TOP value for mfrq mode
Expand Down