diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-09-25 18:11:41 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-09-25 18:11:41 +0000 |
commit | 8cb143da5ab53a7268d83109efbf235003e2c1fc (patch) | |
tree | e80582d36c73fca4023d8e7f38611bacdcaca84a /testhal/STM32/STM32F4xx/I2C-LSM6DS0/main.c | |
parent | 43aa123e65ac76ee1abe0e63a459610c1f687664 (diff) | |
download | ChibiOS-8cb143da5ab53a7268d83109efbf235003e2c1fc.tar.gz ChibiOS-8cb143da5ab53a7268d83109efbf235003e2c1fc.tar.bz2 ChibiOS-8cb143da5ab53a7268d83109efbf235003e2c1fc.zip |
Fixes in EX demos
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9796 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx/I2C-LSM6DS0/main.c')
-rw-r--r-- | testhal/STM32/STM32F4xx/I2C-LSM6DS0/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F4xx/I2C-LSM6DS0/main.c b/testhal/STM32/STM32F4xx/I2C-LSM6DS0/main.c index 196e2d8d7..5cbdd16c1 100644 --- a/testhal/STM32/STM32F4xx/I2C-LSM6DS0/main.c +++ b/testhal/STM32/STM32F4xx/I2C-LSM6DS0/main.c @@ -299,8 +299,10 @@ int main(void) { halInit();
chSysInit();
- palSetLineMode(LINE_ARD_D14, PAL_MODE_ALTERNATE(4));
- palSetLineMode(LINE_ARD_D15, PAL_MODE_ALTERNATE(4));
+ 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.
|