aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32F1xx/I2C/i2c_pns.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testhal/STM32F1xx/I2C/i2c_pns.c b/testhal/STM32F1xx/I2C/i2c_pns.c
index 96ac9a0bd..a64dab546 100644
--- a/testhal/STM32F1xx/I2C/i2c_pns.c
+++ b/testhal/STM32F1xx/I2C/i2c_pns.c
@@ -28,8 +28,8 @@
/* I2C1 */
static const I2CConfig i2cfg1 = {
OPMODE_I2C,
- 360000,
- FAST_DUTY_CYCLE_16_9,
+ 400000,
+ FAST_DUTY_CYCLE_2,
};
@@ -43,9 +43,9 @@ void I2CInit_pns(void){
palSetPadMode(IOPORT2, 6, PAL_MODE_STM32_ALTERNATE_OPENDRAIN);
palSetPadMode(IOPORT2, 7, PAL_MODE_STM32_ALTERNATE_OPENDRAIN);
- /* startups. Pauses added just to be safe */
- chThdSleepMilliseconds(100);
- init_lis3();
+ chThdSleepMilliseconds(100); /* Just to be safe. */
+
+ init_lis3(); /* accelerometer init */
}