Browse Source

drivers: use I2C_DEV(x) instead of deprecated I2C_x

pr/spi.typo
Hauke Petersen 6 years ago
parent
commit
5d31ca5d4b
  1. 2
      tests/driver_bmp180/Makefile
  2. 2
      tests/driver_hdc1000/Makefile
  3. 2
      tests/driver_hih6130/Makefile
  4. 2
      tests/driver_ina220/Makefile
  5. 2
      tests/driver_isl29020/Makefile
  6. 2
      tests/driver_isl29125/Makefile
  7. 2
      tests/driver_l3g4200d/Makefile
  8. 2
      tests/driver_lis3mdl/Makefile
  9. 2
      tests/driver_lps331ap/Makefile
  10. 2
      tests/driver_lsm303dlhc/Makefile
  11. 2
      tests/driver_mag3110/Makefile
  12. 2
      tests/driver_mma8652/Makefile
  13. 2
      tests/driver_mpl3115a2/Makefile
  14. 2
      tests/driver_mpu9150/Makefile
  15. 2
      tests/driver_srf02/Makefile
  16. 2
      tests/driver_srf08/Makefile
  17. 2
      tests/driver_tcs37727/Makefile
  18. 2
      tests/driver_tmp006/Makefile

2
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

2
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

2
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

2
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

2
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

2
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

2
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\)

2
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)

2
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

2
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\)

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

Loading…
Cancel
Save