This commit is contained in:
Jonathan 'theJPster' Pallant 2025-09-17 14:48:48 -07:00 committed by GitHub
commit 9b5845df4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,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));

View file

@ -56,7 +56,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));