diff --git a/tests/driver_bmp180/Makefile b/tests/driver_bmp180/Makefile index 83d9407271..7e2ebda218 100644 --- a/tests/driver_bmp180/Makefile +++ b/tests/driver_bmp180/Makefile @@ -6,7 +6,7 @@ USEMODULE += xtimer USEMODULE += printf_float # set default device parameters in case they are undefined -TEST_I2C ?= I2C_0 +TEST_I2C ?= I2C_DEV\(0\) TEST_MEASURE_OVERSAMPLING ?= BMP180_ULTRALOWPOWER TEST_ALTITUDE ?= 158 # altitude in Polytechnique School campus diff --git a/tests/driver_hdc1000/Makefile b/tests/driver_hdc1000/Makefile index bf93ccac12..af5a5a1956 100644 --- a/tests/driver_hdc1000/Makefile +++ b/tests/driver_hdc1000/Makefile @@ -7,7 +7,7 @@ USEMODULE += hdc1000 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_HDC1000_I2C ?= I2C_0 +TEST_HDC1000_I2C ?= I2C_DEV\(0\) TEST_HDC1000_ADDR ?= 0x43 # export parameters diff --git a/tests/driver_hih6130/Makefile b/tests/driver_hih6130/Makefile index f621c043bb..8a41d4e519 100644 --- a/tests/driver_hih6130/Makefile +++ b/tests/driver_hih6130/Makefile @@ -7,7 +7,7 @@ USEMODULE += hih6130 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_HIH6130_I2C ?= I2C_0 +TEST_HIH6130_I2C ?= I2C_DEV\(0\) TEST_HIH6130_ADDR ?= 0x27 # export parameters diff --git a/tests/driver_ina220/Makefile b/tests/driver_ina220/Makefile index 35e2c7c244..d64b2c42ee 100644 --- a/tests/driver_ina220/Makefile +++ b/tests/driver_ina220/Makefile @@ -7,7 +7,7 @@ USEMODULE += ina220 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_INA220_I2C ?= I2C_0 +TEST_INA220_I2C ?= I2C_DEV\(0\) TEST_INA220_ADDR ?= 0x40 # export parameters diff --git a/tests/driver_isl29020/Makefile b/tests/driver_isl29020/Makefile index 51e0dd2078..51df24cd66 100644 --- a/tests/driver_isl29020/Makefile +++ b/tests/driver_isl29020/Makefile @@ -7,7 +7,7 @@ USEMODULE += isl29020 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_ISL29020_I2C ?= I2C_0 +TEST_ISL29020_I2C ?= I2C_DEV\(0\) TEST_ISL29020_ADDR ?= 68 # export parameters diff --git a/tests/driver_isl29125/Makefile b/tests/driver_isl29125/Makefile index 56f3c16956..07923fb5eb 100644 --- a/tests/driver_isl29125/Makefile +++ b/tests/driver_isl29125/Makefile @@ -7,7 +7,7 @@ USEMODULE += isl29125 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_ISL29125_I2C ?= I2C_0 +TEST_ISL29125_I2C ?= I2C_DEV\(0\) TEST_ISL29125_IRQ_PIN ?= GPIO_PIN\(0,0\) # export parameters diff --git a/tests/driver_l3g4200d/Makefile b/tests/driver_l3g4200d/Makefile index c329a51788..45747ad668 100644 --- a/tests/driver_l3g4200d/Makefile +++ b/tests/driver_l3g4200d/Makefile @@ -7,7 +7,7 @@ USEMODULE += l3g4200d USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_L3G4200D_I2C ?= I2C_0 +TEST_L3G4200D_I2C ?= I2C_DEV\(0\) TEST_L3G4200D_ADDR ?= 104 TEST_L3G4200D_INT ?= GPIO_PIN\(0,0\) TEST_L3G4200D_DRDY ?= GPIO_PIN\(0,1\) diff --git a/tests/driver_lis3mdl/Makefile b/tests/driver_lis3mdl/Makefile index e06d6d3781..99f9540c61 100644 --- a/tests/driver_lis3mdl/Makefile +++ b/tests/driver_lis3mdl/Makefile @@ -13,7 +13,7 @@ ifneq (,$(TEST_LIS3MDL_I2C)) CFLAGS += -DTEST_LIS3MDL_I2C=$(TEST_LIS3MDL_I2C) else # set random default - CFLAGS += -DTEST_LIS3MDL_I2C=I2C_1 + CFLAGS += -DTEST_LIS3MDL_I2C=I2C_DEV\(1\) endif ifneq (,$(TEST_LIS3MDL_MAG_ADDR)) CFLAGS += -DTEST_LIS3MDL_MAG_ADDR=$(TEST_LIS3MDL_MAG_ADDR) diff --git a/tests/driver_lps331ap/Makefile b/tests/driver_lps331ap/Makefile index df505e70d7..9fe41e5b7d 100644 --- a/tests/driver_lps331ap/Makefile +++ b/tests/driver_lps331ap/Makefile @@ -7,7 +7,7 @@ USEMODULE += lps331ap USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_LPS331AP_I2C ?= I2C_0 +TEST_LPS331AP_I2C ?= I2C_DEV\(0\) TEST_LPS331AP_ADDR ?= 92 # export parameters diff --git a/tests/driver_lsm303dlhc/Makefile b/tests/driver_lsm303dlhc/Makefile index ac128264b5..eaa0b0394b 100644 --- a/tests/driver_lsm303dlhc/Makefile +++ b/tests/driver_lsm303dlhc/Makefile @@ -13,7 +13,7 @@ ifneq (,$(filter iotlab-m3,$(BOARD))) endif # set default device parameters in case they are undefined -TEST_LSM303DLHC_I2C ?= I2C_0 +TEST_LSM303DLHC_I2C ?= I2C_DEV\(0\) TEST_LSM303DLHC_ACC_ADDR ?= 25 TEST_LSM303DLHC_MAG_ADDR ?= 30 TEST_LSM303DLHC_ACC_PIN ?= GPIO_PIN\(0,0\) diff --git a/tests/driver_mag3110/Makefile b/tests/driver_mag3110/Makefile index 9628d6df74..8c1fe5502d 100644 --- a/tests/driver_mag3110/Makefile +++ b/tests/driver_mag3110/Makefile @@ -7,7 +7,7 @@ USEMODULE += mag3110 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_MAG3110_I2C ?= I2C_0 +TEST_MAG3110_I2C ?= I2C_DEV\(0\) TEST_MAG3110_ADDR ?= 0x0E TEST_MAG3110_USER_OFFSET_X ?= -2000 TEST_MAG3110_USER_OFFSET_Y ?= 180 diff --git a/tests/driver_mma8652/Makefile b/tests/driver_mma8652/Makefile index fbb694c26a..c689e89ba5 100644 --- a/tests/driver_mma8652/Makefile +++ b/tests/driver_mma8652/Makefile @@ -7,7 +7,7 @@ USEMODULE += mma8652 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_MMA8652_I2C ?= I2C_0 +TEST_MMA8652_I2C ?= I2C_DEV\(0\) TEST_MMA8652_ADDR ?= 0x1D TEST_MMA8652_USER_OFFSET_X ?= 0 TEST_MMA8652_USER_OFFSET_Y ?= 0 diff --git a/tests/driver_mpl3115a2/Makefile b/tests/driver_mpl3115a2/Makefile index eba9d48c51..d38a92e71c 100644 --- a/tests/driver_mpl3115a2/Makefile +++ b/tests/driver_mpl3115a2/Makefile @@ -7,7 +7,7 @@ USEMODULE += mpl3115a2 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_MPL3115A2_I2C ?= I2C_0 +TEST_MPL3115A2_I2C ?= I2C_DEV\(0\) TEST_MPL3115A2_ADDR ?= 0x60 # export parameters diff --git a/tests/driver_mpu9150/Makefile b/tests/driver_mpu9150/Makefile index 7ccdadcc45..083cb43e1e 100644 --- a/tests/driver_mpu9150/Makefile +++ b/tests/driver_mpu9150/Makefile @@ -14,7 +14,7 @@ ifneq (,$(filter msbiot,$(BOARD))) endif # set default device parameters in case they are undefined -TEST_I2C ?= I2C_0 +TEST_I2C ?= I2C_DEV\(0\) TEST_HW_ADDR ?= MPU9150_HW_ADDR_HEX_68 TEST_COMP_ADDR ?= MPU9150_COMP_ADDR_HEX_0C diff --git a/tests/driver_srf02/Makefile b/tests/driver_srf02/Makefile index 54fdfd4f5d..4d06442eaf 100644 --- a/tests/driver_srf02/Makefile +++ b/tests/driver_srf02/Makefile @@ -8,7 +8,7 @@ USEMODULE += srf02 USEMODULE += shell # set default device parameters in case they are undefined -TEST_SRF02_I2C ?= I2C_0 +TEST_SRF02_I2C ?= I2C_DEV\(0\) TEST_MODE ?= SRF02_MODE_REAL_CM # export parameters diff --git a/tests/driver_srf08/Makefile b/tests/driver_srf08/Makefile index ef31a5c945..0ea55b0403 100644 --- a/tests/driver_srf08/Makefile +++ b/tests/driver_srf08/Makefile @@ -7,7 +7,7 @@ USEMODULE += xtimer USEMODULE += srf08 # set default device parameters in case they are undefined -export TEST_SRF08_I2C ?= I2C_0 +export TEST_SRF08_I2C ?= I2C_DEV\(0\) export TEST_SRF08_SPEED ?= I2C_SPEED_NORMAL export TEST_MODE ?= SRF08_MODE_CM export TEST_NUM_ECHOS ?= 3 diff --git a/tests/driver_tcs37727/Makefile b/tests/driver_tcs37727/Makefile index f5254514aa..fa0941d78a 100644 --- a/tests/driver_tcs37727/Makefile +++ b/tests/driver_tcs37727/Makefile @@ -7,7 +7,7 @@ USEMODULE += tcs37727 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_TCS37727_I2C ?= I2C_0 +TEST_TCS37727_I2C ?= I2C_DEV\(0\) TEST_TCS37727_ADDR ?= 0x29 # export parameters diff --git a/tests/driver_tmp006/Makefile b/tests/driver_tmp006/Makefile index 9f191c7cad..77e7ae49dd 100644 --- a/tests/driver_tmp006/Makefile +++ b/tests/driver_tmp006/Makefile @@ -7,7 +7,7 @@ USEMODULE += tmp006 USEMODULE += xtimer # set default device parameters in case they are undefined -TEST_TMP006_I2C ?= I2C_0 +TEST_TMP006_I2C ?= I2C_DEV\(0\) TEST_TMP006_ADDR ?= 0x41 TEST_TMP006_CONFIG_CR ?= TMP006_CONFIG_CR_DEF