mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Cleanup interrupts
This commit is contained in:
parent
8d2d5a30a5
commit
3a1ddd66c6
@ -297,9 +297,9 @@ impl<'d, T: Instance> Spis<'d, T> {
|
||||
poll_fn(|cx| {
|
||||
s.waker.register(cx.waker());
|
||||
if r.semstat.read().bits() == 1 {
|
||||
r.events_acquired.reset();
|
||||
return Poll::Ready(());
|
||||
}
|
||||
r.intenset.write(|w| w.acquired().set());
|
||||
Poll::Pending
|
||||
})
|
||||
.await;
|
||||
@ -312,9 +312,9 @@ impl<'d, T: Instance> Spis<'d, T> {
|
||||
poll_fn(|cx| {
|
||||
s.waker.register(cx.waker());
|
||||
if r.events_end.read().bits() != 0 {
|
||||
r.events_end.reset();
|
||||
return Poll::Ready(());
|
||||
}
|
||||
r.intenset.write(|w| w.end().set());
|
||||
Poll::Pending
|
||||
})
|
||||
.await;
|
||||
|
Loading…
Reference in New Issue
Block a user