You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Interrupt bits must be cleared by software. Clear the STOP and
89
+
// RESTART interrupt bits after an I2C transaction finishes.
90
+
if (self->peripheral->hw->raw_intr_stat&I2C_IC_INTR_STAT_R_STOP_DET_BITS) {
91
+
self->peripheral->hw->clr_stop_det;
92
+
self->peripheral->hw->clr_restart_det;
93
+
}
94
+
88
95
if (!((self->peripheral->hw->raw_intr_stat&I2C_IC_INTR_STAT_R_RX_FULL_BITS) || (self->peripheral->hw->raw_intr_stat&I2C_IC_INTR_STAT_R_RD_REQ_BITS))) {
89
96
return0;
90
97
}
@@ -98,12 +105,20 @@ int common_hal_i2ctarget_i2c_target_is_addressed(i2ctarget_i2c_target_obj_t *sel
0 commit comments