aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/I2C-LSM6DS0
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx/I2C-LSM6DS0')
-rw-r--r--testhal/STM32/STM32F4xx/I2C-LSM6DS0/.project2
-rw-r--r--testhal/STM32/STM32F4xx/I2C-LSM6DS0/main.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/testhal/STM32/STM32F4xx/I2C-LSM6DS0/.project b/testhal/STM32/STM32F4xx/I2C-LSM6DS0/.project
index 3c6fa14b7..9479b6d5d 100644
--- a/testhal/STM32/STM32F4xx/I2C-LSM6DS0/.project
+++ b/testhal/STM32/STM32F4xx/I2C-LSM6DS0/.project
@@ -27,7 +27,7 @@
<link>
<name>board</name>
<type>2</type>
- <locationURI>CHIBIOS/os/hal/boards/ST_STM32F401C_DISCOVERY</locationURI>
+ <locationURI>CHIBIOS/os/hal/boards/ST_NUCLEO64_F401RE</locationURI>
</link>
<link>
<name>os</name>
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.