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
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
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
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
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
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
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
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
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
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
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
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
Henry Bruce
3e76bee085
api: Added API calls that support both main and sub platforms
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
ba85c9ebc2
ft4222.c: Fixed bug in write_byte_data
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
c84cd4328a
cmake: Disable USB sub-platform support by default
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Brendan Le Foll
570fba9463
mraa.c: usb MRAA_UNKNOWN_PLATFORM is not considered initialisation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Brendan Le Foll
4757d039ab
mraa.c: Fix current_plat being invalid but not NULL
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Brendan Le Foll
eb5a3ac5d2
cmake: add ${mraa_LIBS} to linker for swig libraries
...
This means that the correct libraries are added when mraa_LIBS is appended,
fixes ft4222 handling with SWIG APIs
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
4031124081
api: Renamed some sub-platform API calls.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
4acb0e5562
cmake: USB source files now added to mraa_LIB_PLAT_SRCS_NOAUTO
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
b20a685b0c
i2c: mraa_i2c_init_raw fixed and sub-platform updates.
...
mraa_i2c_init_raw now works again without platfrorm defined.
More API calls now support sub-platform
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Brendan Le Foll
79e33890b6
usb.c: move usb platform not found msg to debug
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Brendan Le Foll
7c5972ad15
mraa.c: use #if defined() for platforms
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00