diff options
Diffstat (limited to 'testhal/STM32F1xx/I2C/lis3.c')
-rw-r--r-- | testhal/STM32F1xx/I2C/lis3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testhal/STM32F1xx/I2C/lis3.c b/testhal/STM32F1xx/I2C/lis3.c index 2300ea5cb..0cd42a02f 100644 --- a/testhal/STM32F1xx/I2C/lis3.c +++ b/testhal/STM32F1xx/I2C/lis3.c @@ -58,7 +58,9 @@ int init_lis3(void){ accel_tx_data[3] = 0b00000000;
/* sending */
+ i2cAcquireBus(&I2CD1);
i2cMasterTransmit(&I2CD1, &lis3, lis3_addr, accel_tx_data, 4, accel_rx_data, 0);
+ i2cReleaseBus(&I2CD1);
return 0;
}
|