Mihai Serban
759d387c5a
edison: fix SPI IO pointers usage
...
Check if SPI IO pointers are holding valid data before using them.
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com >
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com >
Signed-off-by: Mihai Serban <mihai.serban@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-04 15:37:19 +00:00
Mihai Serban
ccafc77641
Compile libmraa for Android and Brillo
...
Add makefile for building libmraa library.
Import glob functionality from the NetBSD project where the glob.c and
glob.h files are released under BSD 3-clause License. Minor changes were
applied in order to make them compile for Android and Brillo.
This patch adds a control pipe used to interrupt the poll() function
as an alternative to pthread cancellation API.
Change-Id: Id719da4c839acbd320b0cc0e0113c2a5239c8029
Signed-off-by: Mihai Serban <mihai.serban@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-04 15:37:00 +00:00
Brendan Le Foll
2dd94cda3b
cmake: enable settign of MRAAPLATFORMFORCE to reduce libmraa.so size
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-03 12:20:15 +00:00
Mihai Tudor Panu
b1016635c3
.travis.yml: enabled JAVA 8 builds with gcc
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-02 15:03:30 +00:00
Kevron Rees
c7a405a531
cmake: use cmake includedir
...
We need to use CMake variables to avoid installing things in the wrong places on
systems that have multilib enabled.
Signed-off-by: Kevron Rees <kevron.m.rees@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-01 15:07:36 +00:00
Mihai Tudor Panu
063a3154aa
ft4222: adds initial support for on-chip GPIO in mode0
...
This commits uses CLK_* and so requires libftdi 1.2.1.4+
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-01 12:07:12 +00:00
Mihai Tudor Panu
5f4f0a2aef
ft4222: prepares onboard gpio support in addition to i2c expander option
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-01 12:01:55 +00:00
Mihai Tudor Panu
1c7bd53bf3
gpio: function replacement for gpio write calls
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-01 12:01:55 +00:00
Mihai Tudor Panu
efc79d13c0
i2c.c: Fix identation/style and simplify logic in mraa_i2c_read
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-01 12:01:25 +00:00
Mihai Tudor Panu
e8cb060f4e
i2c.c: call correct adv func in mraa_i2c_read_byte
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-01 12:01:16 +00:00
Stefan Andritoiu
93839d4865
java: Added auto load library code to the SWIG interface file
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-30 09:57:58 +00:00
Alex Tereschenko
caaf36dfb6
README.md: updated package name in opkg command example
...
Closes #367 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-23 10:44:10 +00:00
Brendan Le Foll
8d252c62cd
README.md: Add UPM style images for documentation moving links to mraa.io
...
Also adds java documentation links
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-19 15:12:16 +00:00
Brendan Le Foll
57b3775ae9
README.md: remove outdated reference to eglibc images
...
all IOTDK images are now 1.7 poky based which uses glibc
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-18 13:55:53 +00:00
Alex Tereschenko
2dd46494ff
uart.c: fixed typo in debug output
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-18 13:55:53 +00:00
Alex Tereschenko
5b1068fc62
README.md: updated Edison SDK version to the latest one.
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-18 13:55:50 +00:00
Alex Tereschenko
bde9715c94
README.md: formatting updates to make it nicer + typo fixes.
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-18 13:55:47 +00:00
Alex Tereschenko
90accf7b04
README.md: added install instructions per suggestion in #336 .
...
Closes #336 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-18 13:55:44 +00:00
Brendan Le Foll
fa772a0a9d
FindNodejs.cmake: V8_VERSION_MAJOR is being set and MINOR/PATCH where empty
...
This has been wrong for a while and probably not the most important but when
node.js fails to be detected (typically this means runtime check on node.js has
failed which hopefully is rare!)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-11 16:00:16 +00:00
Brendan Le Foll
80024ff184
javascript: Fix build for nodejs v5 which has smaller version string
...
SWIG uses SWIG_V8_VERSION made of
0x0${V8_VERSION_MAJOR}${V8_VERSION_MINOR}${V8_VERSION_PATCH}. Because newer v8
versions don't seem to have a patch version that is padded the version string
ends up too small ending with using the node.js 0.10.x paths. This fix pads the
version string to 8chars which (we assume) is always correct. Fixes #358
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-11 13:47:43 +00:00
Thomas Ingleby
049ba5fa9f
mraa: update to version 0.8.1
...
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2015-11-02 11:48:31 +01:00
Kevron Rees
937a38c4ac
cmake: use cmake libdir instead of making our own
...
Signed-off-by: Kevron Rees <kevron.m.rees@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-30 12:04:58 +00:00
Alex Tereschenko
cd4626852d
gpio.c: enhanced Python-specific code
...
This further enhances fix introduced by commit 0836067
by adding Python 3 support and correcting Python version
hex string used in compiler directives.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-30 12:03:53 +00:00
Alex Tereschenko
8e63c718e4
README.md: updated link to IoTDevKit package repo
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-30 09:07:40 +00:00
Chris Brackert
51436f6a0a
gpio.c: Fix interrupt callback args
...
Signed-off-by: Chris Brackert <cbrackert@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-28 17:45:20 +00:00
Brendan Le Foll
0836067900
gpio.c: Fix python3 builds, PyString_AsString not avail
...
Previous commit to add debugging cause python3 builds to fail because
PyString_AsString is not available on python3 since all strings are uft8
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-27 11:38:21 +00:00
damcclos
c89b04eb19
uart.c: fix to UART even parity
...
Signed-off-by: David McCloskey <davmcclo@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-26 16:00:18 +00:00
Henry Bruce
6aaf48940e
examples: Fixed bug in mraa-gpio introduced by sub-platform update.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-26 15:46:54 +00:00
Henry Bruce
bf803209aa
ftdi_ft4222.c: Fixed bug in gpio configuration
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-26 15:46:54 +00:00
Henry Bruce
799f1409b9
ftdi_ft4222.c: Implemented previously stubbed out i2c functions.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-26 15:46:54 +00:00
Henry Bruce
df8492a8f7
i2c.c: Added missing adv_func support to some functions
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-26 15:46:54 +00:00
xbolshe
63ff901674
JavaScript SPI.write output correction #2
...
Closes #330 .
Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-26 15:36:20 +00:00
xbolshe
f9af006c97
JavaScript SPI.write output correction
...
Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-26 15:35:31 +00:00
Alex T
621bf5266e
docs: updated Python docs index with all supported platforms
...
Also fixed #324 (broken link to Raspberry Pi page).
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-22 23:29:14 +01:00
Andrei Vasiliu
338feb2c3e
src/java/CMakeLists.txt: Modified path for javac and jar
...
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-09 14:38:30 +01:00
xbolshe
dbd1a31536
uart.js: Rewrite of example to show more functionality
...
Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-09 14:38:27 +01:00
Alex Tereschenko
3c3136d43a
gpio.c: Log more data in ISR handler on Python error
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-06 14:40:57 +01:00
Alex Tereschenko
b8e1f79b4d
gpio.c: Fixed typo
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-06 14:40:57 +01:00
Alex Tereschenko
e6c3dd24a6
gpio.c: Added ISR thread termination flag
...
Also modified ISR handler logic to account for the flag.
This fixes isrExit() deadlock in Python interactive mode
and prevents a more generic problem of a spurious ISR call
after mraa_gpio_isr_exit() is run.
Closes #268 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-06 14:40:57 +01:00
xbolshe
3059c06fa0
javascript: Add nodejs 4.1.1 support
...
API changes in V8 API mean that node.js 4 needs some changes both in mraajs.i
but also require a C++11 compiler
Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-03 17:36:54 +01:00
Alex Tereschenko
24d4446193
gpio.h: Fixed a couple of typos in description
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-02 13:40:49 +01:00
Mihai Tudor Panu
18249d5ecc
.travis.yml: updated travis file to use swig3 and build node.js bindings too
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:32:12 +01:00
Mircea Bardac
31750be753
docs: Enabled samples in the Java documentation
...
Signed-off-by: Mircea Bardac <mircea.bardac@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:31:22 +01:00
Mircea Bardac
a7414edca3
Doxyfile.java.in: Fix lookup of SWIG generated Java files
...
Signed-off-by: Mircea Bardac <mircea.bardac@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:31:22 +01:00
Petre Eftime
06e5e7dc11
Isr.java: Fix ISR example to use pin 6 and sleep properly
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:31:22 +01:00
Petre Eftime
42d169e003
samples.mapping.txt: Add samples mapping for java samples
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:31:09 +01:00
Petre Eftime
bda9f4d211
examples/java: Port examples containing [Interesting] tag from C/C++
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:31:01 +01:00
Petre Eftime
0e44dfac44
examples/java: Update, indent and add [Interesting] tags to examples
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:30:51 +01:00
Petre Eftime
013c04c7b9
mraajava.i: Ignore read/write functions (in UART)
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:30:43 +01:00
Brendan Le Foll
b7a0968489
Doxyfile.java.in: dos2unix
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-29 14:29:14 +01:00