Brendan Le Foll
d336e9f8d6
mraa: Update to v1.1.1
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-30 16:13:55 +01:00
Alex Tereschenko
9634f17a2a
gpio: fixed potential null pointer dereference in mraa_gpio_read_dir()
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-30 16:10:11 +01:00
Brendan Le Foll
dfecc68320
.travis.yml: add python3 support
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 11:20:46 +01:00
Brendan Le Foll
b9a6d2a86a
.travis.yml: build our own version of swig
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 11:20:46 +01:00
Brendan Le Foll
bc178b27ee
.travis.yml: move to travis containers
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 11:20:40 +01:00
Brendan Le Foll
fe9264c98f
mraa.c: fix unsigned int comparison by usign UINT_MAX instead of -1
...
This works since both are essentially 'impossible' values.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 10:02:50 +01:00
Lay, Kuan Loon
de0543923c
iio: mount matrix compliant to IIO core kernel standard
...
IIO mount matrix is supported in kernel version 4.6.
Change mraa_iio_get_mount_matrix to take in one more parameter
‘mount matrix sysfs entry name’, because different sensor driver
may expose different mount matrix sysfs entry.
Following link explain the mount matrix usage and sysfs entry:
https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-iio
Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 10:02:08 +01:00
David Antler
b1d23303f7
Change messaging to indicate mraaStub is on npm
...
The module has been added to npm. See:
https://www.npmjs.com/package/mraaStub
Signed-off-by: David Antler <david.a.antler@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 10:02:05 +01:00
Bruce Beare
c1fd2896c2
edison: fix edison spelling errors
...
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 09:59:29 +01:00
Bruce Beare
5704c15665
gt: Add module lights to the gpio HAL
...
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 09:58:57 +01:00
Houman Brinjcargorabi
b5b84c6186
examples: Added examples for initio by description
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-27 11:46:24 +01:00
Alex Tereschenko
0bd488bc53
cmake: fixed incorrect MRAAPLATFORMFORCE definition
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-27 11:44:30 +01:00
Alex Tereschenko
f9bc314223
x86.c: fixed typo in Tuchuck board forced enablement
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-27 11:43:38 +01:00
Brendan Le Foll
50e1b568fb
pydocs: Fix sys.path for multi python because added python2 dir
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-24 14:21:55 +01:00
Brendan Le Foll
a54386c5d3
mraa: Update to v1.1.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-23 17:23:56 +01:00
Brendan Le Foll
0577321f4c
intel_gt: add support for gt + Tuchuck board
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-23 16:16:38 +01:00
Brendan Le Foll
5f515f7648
mraa-gpio.c: dont display pins set as not MRAA_PINS_VALID
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-20 12:18:38 +01:00
Brendan Le Foll
3d2163e2cb
mraa-gpio.c: Fix raw gpio setting
...
setraw was not using mraa_gpio_init_raw so did not work
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-20 10:39:20 +01:00
Alex Tereschenko
8af6843566
PWM: added workaround for Edison's problem with 0% duty
...
As described in issue #91 , on Edison setting 0% duty doesn't
disable the PWM on a pin completely.
Therefore we add a couple of Edison-specific _pre functions
and an internal PWM state variable, which we use to toggle PWM
enabled/disabled based on what duty is set for the pin.
Closes #91 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-16 14:12:33 +01:00
Houman brinjcargorabi
c413a43d5a
mraa.c: Fixed logic error when deciding if the description is null
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-01 15:21:55 +01:00
Stefan Andritoiu
03b548c33b
java: Added version information & checks to ensure Java version matches Native version
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-01 15:21:12 +01:00
Brendan Le Foll
5160d909d3
OpenCVDetectPython.cmake: set minimum python versions
...
This fixes compilation when python is not found or only one version of python
is found
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-01 12:11:05 +01:00
Houman brinjcargorabi
8329bcab62
intel_edison_fab_c.c: fixed the pins not being freed in the event of a tristate read failing
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-01 11:29:17 +01:00
Houman brinjcargorabi
e8d6f38ee0
intel_nuc5.c: Fixed incorrect I2C numbering, effectively not shifting the pin number correctly
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-01 11:29:15 +01:00
Brendan Le Foll
a177a3f729
cmake: Fix tests with multiple python bindings being built
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-01 11:21:20 +01:00
Brendan Le Foll
99841419ab
python: Support building of both python2 & python3 bindings
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-26 14:51:34 +01:00
David Antler
1cfdfcddc6
Add JavaScript mraaStub project
...
Signed-off-by: David Antler <david.a.antler@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-24 11:28:04 +01:00
Houman brinjcargorabi
a321d6707f
mraa.i: Swig interface options to ignore the void* IO constructors and pre-initialise the c++ template functions
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-24 11:21:13 +01:00
Houman brinjcargorabi
b6e6374370
c++: Added the ability to initialise a class using a context struct
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-24 11:21:13 +01:00
Houman brinjcargorabi
bcf1584fbe
mraa.c: Added common function to init io from a description
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-24 11:21:13 +01:00
Houman brinjcargorabi
a9de84b74a
intel_galileo_rev_g.c: Corrected typo in mapping re setting the pincmd for GPIO2
...
Fixes typo in 95c259f6b2
Acked-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-20 11:26:59 +01:00
Alex Tereschenko
0ee25fbd4d
pwm.hpp: fixed some typos and styling in comments
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-19 11:52:16 +01:00
Bruno Meneguele
4fc3e7a73f
banana_pi.md: fixed header table layout
...
In the second table (second 8-pin connector) wasn't present the table header and
because of that the layout was broken.
Signed-off-by: Bruno Eduardo de Oliveira Meneguele <bmeneguele@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-19 11:51:52 +01:00
Brendan Le Foll
88d878648b
beaglebone.c: Remove unused variables
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-19 11:51:07 +01:00
Alexandru Timohi
828338a69a
libmraa: Fix compilation warnings about unsigned ints
...
Make better use of unsigned/signed ints, signed ints are preffered unless there
is a good reason not to.
Signed-off-by: Alexandru Timohi <alexandru.timohi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-19 11:50:33 +01:00
Brendan Le Foll
022b36355f
x86: Fix capabilities being initialised with only 7 bits
...
This whilst ugly should not cause an issue because of our use of calloc.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-19 10:23:10 +01:00
Brendan Le Foll
3969af2b24
iio.c: Fix the location mapping in iio
...
Go through channel array after getting byte mapping to correctly map channel
location. Doing it at the same time as mapping the indexes is unreliable
depending on filename etc...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-16 12:31:47 +01:00
Stefan Andritoiu
b15ab84f61
README.md: Added java bindings to README
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-16 09:05:39 +01:00
Michael Kellner
d3a220479d
beaglebone.c: fix beaglebone i2c bus 2 not existing
...
Signed-off-by: Michael Kellner mkellner@intlweb.com
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-16 09:02:21 +01:00
Noel Eck
905abdec7c
travis-ci: Updates to ensure MRAA builds with clang.
...
The MRAA clang build was getting overridden with gcc.
This commit allows MRAA to build with clang and adds nodejs
0.10 to the build matrix. Note, this means 8 builds
(2 compilers x 4 versions of nodejs).
* Added compiler directive for clang/gcc.
* Added build for node010.
* Added make install to cover the MRAA install.
Signed-off-by: Noel Eck <noel.eck@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-16 08:59:19 +01:00
Brendan Le Foll
db546456d2
building.md: Fix typos in INSTALL_PREFIX
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-04 17:26:02 +01:00
Jon Trulson
f6d9cf57c9
uart_ow: add ow specific context and store search state there
...
Signed-off-by: Jon Trulson <jtrulson@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-04 09:50:02 +01:00
Mihai Tudor Panu
a702cdf4d5
ft4222: fixed pca9555 expander detection
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-04 09:48:40 +01:00
Evgen48
800c89bfa4
examples/java: input pin number should be parsed in base 10, not in base 8, similar to c++ sample
...
Signed-off-by: Eugene Smirnov <o1o2o3o4o5@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-04 09:46:16 +01:00
Brendan Le Foll
887acf54e1
mraa: Update to v1.0.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-28 15:59:40 +01:00
Brendan Le Foll
3a88c44620
i2c.c: rollback change to mraa_i2c_init that stopped default bus being used
...
Partly rollsback f2c4d95c15 which stopped
mraa_i2c_init from switching i2c bus silently. If you don't want this to
happen, you need to use mraa_i2c_init_raw. Closes #497 .
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-26 10:59:59 +01:00
Brendan Le Foll
5e867419bc
spi.hpp: rename Spi::write_word to Spi::WriteWord
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-25 15:38:21 +01:00
Brendan Le Foll
4195a61e52
pwm: remove pwm config_* apis as unused
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-25 15:37:50 +01:00
Brendan Le Foll
c524c3d372
spi: mraa_spi_write_word can now return -1 in error cases
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-25 15:11:08 +01:00
Brendan Le Foll
b258867c37
aio.c: pass channel to mraa_aio_init_internal
...
This fixes previous broken commit because dev is not defined before
_internal_init but since fp is taken during internal init we need to know the
channel number. This does not affect the internal override API.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-25 12:17:32 +01:00