2017-01-17 18:02:44 +01:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
2017-06-20 10:11:27 +02:00
|
|
|
USEMODULE += adc081c
|
2017-01-17 18:02:44 +01:00
|
|
|
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
|