include ../Makefile.tests_common

USEMODULE += ph_oem
USEMODULE += event_callback

# Example for providing settings through CFLAGS. Change them based on your setup
PH_OEM_PARAM_I2C  ?= I2C_DEV\(0\)
PH_OEM_PARAM_ADDR ?= 0x65
PH_OEM_PARAM_INTERRUPT_PIN ?= GPIO_PIN\(2,6\)

# Most likely just GPIO_IN. Else GPIO_IN_PU for PH_OEM_IRQ_FALLING and GPIO_IN_PD
# for PH_OEM_IRQ _RISING and PH_OEM_IRQ_BOTH
PH_OEM_PARAM_INTERRUPT_GPIO_MODE ?= GPIO_IN_PD

#PH_OEM_IRQ_BOTH, PH_OEM_IRQ_RISING or PH_OEM_IRQ_FALLING
PH_OEM_PARAM_INTERRUPT_OPTION ?= PH_OEM_IRQ_RISING

# export parameters. Uncomment the one you want to use
#CFLAGS += -DPH_OEM_PARAM_I2C=$(PH_OEM_PARAM_I2C)
#CFLAGS += -DPH_OEM_PARAM_ADDR=$(PH_OEM_PARAM_ADDR)
#CFLAGS += -DPH_OEM_PARAM_INTERRUPT_PIN=$(PH_OEM_PARAM_INTERRUPT_PIN)
#CFLAGS += -DPH_OEM_PARAM_INTERRUPT_GPIO_MODE=$(PH_OEM_PARAM_INTERRUPT_GPIO_MODE)
#CFLAGS += -DPH_OEM_PARAM_INTERRUPT_OPTION=$(PH_OEM_PARAM_INTERRUPT_OPTION)

include $(RIOTBASE)/Makefile.include