Blame view

RIOT/tests/driver_mma8652/Makefile 831 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_mma8652
  include ../Makefile.tests_common
  
  FEATURES_REQUIRED = periph_i2c
  
  USEMODULE += mma8652
  USEMODULE += xtimer
  
  # set default device parameters in case they are undefined
  TEST_MMA8652_I2C           ?= I2C_0
  TEST_MMA8652_ADDR          ?= 0x1D
  TEST_MMA8652_USER_OFFSET_X ?= 0
  TEST_MMA8652_USER_OFFSET_Y ?= 0
  TEST_MMA8652_USER_OFFSET_Z ?= 0
  TEST_MMA8x5x_TYPE          ?= MMA8x5x_TYPE_MMA8652
  
  # export parameters
  CFLAGS += -DTEST_MMA8652_I2C=$(TEST_MMA8652_I2C)
  CFLAGS += -DTEST_MMA8652_ADDR=$(TEST_MMA8652_ADDR)
  CFLAGS += -DTEST_MMA8652_USER_OFFSET_X=$(TEST_MMA8652_USER_OFFSET_X)
  CFLAGS += -DTEST_MMA8652_USER_OFFSET_Y=$(TEST_MMA8652_USER_OFFSET_Y)
  CFLAGS += -DTEST_MMA8652_USER_OFFSET_Z=$(TEST_MMA8652_USER_OFFSET_Z)
  CFLAGS += -DTEST_MMA8x5x_TYPE=$(TEST_MMA8x5x_TYPE)
  
  include $(RIOTBASE)/Makefile.include