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
Brendan Le Foll
54bf18b246
aio.c: missing free for aio contexts in error cases for _init()
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 15:09:06 +01:00
Brendan Le Foll
17eb7a791a
intel_galileo_rev_d.c: Fixed missing goto leaving board unfreed in error case
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 15:00:40 +01:00
Brendan Le Foll
1937473c01
aio.c: missing return for internal init
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:58:55 +01:00
Petre Eftime
a0791f8277
gpio.hpp: remove unused args parameter from Java isr method
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:54:43 +01:00
Petre Eftime
3934897864
mraa: Add types.hpp; Use types.hpp for C++ and SWIG
...
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-08 14:54:28 +01:00
Brendan Le Foll
679d1a55b6
ft4222: Add documentation for usb platform
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Brendan Le Foll
b2a0bbfcbc
hellomraa.c: Remove i2c calls
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Brendan Le Foll
07343e2ee7
mraa: Remove global advance_func struct and place it in platform configuration
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Brendan Le Foll
fc55088c03
ftdi_ft4222.c: clean up, styling fix
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00