From 5a205b62af5c3de026fc7341eb91c7c64e79d2d2 Mon Sep 17 00:00:00 2001 From: Torben Petersen <petersen@ibr.cs.tu-bs.de> Date: Mon, 28 Jan 2019 15:33:15 +0100 Subject: [PATCH] Enables I2C only for specific Boards and changes RIOTBASE --- software/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/software/Makefile b/software/Makefile index c464db0..4d250b3 100644 --- a/software/Makefile +++ b/software/Makefile @@ -1,6 +1,8 @@ APPLICATION=software -BOARD ?= inga_blue -RIOTBASE ?= $(CURDIR)/../../RIOT/ +#BOARD ?= inga_blue +RIOTBASE ?= ../../../RIOT/PinChangeInterruptBranch/RIOT + +BOARD_USES_I2C := inga_red inga_blue / USEMODULE += shell USEMODULE += shell_commands @@ -11,7 +13,9 @@ USEMODULE += gnrc_netdev_default USEMODULE += auto_init_gnrc_netif #USEMODULE += gnrc_txtsnd #USEMODULE += gnrc_pktdump -USEMODULE += periph_i2c +ifneq (,$(filter $(BOARD),$(BOARD_USES_I2C))) + USEMODULE += periph_i2c +endif NODE_ID ?= 0 CFLAGS += -DNODE_ID=$(NODE_ID) @@ -19,9 +23,10 @@ CFLAGS += -DDEBUG_ASSERT_VERBOSE CFLAGS += -DGNRC_PKTBUF_SIZE=512 CFLAGS += -DSHELL_NO_ECHO -DSHELL_NO_PROMPT -BAUD := 9600 -CFLAGS += -DUART_STDIO_BAUDRATE=9600 + + + DEVELHELP ?= 1 # No debug information -- GitLab