2023-03-30 16:12:49 +02:00
|
|
|
include ../Makefile.drivers_common
|
2014-09-24 09:36:51 +02:00
|
|
|
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2014-09-24 09:36:51 +02:00
|
|
|
USEMODULE += ps
|
2021-12-09 12:37:57 +01:00
|
|
|
USEMODULE += ztimer_usec
|
2014-09-24 09:36:51 +02:00
|
|
|
USEMODULE += nrf24l01p
|
|
|
|
|
2015-11-03 15:27:25 +01:00
|
|
|
# set default device parameters in case they are undefined
|
2016-11-08 18:43:39 +01:00
|
|
|
SPI_PORT ?= SPI_DEV\(0\)
|
2015-09-29 18:30:24 +02:00
|
|
|
CE_PIN ?= GPIO_PIN\(0,0\)
|
|
|
|
CS_PIN ?= GPIO_PIN\(0,1\)
|
|
|
|
IRQ_PIN ?= GPIO_PIN\(0,2\)
|
2014-09-24 09:36:51 +02:00
|
|
|
|
2015-11-03 15:27:25 +01:00
|
|
|
# export parameters
|
|
|
|
CFLAGS += -DSPI_PORT=$(SPI_PORT)
|
|
|
|
CFLAGS += -DCE_PIN=$(CE_PIN)
|
|
|
|
CFLAGS += -DCS_PIN=$(CS_PIN)
|
|
|
|
CFLAGS += -DIRQ_PIN=$(IRQ_PIN)
|
2014-09-24 09:36:51 +02:00
|
|
|
|
2015-11-03 15:27:25 +01:00
|
|
|
include $(RIOTBASE)/Makefile.include
|