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.
1 parent 8ea7d71 commit fffbe32Copy full SHA for fffbe32
libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/i2c_api.c
@@ -372,8 +372,8 @@ int block_and_wait_for_ack(I2C_TypeDef *i2c)
372
void i2c_slave_mode(i2c_t *obj, int enable_slave)
373
{
374
if(enable_slave) {
375
- /* Datasheet note: DIV must be set to 1 during slave operation */
376
- obj->i2c.i2c->DIV = 1;
+ /* Reference manual note: DIV must be set to 1 during slave operation */
+ obj->i2c.i2c->CLKDIV = 1;
377
obj->i2c.i2c->CTRL |= _I2C_CTRL_SLAVE_MASK;
378
obj->i2c.i2c->CTRL |= _I2C_CTRL_AUTOACK_MASK; //Slave implementation assumes auto acking
379
} else {
0 commit comments