diff options
author | Ryan <fauxpark@gmail.com> | 2024-01-16 13:26:40 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 02:26:40 +0000 |
commit | a522b1f15627c69f94cbc814968be5a63519b8e3 (patch) | |
tree | 2a6ea5f05d6d728230294dd4a298e0343a22be9d /keyboards/handwired/d48 | |
parent | e1f59a6efc793522155db35155f6fbdc0504d504 (diff) |
i2c: rename read/write register functions (#22905)
Diffstat (limited to 'keyboards/handwired/d48')
-rw-r--r-- | keyboards/handwired/d48/ds1307.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/handwired/d48/ds1307.c b/keyboards/handwired/d48/ds1307.c index f6b57d50d2..2b3a88f315 100644 --- a/keyboards/handwired/d48/ds1307.c +++ b/keyboards/handwired/d48/ds1307.c @@ -8,12 +8,12 @@ void ds1307_set_time(uint8_t h, uint8_t m, uint8_t s) { ((h % 10) | ((h / 10) << 4)) & 0x3F, 0, 0, 0, 0, 0 }; // 24-hour mode - i2c_writeReg(DS1307_ADDR, 0, data, 8, 100); + i2c_write_register(DS1307_ADDR, 0, data, 8, 100); } void ds1307_get_time(uint8_t *h, uint8_t *m, uint8_t *s) { uint8_t data[3]; - i2c_readReg(DS1307_ADDR, 0, data, 3, 100); + i2c_read_register(DS1307_ADDR, 0, data, 3, 100); i2c_stop(); *s = (data[0] & 0b1111) + ((data[0] & 0b1110000) >> 4) * 10; *m = (data[1] & 0b1111) + ((data[1] & 0b1110000) >> 4) * 10; |