Brendan Le Foll [Mon, 21 Dec 2015 15:23:30 +0000 (15:23 +0000)]
mraa: Remove executable bit from a few files
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 21 Dec 2015 15:18:44 +0000 (15:18 +0000)]
x86.c: Fix include for sofia 3gr platform missing
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 21 Dec 2015 15:16:08 +0000 (15:16 +0000)]
iioc.: remove call to stat before mkdir as superflous
This is especailly true since we don't care about the outcome, or do we? We
probably should check errno for EEXIST and offer an error if the error is
something else
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 21 Dec 2015 15:15:51 +0000 (15:15 +0000)]
iio.c: Avoid reading uninitialised memory in cases of error
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 21 Dec 2015 15:15:15 +0000 (15:15 +0000)]
iio: Check fd against != -1 and not > 0 and avoid leaks during error handling
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 21 Dec 2015 15:12:55 +0000 (15:12 +0000)]
iio.c: Fix closedir not always been called leaving to leaked handles
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Srinivas Kandagatla [Fri, 18 Dec 2015 11:38:53 +0000 (11:38 +0000)]
96boards: remove a typo
This patch removes a typo in the board setup file which sets the number
of gpios to be zero.
Reported-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Thu, 17 Dec 2015 06:53:44 +0000 (14:53 +0800)]
iio.c: fix memory leak and out of bound array access issue
Fix memory leak in mraa_iio_update_channels() and mraa_iio_get_channel_data().
In mraa_iio_update_channels(), we add checking for out of bound array access.
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Thu, 17 Dec 2015 06:32:00 +0000 (14:32 +0800)]
SoFIA 3GR: Add SoFIA 3GR platform with i2c support
Add SoFIA 3GR platform file and define 4 i2c controller.
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Henry Bruce [Mon, 14 Dec 2015 19:50:30 +0000 (11:50 -0800)]
iio: C API changes and C++ API enhancements
- C API read/write integer functions changed to int to match C types
- C API now has close function to release resources acquired during init
- iio internal type isr_event() function now has args param in signature
- C++ API now supports events with handler interface and new data structure
- C and C++ examples updated to use API changes
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Henry Bruce [Thu, 3 Dec 2015 23:54:11 +0000 (15:54 -0800)]
docs: Added more detail to iio doc
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Henry Bruce [Thu, 3 Dec 2015 23:24:10 +0000 (15:24 -0800)]
mraa.c: Do not return with error if iio devices are not detected
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 3 Dec 2015 08:38:38 +0000 (08:38 +0000)]
iio.c: Fix missing include file sys/stat.h
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 3 Dec 2015 08:38:05 +0000 (08:38 +0000)]
iio.c: Use sys/ioctl.h instead of stropts.h
Closes #377
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Henry Bruce [Thu, 3 Dec 2015 20:34:31 +0000 (12:34 -0800)]
examples: Converted iio dummy driver test app to C++
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Thu, 3 Dec 2015 20:33:50 +0000 (12:33 -0800)]
api: Added C++ API for IIO
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Thu, 3 Dec 2015 20:32:24 +0000 (12:32 -0800)]
iio: Fixed device id check bug
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Thu, 3 Dec 2015 20:30:59 +0000 (12:30 -0800)]
mraa.c: iio detect tidy up.
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Wed, 2 Dec 2015 22:42:05 +0000 (14:42 -0800)]
examples: Extended iio_dummy_test to cover more cases.
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Wed, 2 Dec 2015 22:41:07 +0000 (14:41 -0800)]
iio: Isolated use of open() to string read/write functions.
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Wed, 2 Dec 2015 22:39:17 +0000 (14:39 -0800)]
mraa.c: Moved iio detection code into a function
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Wed, 2 Dec 2015 22:38:41 +0000 (14:38 -0800)]
mraa_internal.h: Added mraa_iio_detect() function declaration
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Wed, 2 Dec 2015 18:37:23 +0000 (10:37 -0800)]
examples: Added iio_dummy_test, a test app that uses iio_dummy driver
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Henry Bruce [Wed, 2 Dec 2015 18:36:03 +0000 (10:36 -0800)]
iio: mraa_iio_write_string now using open insteam of fopen
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Brendan Le Foll [Mon, 16 Nov 2015 18:45:18 +0000 (18:45 +0000)]
iio.md: add triger_now option
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 16 Nov 2015 18:43:07 +0000 (18:43 +0000)]
iio.md: add kernel config option
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 16 Nov 2015 18:24:31 +0000 (18:24 +0000)]
iio.md: skeleton documentation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Fri, 6 Nov 2015 01:49:54 +0000 (09:49 +0800)]
iio: iio update channel
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Thu, 5 Nov 2015 01:49:54 +0000 (09:49 +0800)]
iio: iio add create trigger
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Thu, 5 Nov 2015 01:49:54 +0000 (09:49 +0800)]
iio: iio get mounting matrix remove unused variable and proper file close
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Wed, 4 Nov 2015 10:33:14 +0000 (18:33 +0800)]
iio: iio add get mounting matrix
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Wed, 4 Nov 2015 10:08:15 +0000 (18:08 +0800)]
iio: iio consolidate read and write API
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 28 Oct 2015 11:07:45 +0000 (11:07 +0000)]
iio.c: run clang format on iio.c
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 28 Oct 2015 11:06:44 +0000 (11:06 +0000)]
iio.c: add stropts.h include for iotctl
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 28 Oct 2015 11:04:18 +0000 (11:04 +0000)]
mraa_internal.h: Add fnmatch.h include
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 28 Oct 2015 11:02:45 +0000 (11:02 +0000)]
iio.c: Use MAX_SIZE var upgrading strings to 128 from 64
Fix inspired by Lay's PR #342 but doesn't use magic numbers
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Fri, 23 Oct 2015 10:24:46 +0000 (18:24 +0800)]
iio: trigger buffer samples fix
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Tue, 20 Oct 2015 10:59:30 +0000 (18:59 +0800)]
iio: iio get channel and get event error checking
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Tue, 20 Oct 2015 10:41:56 +0000 (18:41 +0800)]
iio-example: printf take extra argument
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Mon, 19 Oct 2015 08:26:38 +0000 (16:26 +0800)]
iio: added mraa_iio_write
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 26 Oct 2015 16:03:44 +0000 (16:03 +0000)]
iio: remove exec perms
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Lay, Kuan Loon [Fri, 16 Oct 2015 01:18:32 +0000 (09:18 +0800)]
iio: added event api
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Alex Tereschenko [Sat, 10 Oct 2015 16:35:22 +0000 (18:35 +0200)]
mraa.c: we now remove trailing CR/LF from IIO dev names
E.g. on Edison they have LFs and that may cause problems
with downstream consumers of this data.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Alex Tereschenko [Sat, 10 Oct 2015 16:34:21 +0000 (18:34 +0200)]
iio: added function returning IIO device number by name
Closes #309.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Alex Tereschenko [Tue, 6 Oct 2015 21:14:08 +0000 (23:14 +0200)]
iio: fixed IIO device counting
We now take into account only "iio:device*" files to filter out
fake devices like triggers.
Closes #299.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Alex Tereschenko [Tue, 6 Oct 2015 21:13:46 +0000 (23:13 +0200)]
iio: fixed comment typo
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 6 Oct 2015 10:51:56 +0000 (11:51 +0100)]
iio: Remove iio structures from mraa_platform_t
This means that a valid platform is no longer required for iio operations and
therefore this is now only a req for using USBPLAT
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 6 Oct 2015 10:51:00 +0000 (11:51 +0100)]
mraa_func.h: Remove unused code
Code crept in from ft4222 branch merge and is superflous becuase of the new
advance function structure
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 5 Oct 2015 11:01:00 +0000 (12:01 +0100)]
iio: Improve iio channel parsing to add enabled channels
scale and other attributes have to be read individually as they vary quite alot
depending on the channel. We only care/take data from scan_elements
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 2 Oct 2015 15:48:47 +0000 (16:48 +0100)]
iio: initial pass at getting channel information from scan_elements
This commit creates a new structure inside each _iio device when used and can
then be used to understand the data being read after a trigger is run/executed
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 30 Sep 2015 09:44:57 +0000 (10:44 +0100)]
iio_driver.c: remove weird API calls
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 30 Sep 2015 09:27:06 +0000 (10:27 +0100)]
iio: Simplify API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 29 Sep 2015 13:19:42 +0000 (14:19 +0100)]
iio: Find attributes and channels in iio device
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 28 Sep 2015 15:53:58 +0000 (16:53 +0100)]
iio_driver.c: Add example for iio interface
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 28 Sep 2015 15:53:31 +0000 (16:53 +0100)]
mraa.c: Fix path of iio device in sysfs
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 28 Sep 2015 15:26:53 +0000 (16:26 +0100)]
iio: initial API and enumeration of devices
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 28 Sep 2015 10:27:19 +0000 (11:27 +0100)]
iio: Add initial module
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Alex Tereschenko [Sun, 13 Dec 2015 14:57:27 +0000 (15:57 +0100)]
docs: added UART examples into Python docs.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Alex Tereschenko [Sun, 13 Dec 2015 14:51:15 +0000 (15:51 +0100)]
examples: added more elaborated Python UART example
Closes #376.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Stefan Andritoiu [Tue, 8 Dec 2015 17:37:38 +0000 (19:37 +0200)]
mraajava.i: The director now uses a GlobalRef instead of a WeakRef to the IsrCallback object
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jorge Ramirez-Ortiz [Sat, 12 Dec 2015 12:16:45 +0000 (12:16 +0000)]
96boards: add support to HiKey 96board
This patch adds support to HiKey board which complies with 96boards spec.
More info about board @https://www.96boards.org/products/ce/hikey/
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Srinivas Kandagatla [Fri, 11 Dec 2015 16:28:35 +0000 (16:28 +0000)]
96boards: add support to 96boards (https://96boards.org/)
This patch adds support to 96boards. 96boards is an open platform
specification. This spec strandardizes the pins on the external
connectors like Low speed and High speed. Given these pins are standard
across multiple boards, I think adding a generic 96boards made sense to
me.
The idea behind adding this generic board file is to make mraa work on
most of the 96boards with minimal changes to board support in libmraa.
This patch adds support to the LS expansion connector which has got 12
gpio pins + 2 i2c + 1 spi and 2 uarts.
For now I have added Dragaon board DB401c support as part of this patch
and is tested.
More info about board @ https://www.96boards.org/products/ce/dragonboard410c/
Long term plan is to get all this configuration from the /sys and
populate the board specifics dynamically, which is bit easy with
96boards specs in-place.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Srinivas Kandagatla [Fri, 11 Dec 2015 16:28:28 +0000 (16:28 +0000)]
TargetArch.cmake: Add support to aarch64 based platforms
This patch adds support to aarch64 arm 64 bit platforms.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Srinivas Kandagatla [Fri, 11 Dec 2015 16:28:18 +0000 (16:28 +0000)]
uart.c: make use of no_bus_mux flag
This patch makes use of no_bus_mux flag in mraa_board_t to skip
unnessary mux checks.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Srinivas Kandagatla [Fri, 11 Dec 2015 16:28:10 +0000 (16:28 +0000)]
spi.c: make use of no_bus_mux flag
This patch makes use of no_bus_mux flag in mraa_board_t to skip
unnessary mux checks.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Srinivas Kandagatla [Fri, 11 Dec 2015 16:26:16 +0000 (16:26 +0000)]
i2c.c: make use of no_bus_mux flag
This patch makes use of no_bus_mux flag in mraa_board_t to skip
unnessary mux checks.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Srinivas Kandagatla [Fri, 11 Dec 2015 16:25:06 +0000 (16:25 +0000)]
mraa: Add flags to not setup bus pinmux
This is an attempt to make the mraa work on wide boards with minimal
board setup.
Most of the arm boards with latest kernel have pinmux already setup by
the driver and its really not necessary for mraa to check each pin and
icheck if the pinmux is required or not. Having this flag would cut lot
of code in board support and its possible to add some generic board
support which can make use of mraa easily.
Without this patch each board support has to have pins setup in there
bus structure.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Mihai Serban [Mon, 9 Nov 2015 15:59:56 +0000 (17:59 +0200)]
intel_edison_fab_c.c: Remove dependency on debugfs
The MRAA library needs the debugfs interface in order to access GPIO
pin modes attributes. Mounting the debugfs is not always desirable so this
patch instructs libmraa to first check for the required attributes in
the normal SYSFS CLASS GPIO interface and to use debugfs as a fallback.
Signed-off-by: Mihai Serban <mihai.serban@intel.com>
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Mihai Serban [Mon, 16 Nov 2015 17:10:12 +0000 (19:10 +0200)]
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>
Mihai Serban [Thu, 12 Nov 2015 16:26:23 +0000 (18:26 +0200)]
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>
Brendan Le Foll [Thu, 3 Dec 2015 12:20:15 +0000 (12:20 +0000)]
cmake: enable settign of MRAAPLATFORMFORCE to reduce libmraa.so size
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Mihai Tudor Panu [Tue, 1 Dec 2015 19:56:47 +0000 (11:56 -0800)]
.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>
Kevron Rees [Wed, 11 Nov 2015 21:43:46 +0000 (13:43 -0800)]
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>
Mihai Tudor Panu [Tue, 1 Dec 2015 11:56:08 +0000 (11:56 +0000)]
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>
Mihai Tudor Panu [Tue, 1 Dec 2015 11:50:44 +0000 (11:50 +0000)]
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>
Mihai Tudor Panu [Fri, 20 Nov 2015 01:18:55 +0000 (17:18 -0800)]
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>
Mihai Tudor Panu [Tue, 1 Dec 2015 11:48:36 +0000 (11:48 +0000)]
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>
Mihai Tudor Panu [Tue, 1 Dec 2015 11:47:57 +0000 (11:47 +0000)]
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>
Stefan Andritoiu [Tue, 24 Nov 2015 15:03:12 +0000 (17:03 +0200)]
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>
Alex Tereschenko [Sun, 22 Nov 2015 16:07:15 +0000 (17:07 +0100)]
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>
Brendan Le Foll [Wed, 18 Nov 2015 13:54:55 +0000 (13:54 +0000)]
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>
Brendan Le Foll [Wed, 18 Nov 2015 13:54:12 +0000 (13:54 +0000)]
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>
Alex Tereschenko [Sat, 14 Nov 2015 18:25:50 +0000 (19:25 +0100)]
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>
Alex Tereschenko [Tue, 17 Nov 2015 20:38:21 +0000 (21:38 +0100)]
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>
Alex Tereschenko [Tue, 17 Nov 2015 20:33:04 +0000 (21:33 +0100)]
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>
Alex Tereschenko [Tue, 17 Nov 2015 20:19:31 +0000 (21:19 +0100)]
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>
Brendan Le Foll [Wed, 11 Nov 2015 16:00:12 +0000 (16:00 +0000)]
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>
Brendan Le Foll [Wed, 11 Nov 2015 13:47:43 +0000 (13:47 +0000)]
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>
Thomas Ingleby [Mon, 2 Nov 2015 10:48:31 +0000 (11:48 +0100)]
mraa: update to version 0.8.1
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
Kevron Rees [Thu, 29 Oct 2015 19:59:45 +0000 (12:59 -0700)]
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>
Alex Tereschenko [Thu, 29 Oct 2015 20:09:27 +0000 (21:09 +0100)]
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>
Alex Tereschenko [Thu, 29 Oct 2015 21:01:42 +0000 (22:01 +0100)]
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>
Chris Brackert [Wed, 28 Oct 2015 16:09:06 +0000 (16:09 +0000)]
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>
Brendan Le Foll [Tue, 27 Oct 2015 11:38:20 +0000 (11:38 +0000)]
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>
damcclos [Mon, 26 Oct 2015 01:11:16 +0000 (18:11 -0700)]
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>
Henry Bruce [Fri, 23 Oct 2015 22:06:27 +0000 (15:06 -0700)]
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>
Henry Bruce [Wed, 14 Oct 2015 21:03:34 +0000 (14:03 -0700)]
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>
Henry Bruce [Thu, 8 Oct 2015 20:18:06 +0000 (13:18 -0700)]
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>
Henry Bruce [Thu, 8 Oct 2015 20:19:08 +0000 (13:19 -0700)]
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>
xbolshe [Thu, 22 Oct 2015 23:45:57 +0000 (02:45 +0300)]
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>