diff options
Diffstat (limited to 'testex/STM32/STM32L4xx/I2C-LSM6DS0')
-rw-r--r-- | testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c b/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c index 5c2626ffe..11c00d6e3 100644 --- a/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c +++ b/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c @@ -302,9 +302,9 @@ int main(void) { chSysInit();
palSetLineMode(LINE_ARD_D15, PAL_MODE_ALTERNATE(4) |
- PAL_STM32_OSPEED_HIGH);
+ PAL_STM32_OSPEED_HIGH | PAL_STM32_OTYPE_OPENDRAIN);
palSetLineMode(LINE_ARD_D14, PAL_MODE_ALTERNATE(4) |
- PAL_STM32_OSPEED_HIGH);
+ PAL_STM32_OSPEED_HIGH | PAL_STM32_OTYPE_OPENDRAIN);
/*
* Activates the serial driver 2 using the driver default configuration.
|