mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
To clear a bit in sie_status, just write that single bit
This commit is contained in:
parent
5448a12b31
commit
786062aa74
|
@ -544,7 +544,7 @@ impl UsbBusTrait for UsbBus {
|
|||
inner
|
||||
.ctrl_reg
|
||||
.sie_status
|
||||
.modify(|_, w| w.suspended().set_bit());
|
||||
.write(|w| w.suspended().set_bit());
|
||||
});
|
||||
}
|
||||
fn resume(&self) {
|
||||
|
@ -553,7 +553,7 @@ impl UsbBusTrait for UsbBus {
|
|||
inner
|
||||
.ctrl_reg
|
||||
.sie_status
|
||||
.modify(|_, w| w.resume().set_bit());
|
||||
.write(|w| w.resume().set_bit());
|
||||
});
|
||||
}
|
||||
fn poll(&self) -> PollResult {
|
||||
|
|
Loading…
Reference in a new issue