aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L4xx/I2C-LSM6DS0/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32L4xx/I2C-LSM6DS0/main.c')
-rw-r--r--testhal/STM32/STM32L4xx/I2C-LSM6DS0/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testhal/STM32/STM32L4xx/I2C-LSM6DS0/main.c b/testhal/STM32/STM32L4xx/I2C-LSM6DS0/main.c
index fdf0199f4..c9469a1e2 100644
--- a/testhal/STM32/STM32L4xx/I2C-LSM6DS0/main.c
+++ b/testhal/STM32/STM32L4xx/I2C-LSM6DS0/main.c
@@ -301,8 +301,10 @@ int main(void) {
halInit();
chSysInit();
- palSetLineMode(LINE_ARD_D14, PAL_MODE_ALTERNATE(4) | PAL_STM32_OSPEED_HIGH);
- palSetLineMode(LINE_ARD_D15, PAL_MODE_ALTERNATE(4) | PAL_STM32_OSPEED_HIGH);
+ palSetLineMode(LINE_ARD_D15, PAL_MODE_ALTERNATE(4) |
+ PAL_STM32_OSPEED_HIGHEST);
+ palSetLineMode(LINE_ARD_D14, PAL_MODE_ALTERNATE(4) |
+ PAL_STM32_OSPEED_HIGHEST);
/*
* Activates the serial driver 2 using the driver default configuration.