Expanded travis builds with SimpleLink platform

In addition, some small grammar fixes and slight bugfix in
Makefile.simplelink
This commit is contained in:
Edvard Pettersen 2018-09-11 13:17:21 +02:00
parent 232fbd4c98
commit 86232c86f9
9 changed files with 97 additions and 13 deletions

1
.gitignore vendored
View File

@ -33,6 +33,7 @@ COOJA.testlog
*.native *.native
*.nrf52dk *.nrf52dk
*.openmote-cc2538 *.openmote-cc2538
*.simplelink
*.sky *.sky
*.firmware *.firmware
*.srf06-cc26xx *.srf06-cc26xx

View File

@ -30,7 +30,7 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
MIN_STACKSIZE = 0x800; /* 2048 bytes */ MIN_STACKSIZE = 0x600; /* 1536 bytes */
HEAPSIZE = 0x100; /* 256 bytes */ HEAPSIZE = 0x100; /* 256 bytes */
MEMORY MEMORY

View File

@ -30,7 +30,7 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
MIN_STACKSIZE = 0x800; /* 2048 bytes */ MIN_STACKSIZE = 0x600; /* 1536 bytes */
HEAPSIZE = 0x100; /* 256 bytes */ HEAPSIZE = 0x100; /* 256 bytes */
MEMORY MEMORY

View File

@ -91,7 +91,7 @@
*/ */
/* /*
* Set the inactivity timeout peroid for the RF driver. This determines how * Set the inactivity timeout period for the RF driver. This determines how
* long the RF driver will wait when inactive until turning off the RF Core. * long the RF driver will wait when inactive until turning off the RF Core.
* Specified in microseconds. * Specified in microseconds.
*/ */

View File

@ -24,7 +24,7 @@ verify_family = $(shell [ -d $(CONTIKI)/arch/platform/simplelink/$(1)/$(BOARD) ]
# Test each supported SimpleLink family and see if it contains the specified Board. # Test each supported SimpleLink family and see if it contains the specified Board.
# Throw an error if it isn't found. # Throw an error if it isn't found.
FAMILY := $(foreach FAMILY, $(SIMPLELINK_FAMILIES), $(call verify_family,$(FAMILY))) FAMILY := $(foreach FAMILY, $(SIMPLELINK_FAMILIES), $(call verify_family,$(FAMILY)))
ifeq ($(FAMILY),) ifeq ($(strip $(FAMILY)),)
$(error Board '$(BOARD)' does not corresponding to any SimpleLink family. Make sure your BOARD variable is correct.) $(error Board '$(BOARD)' does not corresponding to any SimpleLink family. Make sure your BOARD variable is correct.)
endif endif
# If multiple families are found, only the first one is chosen. If this ever # If multiple families are found, only the first one is chosen. If this ever

View File

@ -25,20 +25,22 @@ TARGET_FAMILY_DIRS += $(BOARD)
CONTIKI_TARGET_DIRS += $(FAMILY) CONTIKI_TARGET_DIRS += $(FAMILY)
CONTIKI_TARGET_DIRS += $(addprefix $(FAMILY)/, $(TARGET_FAMILY_DIRS)) CONTIKI_TARGET_DIRS += $(addprefix $(FAMILY)/, $(TARGET_FAMILY_DIRS))
DEFINES += DeviceFamily_$(DEVICE_FAMILY) BOARD_DEFINES += DeviceFamily_$(DEVICE_FAMILY)
DEFINES += DEVICE_LINE_$(DEVICE_LINE) BOARD_DEFINES += DEVICE_LINE_$(DEVICE_LINE)
DEFINES += DEVICE_$(DEVICE) BOARD_DEFINES += DEVICE_$(DEVICE)
DEFINES += $(BOARD_TYPE) BOARD_DEFINES += $(BOARD_TYPE)
DEFINES += SUPPORTS_PROP_MODE=$(SUPPORTS_PROP_MODE) BOARD_DEFINES += SUPPORTS_PROP_MODE=$(SUPPORTS_PROP_MODE)
DEFINES += SUPPORTS_IEEE_MODE=$(SUPPORTS_IEEE_MODE) BOARD_DEFINES += SUPPORTS_IEEE_MODE=$(SUPPORTS_IEEE_MODE)
DEFINES += SUPPORTS_BLE_BEACON=$(SUPPORTS_BLE_BEACON) BOARD_DEFINES += SUPPORTS_BLE_BEACON=$(SUPPORTS_BLE_BEACON)
DEFINES += SUPPORTS_HIGH_PA=$(SUPPORTS_HIGH_PA) BOARD_DEFINES += SUPPORTS_HIGH_PA=$(SUPPORTS_HIGH_PA)
# If the user-specified a Node ID, pass a define # If the user-specified a Node ID, pass a define
ifdef NODEID ifdef NODEID
DEFINES += IEEE_ADDR_NODE_ID=$(NODEID) BOARD_DEFINES += IEEE_ADDR_NODE_ID=$(NODEID)
endif endif
CFLAGS += $(addprefix -D, $(BOARD_DEFINES))
CONTIKI_TARGET_SOURCEFILES += platform.c CONTIKI_TARGET_SOURCEFILES += platform.c
CONTIKI_TARGET_SOURCEFILES += batmon-sensor.c CONTIKI_TARGET_SOURCEFILES += batmon-sensor.c
CONTIKI_TARGET_SOURCEFILES += $(BOARD_SOURCEFILES) CONTIKI_TARGET_SOURCEFILES += $(BOARD_SOURCEFILES)

View File

@ -0,0 +1,43 @@
/*
* Copyright (c) 2015-2018, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * 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.
*
* * Neither the name of Texas Instruments Incorporated 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 OWNER 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.
*/
/*---------------------------------------------------------------------------*/
#include "contiki.h"
#include "dev/gpio-hal.h"
/*---------------------------------------------------------------------------*/
#include <Board.h>
/*---------------------------------------------------------------------------*/
gpio_hal_pin_t out_pin1 = Board_PIN_LED0;
gpio_hal_pin_t out_pin2 = Board_PIN_LED1;
gpio_hal_pin_t out_pin3 = Board_PIN_LED2;
/*---------------------------------------------------------------------------*/
gpio_hal_pin_t btn_pin = Board_PIN_BTN1;
/*---------------------------------------------------------------------------*/

View File

@ -35,6 +35,40 @@ dev/leds/srf06-cc26xx:BOARD=launchpad/cc2650 \
mqtt-client/srf06-cc26xx:BOARD=srf06/cc26xx \ mqtt-client/srf06-cc26xx:BOARD=srf06/cc26xx \
mqtt-client/srf06-cc26xx:BOARD=launchpad/cc2650 \ mqtt-client/srf06-cc26xx:BOARD=launchpad/cc2650 \
mqtt-client/srf06-cc26xx:BOARD=sensortag/cc2650 \ mqtt-client/srf06-cc26xx:BOARD=sensortag/cc2650 \
hello-world/simplelink:BOARD=launchpad/cc26x2r1 \
hello-world/simplelink:BOARD=sensortag/cc2650 \
nullnet/simplelink:BOARD=sensortag/cc2650 \
rpl-border-router/simplelink:BOARD=launchpad/cc26x2r1 \
sensniff/simplelink:BOARD=launchpad/cc26x2r1 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc1310 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc1312r1 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc1350 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc1350-4 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc1352p1 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc1352p-2 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc1352p-4 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc1352r1 \
dev/gpio-hal/simplelink:BOARD=launchpad/cc26x2r1 \
dev/gpio-hal/simplelink:BOARD=sensortag/cc1350 \
dev/gpio-hal/simplelink:BOARD=sensortag/cc2650 \
dev/gpio-hal/simplelink:BOARD=srf06/cc13x0 \
dev/gpio-hal/simplelink:BOARD=srf06/cc26x0 \
dev/leds/simplelink:BOARD=launchpad/cc1310 \
dev/leds/simplelink:BOARD=launchpad/cc1312r1 \
dev/leds/simplelink:BOARD=launchpad/cc1350 \
dev/leds/simplelink:BOARD=launchpad/cc1350-4 \
dev/leds/simplelink:BOARD=launchpad/cc1352p1 \
dev/leds/simplelink:BOARD=launchpad/cc1352p-2 \
dev/leds/simplelink:BOARD=launchpad/cc1352p-4 \
dev/leds/simplelink:BOARD=launchpad/cc1352r1 \
dev/leds/simplelink:BOARD=launchpad/cc26x2r1 \
dev/leds/simplelink:BOARD=sensortag/cc1350 \
dev/leds/simplelink:BOARD=sensortag/cc2650 \
dev/leds/simplelink:BOARD=srf06/cc13x0 \
dev/leds/simplelink:BOARD=srf06/cc26x0 \
mqtt-client/simplelink:BOARD=launchpad/cc26x2r1 \
mqtt-client/simplelink:BOARD=sensortag/cc2650:DEFINES=BOARD_CONF_SENSORS_DISABLE=1,TI_SPI_CONF_ENABLE=0 \
mqtt-client/simplelink:BOARD=srf06/cc26x0:DEFINES=BOARD_CONF_SENSORS_DISABLE=1,TI_SPI_CONF_ENABLE=0 \
mqtt-client/cc2538dk \ mqtt-client/cc2538dk \
storage/cfs-coffee/cc2538dk \ storage/cfs-coffee/cc2538dk \
sensniff/cc2538dk \ sensniff/cc2538dk \

View File

@ -101,6 +101,10 @@ do
then then
# srf06-cc26xx has multiple boards # srf06-cc26xx has multiple boards
BOARDS="srf06/cc26xx srf06/cc13xx launchpad/cc2650 launchpad/cc1350 sensortag/cc2650 sensortag/cc1350" BOARDS="srf06/cc26xx srf06/cc13xx launchpad/cc2650 launchpad/cc1350 sensortag/cc2650 sensortag/cc1350"
elif [[ "$platform" == "simplelink" ]]
then
# SimpleLink has multiple boards
BOARDS="launchpad/cc1310 launchpad/cc1312r1 launchpad/cc1350 launchpad/cc1350-4 launchpad/cc1352p-2 launchpad/cc1352p-4 launchpad/cc1352p1 launchpad/cc1352r1 launchpad/cc2650 launchpad/cc26x2r1 sensortag/cc1350 sensortag/cc2650 srf06/cc13x0 srf06/cc26x0"
elif [[ "$platform" == "zoul" ]] elif [[ "$platform" == "zoul" ]]
then then
# Zoul has multiple boards # Zoul has multiple boards