Blame view

RIOT/tests/driver_lis3mdl/Makefile 608 Bytes
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  APPLICATION = driver_lis3mdl
  include ../Makefile.tests_common
  
  # only this board is known (yet) to provide the sensor LIS3MDL
  BOARD_WHITELIST = limifrog-v1
  
  FEATURES_REQUIRED = periph_i2c periph_gpio
  
  USEMODULE += lis3mdl
  USEMODULE += xtimer
  
  ifneq (,$(TEST_LIS3MDL_I2C))
  	CFLAGS += -DTEST_LIS3MDL_I2C=$(TEST_LIS3MDL_I2C)
  else
  	# set random default
  	CFLAGS += -DTEST_LIS3MDL_I2C=I2C_1
  endif
  ifneq (,$(TEST_LIS3MDL_MAG_ADDR))
  	CFLAGS += -DTEST_LIS3MDL_MAG_ADDR=$(TEST_LIS3MDL_MAG_ADDR)
  else
  	# set random default 7 bit address
  	CFLAGS += -DTEST_LIS3MDL_MAG_ADDR=28
  endif
  
  include $(RIOTBASE)/Makefile.include