1
0
Fork 0

i2c: rename read/write register functions (#22905)

This commit is contained in:
Ryan 2024-01-16 13:26:40 +11:00 committed by GitHub
parent e1f59a6efc
commit a522b1f156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 184 additions and 170 deletions

View file

@ -47,13 +47,13 @@ void tca6424_init(void)
static void write_port(uint8_t p, uint8_t d)
{
i2c_writeReg(TCA6424_ADDR, p, &d, 1, TIMEOUT);
i2c_write_register(TCA6424_ADDR, p, &d, 1, TIMEOUT);
}
static uint8_t read_port(uint8_t port)
{
uint8_t data = 0;
i2c_readReg(TCA6424_ADDR, port, &data, 1, TIMEOUT);
i2c_read_register(TCA6424_ADDR, port, &data, 1, TIMEOUT);
return data;
}