mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2136 from lrks/fix_i2c_slave_addr_ksdk2
[KSDK2_MCUS] Fix I2C slave addresspull/2140/head
commit
8188684cab
|
@ -233,7 +233,7 @@ int i2c_slave_write(i2c_t *obj, const char *data, int length) {
|
|||
}
|
||||
|
||||
void i2c_slave_address(i2c_t *obj, int idx, uint32_t address, uint32_t mask) {
|
||||
i2c_addrs[obj->instance]->A1 = ((uint32_t)(address)) << 1U;
|
||||
i2c_addrs[obj->instance]->A1 = address & 0xfe;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue