From b01bc6e905fdf532050118ca4639a2ff6f1c6299 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Mon, 2 Jan 2017 16:54:54 +0000 Subject: Fixed misconfiguration of I2C PINs in ChibiOS/EX demos. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10011 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testex/STM32/STM32F4xx/I2C-LSM6DS0') diff --git a/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c b/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c index ef3510782..8c010c36d 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c +++ b/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c @@ -295,9 +295,9 @@ int main(void) { chSysInit(); palSetLineMode(LINE_ARD_D15, PAL_MODE_ALTERNATE(4) | - PAL_STM32_OSPEED_HIGHEST); + PAL_STM32_OSPEED_HIGHEST | PAL_STM32_OTYPE_OPENDRAIN); palSetLineMode(LINE_ARD_D14, PAL_MODE_ALTERNATE(4) | - PAL_STM32_OSPEED_HIGHEST); + PAL_STM32_OSPEED_HIGHEST | PAL_STM32_OTYPE_OPENDRAIN); /* * Activates the serial driver 2 using the driver default configuration. -- cgit v1.2.3