From 30d25834c559d4055633284ef13d0ed6dbea27ad Mon Sep 17 00:00:00 2001 From: Matt Baker Date: Mon, 29 Aug 2022 13:00:38 -0700 Subject: [PATCH] samd21: fix erroneous register bit reference. Signed-off-by: Matt Baker --- src/atsamd/i2c.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/atsamd/i2c.c b/src/atsamd/i2c.c index 0a920d85..3c316142 100644 --- a/src/atsamd/i2c.c +++ b/src/atsamd/i2c.c @@ -25,8 +25,6 @@ i2c_init(uint32_t bus, SercomI2cm *si) si->CTRLA.reg = 0; uint32_t areg = (SERCOM_I2CM_CTRLA_LOWTOUTEN | SERCOM_I2CM_CTRLA_INACTOUT(3) - | SERCOM_I2CM_STATUS_SEXTTOUT - | SERCOM_I2CM_STATUS_MEXTTOUT | SERCOM_I2CM_CTRLA_MODE(5)); si->CTRLA.reg = areg; uint32_t freq = sercom_get_pclock_frequency(bus);