diff options
Diffstat (limited to 'testhal/STM32/STM32F4xx/I2C-LIS3MLD')
3 files changed, 11 insertions, 11 deletions
diff --git a/testhal/STM32/STM32F4xx/I2C-LIS3MLD/Makefile b/testhal/STM32/STM32F4xx/I2C-LIS3MLD/Makefile index 7a8776579..227b708bd 100644 --- a/testhal/STM32/STM32F4xx/I2C-LIS3MLD/Makefile +++ b/testhal/STM32/STM32F4xx/I2C-LIS3MLD/Makefile @@ -201,8 +201,8 @@ CPPWARN = -Wall -Wextra -Wundef # List all user C define here, like -D_DEBUG=1
UDEFS = -DCHPRINTF_USE_FLOAT=1 -DSHELL_CMD_TEST_ENABLED=0 \
- -DLIS3MDL_USE_ADVANCED=0
-
+ -DLIS3MDL_USE_ADVANCED=0 -DLIS3MDL_SHARED_I2C=0
+
# Define ASM defines here
UADEFS =
diff --git a/testhal/STM32/STM32F4xx/I2C-LIS3MLD/debug/STM32F4xx-I2C-LIS3MDL (OpenOCD, Flash and Run).launch b/testhal/STM32/STM32F4xx/I2C-LIS3MLD/debug/STM32F4xx-I2C-LIS3MDL (OpenOCD, Flash and Run).launch index 48d2c9465..b82cd6efd 100644 --- a/testhal/STM32/STM32F4xx/I2C-LIS3MLD/debug/STM32F4xx-I2C-LIS3MDL (OpenOCD, Flash and Run).launch +++ b/testhal/STM32/STM32F4xx/I2C-LIS3MLD/debug/STM32F4xx-I2C-LIS3MDL (OpenOCD, Flash and Run).launch @@ -33,7 +33,7 @@ <intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
-<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList><content id="sr-i2c_lld_serve_error_interrupt-(format)" val="2"/><content id="null-read_raw-(format)" val="1"/><content id="SR2-i2c-null-main-(format)" val="2"/><content id="i2c-null-main-(format)" val="0"/></contentList>"/>
+<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList><content id="SR2-i2c-null-main-(format)" val="2"/><content id="null-read_raw-(format)" val="1"/><content id="sr-i2c_lld_serve_error_interrupt-(format)" val="2"/><content id="i2c-null-main-(format)" val="0"/></contentList>"/>
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <globalVariableList/> "/>
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList/> "/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="./build/ch.elf"/>
diff --git a/testhal/STM32/STM32F4xx/I2C-LIS3MLD/main.c b/testhal/STM32/STM32F4xx/I2C-LIS3MLD/main.c index a1c148c88..a4a86a226 100644 --- a/testhal/STM32/STM32F4xx/I2C-LIS3MLD/main.c +++ b/testhal/STM32/STM32F4xx/I2C-LIS3MLD/main.c @@ -44,18 +44,18 @@ static const I2CConfig i2ccfg = { static LIS3MDLConfig LIS3MDLcfg = {
&I2CD1, /* Pointer to I2C Driver.*/
&i2ccfg, /* Pointer to I2C Configuration.*/
- {0, 0, 0}, /* Use default sensitivity.*/
- {0, 0, 0}, /* Use default bias.*/
+ NULL, /* Use default sensitivity.*/
+ NULL, /* Use default bias.*/
LIS3MDL_SAD_VCC, /* Slave address.*/
LIS3MDL_FS_4GA, /* Full scale value.*/
LIS3MDL_ODR_40HZ, /* Output data rate.*/
#if LIS3MDL_USE_ADVANCED || defined(__DOXYGEN__)
- LIS3MDL_LP_T,
- LIS3MDL_MD_T,
- LIS3MDL_OMXY_T,
- LIS3MDL_OMZ_T,
- LIS3MDL_BDU_T,
- LIS3MDL_END_T
+ LIS3MDL_LP_ENABLED,
+ LIS3MDL_MD_CONTINUOUS,
+ LIS3MDL_OMXY_LOW_POWER,
+ LIS3MDL_OMZ_LOW_POWER,
+ LIS3MDL_BDU_CONTINUOUS,
+ LIS3MDL_END_LITTLE
#endif
};
|