Commit 664c1b6c authored by Daniel Friesel's avatar Daniel Friesel
Browse files

Makefile: Add nrf24l01 pins for arduino

parent 70a8e26e
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -95,6 +95,16 @@ ifneq ($(findstring nrf24l01,${drivers}), )
		nrf24l01_cs_pin ?= p2_4
		nrf24l01_irq_pin ?= p1_5
	endif
	ifeq (${arch}, arduino-nano)
		nrf24l01_en_pin ?= pc1
		nrf24l01_cs_pin ?= pc0
		nrf24l01_irq_pin ?= pc2
	endif
	ifeq (${arch}, arduino-nano-168)
		nrf24l01_en_pin ?= pc1
		nrf24l01_cs_pin ?= pc0
		nrf24l01_irq_pin ?= pc2
	endif
	COMMON_FLAGS += -DDRIVER_NRF24L01
	COMMON_FLAGS += -DNRF24L01_EN_PIN=GPIO::${nrf24l01_en_pin}
	COMMON_FLAGS += -DNRF24L01_CS_PIN=GPIO::${nrf24l01_cs_pin}