Merge pull request #2136 from lrks/fix_i2c_slave_addr_ksdk2

[KSDK2_MCUS] Fix I2C slave address
pull/2140/head
Martin Kojtal 2016-07-11 09:50:57 +01:00 committed by GitHub
commit 8188684cab
1 changed files with 1 additions and 1 deletions

View File

@ -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