mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 12:55:23 +01:00
Merge c04b02e7c9 into 300ad99b74
This commit is contained in:
commit
9b5845df4f
2 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue