Skip to content

Commit ff2f402

Browse files
committed
Merge remote-tracking branch 'origin/main' into main
2 parents c39e1e9 + 2c3002b commit ff2f402

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/atmel-samd/common-hal/i2cperipheral/I2CPeripheral.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ void common_hal_i2cperipheral_i2c_peripheral_construct(i2cperipheral_i2c_periphe
5858

5959
samd_peripherals_sercom_clock_init(sercom, sercom_index);
6060

61+
#ifdef SAM_D5X_E5X
62+
sercom->I2CS.CTRLC.bit.SDASETUP = 0x08;
63+
#endif
64+
6165
sercom->I2CS.CTRLA.bit.SWRST = 1;
6266
while (sercom->I2CS.CTRLA.bit.SWRST || sercom->I2CS.SYNCBUSY.bit.SWRST) {}
6367

0 commit comments

Comments
 (0)