From b72110fe8a2348911fe13bf2110c8740aba49f2f Mon Sep 17 00:00:00 2001 From: Pere Tuset Date: Thu, 29 Dec 2016 12:10:21 +0100 Subject: [PATCH] Add support for the OpenMote-CC2538 Rev.A1 board that uses the CC2538SF23 (256 KB) chip instead of the CC2538SF53 (512 KB) chip. --- platform/openmote-cc2538/Makefile.openmote-cc2538 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/openmote-cc2538/Makefile.openmote-cc2538 b/platform/openmote-cc2538/Makefile.openmote-cc2538 index 156599494..ef891fe3c 100644 --- a/platform/openmote-cc2538/Makefile.openmote-cc2538 +++ b/platform/openmote-cc2538/Makefile.openmote-cc2538 @@ -1,5 +1,10 @@ # openmote-cc2538 platform makefile +### Allow the OpenMote-CC2538 platform to support different CC2538 chip revisions +ifeq ($(findstring REV_A1,$(BOARD_REVISION)),REV_A1) + CFLAGS+=-DCC2538_DEV_CONF=CC2538_DEV_CC2538SF23 +endif + ifndef CONTIKI $(error CONTIKI not defined! You must specify where CONTIKI resides!) endif