mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
changes after review
This commit is contained in:
parent
3f74c557ed
commit
d0dd0f007a
@ -491,15 +491,14 @@ where
|
||||
self.set_rx_buffer(buffer)?;
|
||||
}
|
||||
|
||||
// Reset and enable the events
|
||||
// Reset events
|
||||
r.events_stopped.reset();
|
||||
r.events_error.reset();
|
||||
r.events_lasttx.reset();
|
||||
self.clear_errorsrc();
|
||||
|
||||
r.intenset.write(|w| w.stopped().set());
|
||||
r.intenset.write(|w| w.error().set());
|
||||
r.intenset.write(|w| w.lasttx().set());
|
||||
// Enable events
|
||||
r.intenset.write(|w| w.stopped().set().error().set());
|
||||
|
||||
// Start write+read operation.
|
||||
r.shorts.write(|w| {
|
||||
|
Loading…
Reference in New Issue
Block a user