Blame view

RIOT/tests/driver_tsl2561/Makefile 595 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  APPLICATION = driver_tsl2561
  include ../Makefile.tests_common
  
  FEATURES_REQUIRED = periph_i2c
  
  USEMODULE += tsl2561
  USEMODULE += xtimer
  
  # set default device parameters in case they are undefined
  TEST_I2C              ?= I2C_DEV\(0\)
  TEST_ADDR             ?= TSL2561_ADDR_FLOAT
  TEST_GAIN             ?= TSL2561_GAIN_1X
  TEST_INTEGRATION_TIME ?= TSL2561_INTEGRATIONTIME_402MS
  
  # export parameters
  CFLAGS += -DTEST_I2C=$(TEST_I2C)
  CFLAGS += -DTEST_ADDR=$(TEST_ADDR)
  CFLAGS += -DTEST_GAIN=$(TEST_GAIN)
  CFLAGS += -DTEST_INTEGRATION_TIME=$(TEST_INTEGRATION_TIME)
  
  include $(RIOTBASE)/Makefile.include