diff options
| author | Hosted Weblate <hosted@weblate.org> | 2021-03-09 21:59:06 +0100 |
|---|---|---|
| committer | Hosted Weblate <hosted@weblate.org> | 2021-03-09 21:59:06 +0100 |
| commit | ff2f402ac97d675baa2e4b0989e12fccfcf15b2a (patch) | |
| tree | 38433745278eba0368d38b578f4e42d19f4a452e | |
| parent | c39e1e9f55856681e82980f7a09fe8559c02cf95 (diff) | |
| parent | 2c3002b3270e36fdb0889ac85a5506e3dc8e8404 (diff) | |
Merge remote-tracking branch 'origin/main' into main
| -rw-r--r-- | ports/atmel-samd/common-hal/i2cperipheral/I2CPeripheral.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/atmel-samd/common-hal/i2cperipheral/I2CPeripheral.c b/ports/atmel-samd/common-hal/i2cperipheral/I2CPeripheral.c index 84642d404..53cbe854f 100644 --- a/ports/atmel-samd/common-hal/i2cperipheral/I2CPeripheral.c +++ b/ports/atmel-samd/common-hal/i2cperipheral/I2CPeripheral.c @@ -58,6 +58,10 @@ void common_hal_i2cperipheral_i2c_peripheral_construct(i2cperipheral_i2c_periphe samd_peripherals_sercom_clock_init(sercom, sercom_index); +#ifdef SAM_D5X_E5X + sercom->I2CS.CTRLC.bit.SDASETUP = 0x08; +#endif + sercom->I2CS.CTRLA.bit.SWRST = 1; while (sercom->I2CS.CTRLA.bit.SWRST || sercom->I2CS.SYNCBUSY.bit.SWRST) {} |
