Blame view

RIOT/tests/driver_adcxx1c/Makefile 643 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_adcxx1c
  include ../Makefile.tests_common
  
  FEATURES_REQUIRED = periph_i2c
  
  USEMODULE += adc081c
  USEMODULE += xtimer
  
  # set alert parameters in case they are undefined
  TEST_ADCXX1C_LOW_LIMIT     ?= 90
  TEST_ADCXX1C_HIGH_LIMIT    ?= 130
  TEST_ADCXX1C_HYSTERESIS    ?= 10
  TEST_ADCXX1C_CYCLE_TIME    ?= ADCXX1C_CYCLE_32
  
  # export parameters
  CFLAGS += -DADCXX1C_PARAM_LOW_LIMIT=$(TEST_ADCXX1C_LOW_LIMIT)
  CFLAGS += -DADCXX1C_PARAM_HIGH_LIMIT=$(TEST_ADCXX1C_HIGH_LIMIT)
  CFLAGS += -DADCXX1C_PARAM_HYSTERESIS=$(TEST_ADCXX1C_HYSTERESIS)
  CFLAGS += -DADCXX1C_PARAM_CYCLES=$(TEST_ADCXX1C_CYCLE_TIME)
  
  include $(RIOTBASE)/Makefile.include