2023-03-30 16:12:49 +02:00
|
|
|
include ../Makefile.drivers_common
|
2016-06-24 17:16:29 +02:00
|
|
|
|
2021-12-10 14:02:07 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2021-01-04 16:55:16 +01:00
|
|
|
|
|
|
|
# select if you want to build the SPI or the I2C version of the driver:
|
|
|
|
USEMODULE += pn532_i2c
|
|
|
|
#USEMODULE += pn532_spi
|
2016-06-24 17:16:29 +02:00
|
|
|
|
|
|
|
# set default device parameters in case they are undefined
|
|
|
|
TEST_PN532_I2C ?= I2C_DEV\(0\)
|
|
|
|
TEST_PN532_RESET ?= GPIO_PIN\(0,0\)
|
|
|
|
TEST_PN532_IRQ ?= GPIO_PIN\(0,1\)
|
|
|
|
|
2017-01-26 09:56:28 +01:00
|
|
|
# alternative SPI configuration
|
|
|
|
TEST_PN532_SPI ?= SPI_DEV\(0\)
|
|
|
|
TEST_PN532_NSS ?= GPIO_PIN\(0,2\)
|
|
|
|
|
2016-06-24 17:16:29 +02:00
|
|
|
# export parameters
|
|
|
|
CFLAGS += -DTEST_PN532_I2C=$(TEST_PN532_I2C)
|
|
|
|
CFLAGS += -DTEST_PN532_RESET=$(TEST_PN532_RESET)
|
|
|
|
CFLAGS += -DTEST_PN532_IRQ=$(TEST_PN532_IRQ)
|
2017-01-26 09:56:28 +01:00
|
|
|
CFLAGS += -DTEST_PN532_SPI=$(TEST_PN532_SPI)
|
|
|
|
CFLAGS += -DTEST_PN532_NSS=$(TEST_PN532_NSS)
|
|
|
|
|
2016-06-24 17:16:29 +02:00
|
|
|
CFLAGS += -I$(CURDIR)
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|