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