cpu/samd21/periph/i2c: power off did enable instead of disable
This commit is contained in:
parent
6dfec48629
commit
64cc7c63c8
@ -352,7 +352,7 @@ void i2c_poweroff(i2c_t dev)
|
||||
#if I2C_0_EN
|
||||
case I2C_0:
|
||||
while(I2C_0_DEV.SYNCBUSY.reg & SERCOM_I2CM_SYNCBUSY_MASK) {}
|
||||
I2C_0_DEV.CTRLA.reg |= SERCOM_I2CM_CTRLA_ENABLE;
|
||||
I2C_0_DEV.CTRLA.bit.ENABLE = 0;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user