From 664c1b6c157cb6f8dc87ea0c7931589306fc10eb Mon Sep 17 00:00:00 2001
From: Daniel Friesel <daniel.friesel@uos.de>
Date: Fri, 20 Dec 2019 10:22:32 +0100
Subject: [PATCH] Makefile: Add nrf24l01 pins for arduino

---
 Makefile | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 17952bb..f3dea51 100644
--- a/Makefile
+++ b/Makefile
@@ -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}
-- 
GitLab