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
Mircea Bardac
2db72217d5
Doxyfile.java.in: Fixed documentation generation for Java
...
Signed-off-by: Mircea Bardac <mircea.bardac@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-29 14:29:08 +01:00
Brendan Le Foll
08fe460772
Isr-pin6.cpp: Add example for c++ isr
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-29 14:23:39 +01:00
Brendan Le Foll
70600dece4
mraa: update to version 0.8.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-22 16:57:29 +01:00
Brendan Le Foll
eae2b58cbe
java: Add java doxygen files
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-22 16:39:48 +01:00
Mircea Bardac
7d11bd4cdc
docs: Added index for Java documentation
...
Signed-off-by: Mircea Bardac <mircea.bardac@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-22 15:40:05 +01:00
Brendan Le Foll
effc813e42
mraa.c: fix possible overrun in strncpy
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-18 11:57:41 +01:00
Brendan Le Foll
32aa4310c8
mraa.c: simplify mraa_get_platform_name with subplatforms
...
This removes the chance of buffer overflow with a subplatform
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-18 11:52:52 +01:00
Matthew Auld
434f454139
intel_minnow_byt_compatible: fix memory leak
...
mraa_adv_func_t was allocated twice for the adv_func field
Signed-off-by: Matthew Auld <matthew.auld@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-18 11:39:26 +01:00
Henry Bruce
1a29dc9910
i2c.c: Added check for NULL i2c context
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-17 11:34:35 +01:00
Brendan Le Foll
0aac9df414
Revert "intel_edison_fab_c.c: Don't initiate SPI pins when initializing MRAA"
...
This reverts commit 5c7bab1c79 . Fixes #280 .
2015-09-16 07:42:43 +01:00
Evan Steele
e2aaa349ff
minnowboardmax: Add support for compatible boards
...
Signed-off-by: Evan Steele <evan.steele@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-15 15:38:46 +01:00
Petre Eftime
0071039fa0
intel_galileo_rev_g.c: Fix uninitialized subplatform on Galileo Gen2
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-15 15:26:16 +01:00
Petre Eftime
35760929db
mraajava.i: Initialize mraa when library is loaded by the JVM
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-15 15:26:16 +01:00
Petre Eftime
c9c6ac785a
mraajava.i: Return array properly for SPI write
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-15 15:26:16 +01:00
Jonas Norling
5c7bab1c79
intel_edison_fab_c.c: Don't initiate SPI pins when initializing MRAA
...
Calling mraa_intel_edison_misc_spi() is not really needed, because the
GPIO 10..13 pins will be configured correctly when the user actually
inits them as GPIO pins. When using these pins for GPIO,
mraa_setup_mux_mapped() and mraa_intel_edison_gpio_init_post() will do
all this work based on the pin map and pinmodes for the Edison Arduino
board.
On the contrary, this function would break any user of the SPI bus
that is already running.
Signed-off-by: Jonas Norling <jonas.norling@connode.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-14 10:26:43 +01:00
Alex Tereschenko
b650a9fdc9
uart.hpp: Added missing include for types.hpp
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-14 09:24:37 +01:00
Mihai Tudor Panu
f245cacd6f
common.hpp: inlined getSubPlatformIndex to avoid multiple defs
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-12 08:31:52 +01:00
Brendan Le Foll
99b7f131d9
mraa-i2c.c: remove unused arguments to printf statements
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 15:09:28 +01:00