samd21: fix erroneous register bit reference.

Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
This commit is contained in:
Matt Baker 2022-08-29 13:00:38 -07:00 committed by KevinOConnor
parent 989d0f8097
commit 30d25834c5
1 changed files with 0 additions and 2 deletions

View File

@ -25,8 +25,6 @@ i2c_init(uint32_t bus, SercomI2cm *si)
si->CTRLA.reg = 0; si->CTRLA.reg = 0;
uint32_t areg = (SERCOM_I2CM_CTRLA_LOWTOUTEN uint32_t areg = (SERCOM_I2CM_CTRLA_LOWTOUTEN
| SERCOM_I2CM_CTRLA_INACTOUT(3) | SERCOM_I2CM_CTRLA_INACTOUT(3)
| SERCOM_I2CM_STATUS_SEXTTOUT
| SERCOM_I2CM_STATUS_MEXTTOUT
| SERCOM_I2CM_CTRLA_MODE(5)); | SERCOM_I2CM_CTRLA_MODE(5));
si->CTRLA.reg = areg; si->CTRLA.reg = areg;
uint32_t freq = sercom_get_pclock_frequency(bus); uint32_t freq = sercom_get_pclock_frequency(bus);