drop legacy terminology. how hard was that?

This commit is contained in:
Joey Castillo
2021-08-04 12:03:54 -04:00
parent 99942154f7
commit 15050f8ace
3 changed files with 31 additions and 31 deletions

View File

@@ -358,12 +358,12 @@ void watch_enable_i2c() {
}
void watch_i2c_send(int16_t addr, uint8_t *buf, uint16_t length) {
i2c_m_sync_set_slaveaddr(&I2C_0, addr, I2C_M_SEVEN);
i2c_m_sync_set_periphaddr(&I2C_0, addr, I2C_M_SEVEN);
io_write(I2C_0_io, buf, length);
}
void watch_i2c_receive(int16_t addr, uint8_t *buf, uint16_t length) {
i2c_m_sync_set_slaveaddr(&I2C_0, addr, I2C_M_SEVEN);
i2c_m_sync_set_periphaddr(&I2C_0, addr, I2C_M_SEVEN);
io_read(I2C_0_io, buf, length);
}