RPi: Improve build process

Add option to set an external arduino libraries directory.
All libraries from this folder will be compile and available for use
in the gateway.
Some Arduino libraries can be used on Linux/RPI with minor adjustments,
but there are some that will have to be completely rewritten.

The build process uses a separate folder for objects and binary files
which can be set by the user.

Initialize the bcm2835 inside a class constructor to fix cases where
pin operations are used before hwInit().

Fix SPI pins default values.

Fix activation interrupt functions.

Fix some headers.

Rename gateway binary and services to mysgw.
This commit is contained in:
Marcelo Aquino
2016-11-19 11:49:18 -02:00
parent fedf326099
commit 330a910f3d
14 changed files with 219 additions and 104 deletions
@@ -3,7 +3,7 @@ Description=MySensors Gateway daemon
Requires=network.target
[Service]
ExecStart=%gateway_dir%/mysGateway
ExecStart=%gateway_dir%/mysgw
[Install]
WantedBy=multi-user.target
@@ -1,6 +1,6 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: mysGateway
# Provides: mysgw
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
@@ -15,7 +15,7 @@
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
DESC="MySensors Gateway"
NAME=mysGateway
NAME=mysgw
DAEMON=%gateway_dir%/$NAME
DAEMON_ARGS="-b"
PIDFILE=/var/run/$NAME.pid