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
2 changes: 1 addition & 1 deletion rtic-monotonics/src/rp2040.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl TimerBackend {
/// **Do not use this function directly.**
///
/// Use the prelude macros instead.
pub fn _start(timer: TIMER, resets: &RESETS) {
pub fn _start(timer: TIMER, resets: &mut RESETS) {
resets.reset().modify(|_, w| w.timer().clear_bit());
while resets.reset_done().read().timer().bit_is_clear() {}
timer.inte().modify(|_, w| w.alarm_0().bit(true));
Expand Down
2 changes: 1 addition & 1 deletion rtic-monotonics/src/rp235x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl TimerBackend {
/// **Do not use this function directly.**
///
/// Use the prelude macros instead.
pub fn _start(timer: TIMER0, resets: &RESETS) {
pub fn _start(timer: TIMER0, resets: &mut RESETS) {
resets.reset().modify(|_, w| w.timer0().clear_bit());
while resets.reset_done().read().timer0().bit_is_clear() {}
timer.inte().modify(|_, w| w.alarm_0().bit(true));
Expand Down
Loading