Feature/port arm build check (#34)
* add GCC ARM compiler to travis pre-script and add some ARM ports to job
This commit is contained in:
+15
-1
@@ -1,5 +1,13 @@
|
|||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
dist: xenial
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get update
|
||||||
|
- sudo apt-get -y install build-essential
|
||||||
|
- sudo apt-get -y install gcc-arm-none-eabi
|
||||||
|
- sudo apt-get -y install libnewlib-arm-none-eabi
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
@@ -23,4 +31,10 @@ jobs:
|
|||||||
compiler: clang
|
compiler: clang
|
||||||
# script: scan-build --status-bugs -analyze-headers -v make -j2 clean server
|
# script: scan-build --status-bugs -analyze-headers -v make -j2 clean server
|
||||||
script: skip
|
script: skip
|
||||||
|
- stage: ports-arm
|
||||||
|
os: linux
|
||||||
|
before_script:
|
||||||
|
- arm-none-eabi-gcc --version
|
||||||
|
script:
|
||||||
|
- make stm32f10x
|
||||||
|
- make at91sam7s
|
||||||
|
|||||||
@@ -88,11 +88,11 @@ atmega168: ports/atmega168/Makefile
|
|||||||
|
|
||||||
.PHONY: at91sam7s
|
.PHONY: at91sam7s
|
||||||
at91sam7s: ports/at91sam7s/Makefile
|
at91sam7s: ports/at91sam7s/Makefile
|
||||||
$(MAKE) -s -C ports/at91sam7s clean all
|
$(MAKE) -C ports/at91sam7s clean all
|
||||||
|
|
||||||
.PHONY: stm32f10x
|
.PHONY: stm32f10x
|
||||||
stm32f10x: ports/stm32f10x/Makefile
|
stm32f10x: ports/stm32f10x/Makefile
|
||||||
$(MAKE) -s -C ports/stm32f10x clean all
|
$(MAKE) -C ports/stm32f10x clean all
|
||||||
|
|
||||||
.PHONY: mstpsnap
|
.PHONY: mstpsnap
|
||||||
mstpsnap: ports/linux/mstpsnap.mak
|
mstpsnap: ports/linux/mstpsnap.mak
|
||||||
|
|||||||
@@ -24,13 +24,10 @@ BACNET_FLAGS += -DMAX_APDU=480
|
|||||||
BACNET_FLAGS += -DCRC_USE_TABLE
|
BACNET_FLAGS += -DCRC_USE_TABLE
|
||||||
#BACNET_FLAGS += -DDLMSTP_TEST
|
#BACNET_FLAGS += -DDLMSTP_TEST
|
||||||
|
|
||||||
BACNET_CORE = ../../src
|
BACNET_SRC = ../../src
|
||||||
|
BACNET_CORE = $(BACNET_SRC)/bacnet
|
||||||
BACNET_BASIC = $(BACNET_CORE)/basic
|
BACNET_BASIC = $(BACNET_CORE)/basic
|
||||||
BACNET_INCLUDE = $(BACNET_CORE)
|
INCLUDES = -I. -I$(BACNET_SRC)
|
||||||
INCLUDES = -I.
|
|
||||||
INCLUDES += -I$(BACNET_INCLUDE)
|
|
||||||
INCLUDES += -I$(BACNET_OBJECT)
|
|
||||||
INCLUDES += -I$(BACNET_HANDLER)
|
|
||||||
#OPTIMIZATION = -O0
|
#OPTIMIZATION = -O0
|
||||||
OPTIMIZATION = -Os
|
OPTIMIZATION = -Os
|
||||||
CFLAGS = -fno-common $(INCLUDES) $(BACNET_FLAGS) -Wall -g
|
CFLAGS = -fno-common $(INCLUDES) $(BACNET_FLAGS) -Wall -g
|
||||||
@@ -100,7 +97,6 @@ CORESRC = $(BACNET_CORE)/abort.c \
|
|||||||
$(BACNET_CORE)/reject.c \
|
$(BACNET_CORE)/reject.c \
|
||||||
$(BACNET_CORE)/rp.c \
|
$(BACNET_CORE)/rp.c \
|
||||||
$(BACNET_CORE)/rpm.c \
|
$(BACNET_CORE)/rpm.c \
|
||||||
$(BACNET_CORE)/version.c \
|
|
||||||
$(BACNET_CORE)/whohas.c \
|
$(BACNET_CORE)/whohas.c \
|
||||||
$(BACNET_CORE)/whois.c \
|
$(BACNET_CORE)/whois.c \
|
||||||
$(BACNET_CORE)/wp.c
|
$(BACNET_CORE)/wp.c
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "bacnet/basic/sys/mstimer.h"
|
#include "timer.h"
|
||||||
|
|
||||||
/* This file has been customized for use with UART0
|
/* This file has been customized for use with UART0
|
||||||
on the AT91SAM7S-EK */
|
on the AT91SAM7S-EK */
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
#include "bacnet/datalink/dlmstp.h"
|
#include "bacnet/datalink/dlmstp.h"
|
||||||
|
#include "timer.h"
|
||||||
|
|
||||||
/* global variable counts interrupts */
|
/* global variable counts interrupts */
|
||||||
volatile unsigned long Timer_Milliseconds;
|
volatile unsigned long Timer_Milliseconds;
|
||||||
@@ -309,8 +310,10 @@ static void Timer0IrqHandler(
|
|||||||
dummy = pTC->TC_SR;
|
dummy = pTC->TC_SR;
|
||||||
/* increment the tick count */
|
/* increment the tick count */
|
||||||
Timer_Milliseconds++;
|
Timer_Milliseconds++;
|
||||||
if (SilenceTime < 60000)
|
if (SilenceTime < 60000) {
|
||||||
SilenceTime++;
|
SilenceTime++;
|
||||||
|
}
|
||||||
|
(void)dummy;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Timer_Silence(
|
int Timer_Silence(
|
||||||
|
|||||||
Reference in New Issue
Block a user