summaryrefslogtreecommitdiff
path: root/ports/stm32/machine_i2c.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-04-24 17:32:16 +1000
committerDamien George <damien.p.george@gmail.com>2018-04-24 17:32:16 +1000
commit0c54d0c28824dca608364e5cb64d00f607dc1209 (patch)
tree43ae707a7477954486c9f5f53c8fa2a023e669f1 /ports/stm32/machine_i2c.c
parentb73adcc3d90da7fd2a66b76161b661a603403506 (diff)
stm32: Rename legacy pyb.I2C helper functions to start with pyb_i2c_.
Diffstat (limited to 'ports/stm32/machine_i2c.c')
-rw-r--r--ports/stm32/machine_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/machine_i2c.c b/ports/stm32/machine_i2c.c
index 8fc6c2a1e..54e842571 100644
--- a/ports/stm32/machine_i2c.c
+++ b/ports/stm32/machine_i2c.c
@@ -87,13 +87,13 @@ STATIC void machine_hard_i2c_print(const mp_print_t *print, mp_obj_t self_in, mp
machine_hard_i2c_obj_t *self = MP_OBJ_TO_PTR(self_in);
mp_printf(print, "I2C(%u, freq=%u, timeout=%u)",
self - &machine_hard_i2c_obj[0] + 1,
- i2c_get_baudrate(self->pyb->i2c),
+ pyb_i2c_get_baudrate(self->pyb->i2c),
*self->timeout);
}
STATIC void machine_hard_i2c_init(const machine_hard_i2c_obj_t *self, uint32_t freq, uint32_t timeout) {
*self->timeout = timeout;
- i2c_init_freq(self->pyb, freq);
+ pyb_i2c_init_freq(self->pyb, freq);
}
// this function is based on STM code