only clear idle flag
This commit is contained in:
parent
17301c00e9
commit
3b37c79331
@ -254,7 +254,9 @@ fn clear_idle_flag(r: Regs) -> Sr {
|
|||||||
|
|
||||||
// This read also clears the error and idle interrupt flags on v1.
|
// This read also clears the error and idle interrupt flags on v1.
|
||||||
unsafe { rdr(r).read_volatile() };
|
unsafe { rdr(r).read_volatile() };
|
||||||
clear_interrupt_flags(r, sr);
|
let mut clear_idle = regs::Icr(0);
|
||||||
|
clear_idle.set_idle(true);
|
||||||
|
r.icr().write_value(clear_idle);
|
||||||
|
|
||||||
r.cr1().modify(|w| w.set_idleie(true));
|
r.cr1().modify(|w| w.set_idleie(true));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user