aboutsummaryrefslogtreecommitdiffstats
path: root/testex/STM32/STM32L4xx
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2017-01-02 16:54:54 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2017-01-02 16:54:54 +0000
commitb01bc6e905fdf532050118ca4639a2ff6f1c6299 (patch)
treeec327d256c731abd1865a0875242f3c8095278ab /testex/STM32/STM32L4xx
parent7aa44fe530c4492f07d37844870960f08213e89b (diff)
downloadChibiOS-b01bc6e905fdf532050118ca4639a2ff6f1c6299.tar.gz
ChibiOS-b01bc6e905fdf532050118ca4639a2ff6f1c6299.tar.bz2
ChibiOS-b01bc6e905fdf532050118ca4639a2ff6f1c6299.zip
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
Diffstat (limited to 'testex/STM32/STM32L4xx')
-rw-r--r--testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c4
-rw-r--r--testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c b/testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c
index fa767e48a..27584f965 100644
--- a/testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c
+++ b/testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c
@@ -183,9 +183,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.
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.