Skip to content

Commit 7b7d485

Browse files
authored
Merge pull request #10402 from eightycc/issue-samd-i2c
For atmel-samd release SERCOM on I2C deinit
2 parents ffc42b9 + 313f826 commit 7b7d485

File tree

1 file changed

+1
-0
lines changed
  • ports/atmel-samd/common-hal/busio

1 file changed

+1
-0
lines changed

ports/atmel-samd/common-hal/busio/I2C.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ void common_hal_busio_i2c_deinit(busio_i2c_obj_t *self) {
135135
if (common_hal_busio_i2c_deinited(self)) {
136136
return;
137137
}
138+
allow_reset_sercom(self->i2c_desc.device.hw);
138139

139140
i2c_m_sync_disable(&self->i2c_desc);
140141
i2c_m_sync_deinit(&self->i2c_desc);

0 commit comments

Comments
 (0)