From 5b3432547e35597f12ca8cb351aa17484e62ad6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Th=C3=A9baudeau?= Date: Sun, 29 May 2016 23:37:34 +0200 Subject: [PATCH] cfs-coffee: examples: Add support for CC2538 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Benoît Thébaudeau --- examples/cfs-coffee/Makefile | 1 + examples/cfs-coffee/README.md | 3 ++ examples/cfs-coffee/project-conf.h | 40 +++++++++++++++++++ .../18-compile-arm-ports/Makefile | 3 ++ 4 files changed, 47 insertions(+) create mode 100644 examples/cfs-coffee/project-conf.h diff --git a/examples/cfs-coffee/Makefile b/examples/cfs-coffee/Makefile index 543cb8c3d..0e1fe1b13 100644 --- a/examples/cfs-coffee/Makefile +++ b/examples/cfs-coffee/Makefile @@ -1,3 +1,4 @@ +DEFINES+=PROJECT_CONF_H=\"project-conf.h\" CONTIKI = ../.. all: test-cfs test-coffee example-coffee diff --git a/examples/cfs-coffee/README.md b/examples/cfs-coffee/README.md index 672376ef8..991e9583b 100644 --- a/examples/cfs-coffee/README.md +++ b/examples/cfs-coffee/README.md @@ -20,6 +20,9 @@ Supported Hardware (tested or known to work) * z1 * wismote * avr-raven +* cc2538dk +* openmote-cc2538 +* zoul The examples are known to build for the 'avr-raven' platform. However, some of them currently fail at runtime due to file system overflow. diff --git a/examples/cfs-coffee/project-conf.h b/examples/cfs-coffee/project-conf.h new file mode 100644 index 000000000..4dd98edcb --- /dev/null +++ b/examples/cfs-coffee/project-conf.h @@ -0,0 +1,40 @@ +/* + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/*---------------------------------------------------------------------------*/ +#ifndef PROJECT_CONF_H_ +#define PROJECT_CONF_H_ +/*---------------------------------------------------------------------------*/ +#if CONTIKI_TARGET_CC2538DK || CONTIKI_TARGET_OPENMOTE_CC2538 || \ + CONTIKI_TARGET_ZOUL +#define COFFEE_CONF_SIZE (CC2538_DEV_FLASH_SIZE / 2) +#define COFFEE_CONF_MICRO_LOGS 1 +#define COFFEE_CONF_APPEND_ONLY 0 +#endif /* CONTIKI_TARGET_CC2538DK || CONTIKI_TARGET_ZOUL */ + +#endif /* PROJECT_CONF_H_ */ +/*---------------------------------------------------------------------------*/ diff --git a/regression-tests/18-compile-arm-ports/Makefile b/regression-tests/18-compile-arm-ports/Makefile index 4222eb7f6..225c4fd8d 100644 --- a/regression-tests/18-compile-arm-ports/Makefile +++ b/regression-tests/18-compile-arm-ports/Makefile @@ -45,6 +45,9 @@ stm32nucleo-spirit1/sensor-demo/stm32nucleo-spirit1 \ ipv6/multicast/stm32nucleo-spirit1 \ udp-ipv6/stm32nucleo-spirit1 \ hello-world/stm32nucleo-spirit1 \ +cfs-coffee/cc2538dk \ +cfs-coffee/openmote-cc2538 \ +cfs-coffee/zoul TOOLS=