We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 709cee0 + be90fa8 commit 2c3002bCopy full SHA for 2c3002b
ports/atmel-samd/common-hal/i2cperipheral/I2CPeripheral.c
@@ -58,6 +58,10 @@ void common_hal_i2cperipheral_i2c_peripheral_construct(i2cperipheral_i2c_periphe
58
59
samd_peripherals_sercom_clock_init(sercom, sercom_index);
60
61
+#ifdef SAM_D5X_E5X
62
+ sercom->I2CS.CTRLC.bit.SDASETUP = 0x08;
63
+#endif
64
+
65
sercom->I2CS.CTRLA.bit.SWRST = 1;
66
while (sercom->I2CS.CTRLA.bit.SWRST || sercom->I2CS.SYNCBUSY.bit.SWRST) {}
67
0 commit comments