From 20a296bc6db3b81663da193a287d12cf1fa8e454 Mon Sep 17 00:00:00 2001 From: roccomarco Date: Sat, 23 Sep 2017 10:50:18 +0000 Subject: Aligned testex demo of BMP085 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10687 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testex/STM32/STM32F4xx/I2C-BMP085/.cproject | 55 ++++++++++++++++++++++ testex/STM32/STM32F4xx/I2C-BMP085/.project | 38 +++++++++++++++ ...F4xx-I2C-BMP085 (OpenOCD, Flash and Run).launch | 52 ++++++++++++++++++++ testex/STM32/STM32F4xx/I2C-BMP085/main.c | 2 +- 4 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 testex/STM32/STM32F4xx/I2C-BMP085/.cproject create mode 100644 testex/STM32/STM32F4xx/I2C-BMP085/.project create mode 100644 testex/STM32/STM32F4xx/I2C-BMP085/debug/STM32F4xx-I2C-BMP085 (OpenOCD, Flash and Run).launch diff --git a/testex/STM32/STM32F4xx/I2C-BMP085/.cproject b/testex/STM32/STM32F4xx/I2C-BMP085/.cproject new file mode 100644 index 000000000..cb85c29dc --- /dev/null +++ b/testex/STM32/STM32F4xx/I2C-BMP085/.cproject @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testex/STM32/STM32F4xx/I2C-BMP085/.project b/testex/STM32/STM32F4xx/I2C-BMP085/.project new file mode 100644 index 000000000..f4f4e0f19 --- /dev/null +++ b/testex/STM32/STM32F4xx/I2C-BMP085/.project @@ -0,0 +1,38 @@ + + + STM32F4xx-I2C-BMP085 + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + + board + 2 + CHIBIOS/os/hal/boards/ST_NUCLEO64_F401RE + + + os + 2 + CHIBIOS/os + + + diff --git a/testex/STM32/STM32F4xx/I2C-BMP085/debug/STM32F4xx-I2C-BMP085 (OpenOCD, Flash and Run).launch b/testex/STM32/STM32F4xx/I2C-BMP085/debug/STM32F4xx-I2C-BMP085 (OpenOCD, Flash and Run).launch new file mode 100644 index 000000000..ccfb2ee4a --- /dev/null +++ b/testex/STM32/STM32F4xx/I2C-BMP085/debug/STM32F4xx-I2C-BMP085 (OpenOCD, Flash and Run).launch @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testex/STM32/STM32F4xx/I2C-BMP085/main.c b/testex/STM32/STM32F4xx/I2C-BMP085/main.c index 59e73610b..fc9c4a8d3 100644 --- a/testex/STM32/STM32F4xx/I2C-BMP085/main.c +++ b/testex/STM32/STM32F4xx/I2C-BMP085/main.c @@ -218,7 +218,7 @@ int main(void) { halInit(); chSysInit(); - /* Configure the I2C Driver and i2C Pins. */ + /* Configure the I2C Driver and I2C Pins. */ palSetLineMode(LINE_ARD_D15, PAL_MODE_ALTERNATE(4) | PAL_STM32_OSPEED_HIGHEST | PAL_STM32_OTYPE_OPENDRAIN); palSetLineMode(LINE_ARD_D14, PAL_MODE_ALTERNATE(4) | -- cgit v1.2.3