Skip to content

Commit 245f586

Browse files
committed
Also clear these bits
1 parent 51881df commit 245f586

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/dma/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ impl<'rx, 'tx> EthernetDMA<'rx, 'tx> {
351351
.set_bit()
352352
.tbu()
353353
.set_bit()
354+
.eti()
355+
.set_bit()
356+
.eri()
357+
.set_bit()
354358
});
355359

356360
if status.fbe().bit_is_set() {

src/ptp/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,11 @@ impl EthernetPTP {
411411
#[cfg(feature = "async-await")]
412412
pub async fn wait_until(&mut self, timestamp: Timestamp) {
413413
self.configure_target_time_interrupt(timestamp);
414+
414415
core::future::poll_fn(|ctx| {
415416
if EthernetPTP::read_and_clear_interrupt_flag() {
416417
Poll::Ready(())
417-
} else if EthernetPTP::get_time().raw() >= timestamp.raw() {
418+
} else if EthernetPTP::now().raw() >= timestamp.raw() {
418419
Poll::Ready(())
419420
} else {
420421
EthernetPTP::waker().register(ctx.waker());

0 commit comments

Comments
 (0)