diff --git a/testex/STM32/STM32F4xx/I2C-IKS01A2/main.c b/testex/STM32/STM32F4xx/I2C-IKS01A2/main.c index 1949fad94..edc09d0cc 100644 --- a/testex/STM32/STM32F4xx/I2C-IKS01A2/main.c +++ b/testex/STM32/STM32F4xx/I2C-IKS01A2/main.c @@ -65,16 +65,15 @@ static const HTS221Config hts221cfg = { static LPS22HBDriver LPS22HBD1; static const LPS22HBConfig lps22hbcfg = { - &I2CD1, - &i2ccfg, - LPS22HB_SAD_VCC, - NULL, - NULL, - NULL, - NULL, - LPS22HB_ODR_10HZ, + .i2cp = &I2CD1, + .i2ccfg = &i2ccfg, + .slaveaddress = LPS22HB_SAD_VCC, + .barosensitivity = NULL, + .barobias = NULL, + .thermosensitivity = NULL, + .thermobias = NULL, + .outputdatarate = LPS22HB_ODR_10HZ }; - /*===========================================================================*/ /* LSM303AGR related. */ /*===========================================================================*/ @@ -83,15 +82,15 @@ static const LPS22HBConfig lps22hbcfg = { static LSM303AGRDriver LSM303AGRD1; static const LSM303AGRConfig lsm303agrcfg = { - .i2cp = &I2CD1, - .i2ccfg = &i2ccfg, - .accsensitivity = NULL, - .accbias = NULL, - .accfullscale = LSM303AGR_ACC_FS_4G, - .accodr = LSM303AGR_ACC_ODR_100Hz, - .compsensitivity = NULL, - .compbias = NULL, - .compodr = LSM303AGR_COMP_ODR_50HZ, + .i2cp = &I2CD1, + .i2ccfg = &i2ccfg, + .accsensitivity = NULL, + .accbias = NULL, + .accfullscale = LSM303AGR_ACC_FS_4G, + .accodr = LSM303AGR_ACC_ODR_100Hz, + .compsensitivity = NULL, + .compbias = NULL, + .compodr = LSM303AGR_COMP_ODR_50HZ, }; /*===========================================================================*/ @@ -102,17 +101,17 @@ static const LSM303AGRConfig lsm303agrcfg = { static LSM6DSLDriver LSM6DSLD1; static const LSM6DSLConfig lsm6dslcfg = { - .i2cp = &I2CD1, - .i2ccfg = &i2ccfg, - .slaveaddress = LSM6DSL_SAD_VCC, - .accsensitivity = NULL, - .accbias = NULL, - .accfullscale = LSM6DSL_ACC_FS_2G, - .accodr = LSM6DSL_ACC_ODR_52HZ, - .gyrosensitivity = NULL, - .gyrobias = NULL, - .gyrofullscale = LSM6DSL_GYRO_FS_250DPS, - .gyroodr = LSM6DSL_GYRO_ODR_104HZ, + .i2cp = &I2CD1, + .i2ccfg = &i2ccfg, + .slaveaddress = LSM6DSL_SAD_VCC, + .accsensitivity = NULL, + .accbias = NULL, + .accfullscale = LSM6DSL_ACC_FS_2G, + .accodr = LSM6DSL_ACC_ODR_52HZ, + .gyrosensitivity = NULL, + .gyrobias = NULL, + .gyrofullscale = LSM6DSL_GYRO_FS_250DPS, + .gyroodr = LSM6DSL_GYRO_ODR_104HZ, }; /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-LPS22HB/main.c b/testex/STM32/STM32F4xx/I2C-LPS22HB/main.c index ab235bd85..1adf8bc53 100644 --- a/testex/STM32/STM32F4xx/I2C-LPS22HB/main.c +++ b/testex/STM32/STM32F4xx/I2C-LPS22HB/main.c @@ -40,17 +40,17 @@ static const I2CConfig i2ccfg = { }; static const LPS22HBConfig lps22hbcfg = { - &I2CD1, - &i2ccfg, - LPS22HB_SAD_VCC, - NULL, - NULL, - NULL, - NULL, - LPS22HB_ODR_10HZ, + .i2cp = &I2CD1, + .i2ccfg = &i2ccfg, + .slaveaddress = LPS22HB_SAD_VCC, + .barosensitivity = NULL, + .barobias = NULL, + .thermosensitivity = NULL, + .thermobias = NULL, + .outputdatarate = LPS22HB_ODR_10HZ, #if LPS22HB_USE_ADVANCED - LPS22HB_BDU_CONTINUOUS, - LPS22HB_LP_ODR_9 + .blockdataupdate = LPS22HB_BDU_CONTINUOUS, + .lowpass_filter = LPS22HB_LP_ODR_9 #endif };