From 0dbe2001333b8f6a01e3082ce16e7326db801991 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 21 Jun 2019 11:09:42 +0200 Subject: add basic nRF24 driver --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 179c493..5740eec 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,17 @@ ifneq ($(findstring mmsimple,${drivers}), ) COMMON_FLAGS += -DDRIVER_MMSIMPLE endif +ifneq ($(findstring nrf24l01,${drivers}), ) + CXX_TARGETS += src/driver/nrf24l01.cc + nrf24l01_en_pin ?= p4_3 + nrf24l01_cs_pin ?= p2_4 + nrf24l01_irq_pin ?= p1_5 + COMMON_FLAGS += -DDRIVER_NRF24L01 + COMMON_FLAGS += -DNRF24L01_EN_PIN=GPIO::${nrf24l01_en_pin} + COMMON_FLAGS += -DNRF24L01_CS_PIN=GPIO::${nrf24l01_cs_pin} + COMMON_FLAGS += -DNRF24L01_IRQ_PIN=GPIO::${nrf24l01_irq_pin} +endif + ifneq ($(findstring sharp96,${drivers}), ) CXX_TARGETS += src/driver/sharp96.cc sharp96_power_pin ?= p1_2 -- cgit v1.2.3