summaryrefslogtreecommitdiff
path: root/stmhal/accel.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-11-22 17:40:50 +1100
committerDamien George <damien.p.george@gmail.com>2016-11-22 17:40:50 +1100
commita3320e781142ef5d4f5252e05479280e66ce3ffd (patch)
tree42821b2632703ed5bab2875fc69dd8e226cb7668 /stmhal/accel.c
parent2eff9c29a11a9549121c63a702315cfe6c4a711f (diff)
stmhal/i2c: Remove use of legacy I2C_NOSTRETCH_DISABLED option.
In the new HAL this is renamed to I2C_NOSTRETCH_DISABLE.
Diffstat (limited to 'stmhal/accel.c')
-rw-r--r--stmhal/accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/accel.c b/stmhal/accel.c
index 827aa46e7..ec517fe43 100644
--- a/stmhal/accel.c
+++ b/stmhal/accel.c
@@ -69,7 +69,7 @@ STATIC void accel_start(void) {
I2CHandle1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLED;
I2CHandle1.Init.DutyCycle = I2C_DUTYCYCLE_16_9;
I2CHandle1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLED;
- I2CHandle1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLED;
+ I2CHandle1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
I2CHandle1.Init.OwnAddress1 = PYB_I2C_MASTER_ADDRESS;
I2CHandle1.Init.OwnAddress2 = 0xfe; // unused
i2c_init(&I2CHandle1);