To clear a bit in sie_status, just write that single bit

This commit is contained in:
Jan Niehusmann 2022-08-02 22:04:07 +00:00
parent 5448a12b31
commit 786062aa74

View file

@ -544,7 +544,7 @@ impl UsbBusTrait for UsbBus {
inner inner
.ctrl_reg .ctrl_reg
.sie_status .sie_status
.modify(|_, w| w.suspended().set_bit()); .write(|w| w.suspended().set_bit());
}); });
} }
fn resume(&self) { fn resume(&self) {
@ -553,7 +553,7 @@ impl UsbBusTrait for UsbBus {
inner inner
.ctrl_reg .ctrl_reg
.sie_status .sie_status
.modify(|_, w| w.resume().set_bit()); .write(|w| w.resume().set_bit());
}); });
} }
fn poll(&self) -> PollResult { fn poll(&self) -> PollResult {