diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-04-24 17:32:16 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-04-24 17:32:16 +1000 |
| commit | 0c54d0c28824dca608364e5cb64d00f607dc1209 (patch) | |
| tree | 43ae707a7477954486c9f5f53c8fa2a023e669f1 /ports/stm32/accel.c | |
| parent | b73adcc3d90da7fd2a66b76161b661a603403506 (diff) | |
stm32: Rename legacy pyb.I2C helper functions to start with pyb_i2c_.
Diffstat (limited to 'ports/stm32/accel.c')
| -rw-r--r-- | ports/stm32/accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/accel.c b/ports/stm32/accel.c index ec7672782..488391c70 100644 --- a/ports/stm32/accel.c +++ b/ports/stm32/accel.c @@ -70,7 +70,7 @@ STATIC void accel_start(void) { I2CHandle1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; I2CHandle1.Init.OwnAddress1 = PYB_I2C_MASTER_ADDRESS; I2CHandle1.Init.OwnAddress2 = 0xfe; // unused - i2c_init(&I2CHandle1); + pyb_i2c_init(&I2CHandle1); // turn off AVDD, wait 30ms, turn on AVDD, wait 30ms again mp_hal_pin_low(MICROPY_HW_MMA_AVDD_PIN); // turn off |
