diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-20 10:22:32 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-20 10:22:32 +0100 |
commit | 664c1b6c157cb6f8dc87ea0c7931589306fc10eb (patch) | |
tree | 1798634a4477c93757f0272026c6950a57e0f0a5 | |
parent | 70a8e26e28703a71d4e84e5816fecc2b18310908 (diff) |
Makefile: Add nrf24l01 pins for arduino
-rw-r--r-- | Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -86,15 +86,25 @@ endif ifneq ($(findstring nrf24l01,${drivers}), ) CXX_TARGETS += src/driver/nrf24l01.cc ifeq (${arch}, msp430fr5994lp) - nrf24l01_cs_pin ?= p1_3 - nrf24l01_en_pin ?= p6_2 - nrf24l01_irq_pin ?= p8_3 + nrf24l01_cs_pin ?= p1_3 + nrf24l01_en_pin ?= p6_2 + nrf24l01_irq_pin ?= p8_3 endif ifeq (${arch}, msp430fr5969lp) nrf24l01_en_pin ?= p4_3 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} |