Skip to content

Commit fffbe32

Browse files
committed
Too quick on the commit
1 parent 8ea7d71 commit fffbe32

File tree

1 file changed

+2
-2
lines changed
  • libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32

1 file changed

+2
-2
lines changed

libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/i2c_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ int block_and_wait_for_ack(I2C_TypeDef *i2c)
372372
void i2c_slave_mode(i2c_t *obj, int enable_slave)
373373
{
374374
if(enable_slave) {
375-
/* Datasheet note: DIV must be set to 1 during slave operation */
376-
obj->i2c.i2c->DIV = 1;
375+
/* Reference manual note: DIV must be set to 1 during slave operation */
376+
obj->i2c.i2c->CLKDIV = 1;
377377
obj->i2c.i2c->CTRL |= _I2C_CTRL_SLAVE_MASK;
378378
obj->i2c.i2c->CTRL |= _I2C_CTRL_AUTOACK_MASK; //Slave implementation assumes auto acking
379379
} else {

0 commit comments

Comments
 (0)