Brendan Le Foll
c0fbccb3b6
mraa: Update to v1.2.2
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-09 14:10:48 +01:00
Thomas Ingleby
fce4daab02
mraa: Correct spelling of capabilities
...
Type was correctly spelt, but the member in the platform strut was not.
My mistake from 2014.
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2016-08-08 21:44:00 +02:00
Brendan Le Foll
29be2b64c0
mraa: Update to v1.2.1
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-03 16:50:09 +01:00
Brendan Le Foll
50213f97bc
binding.gyp.cmake: Fix npm builds by stopping dependency on json-c
...
This disables JSONPLAT but means we can build on stuff without json-c
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-03 16:49:30 +01:00
Brendan Le Foll
e675123d50
mraa: Update to v1.2.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-03 13:29:15 +01:00
Brendan Le Foll
36153ad7ad
intel_galileo_rev_d.c: Move code for gen1 from pwm.c to advance function
...
This re-enables correct PWM on gen1
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-03 13:27:35 +01:00
Brendan Le Foll
aed965c27d
pwm.c: Remove manual gpio muxing when using a pin that has both pwm & gpio enabled
...
This fixes PWM on the GT platform. The code was only used on gen1 galileo and
is rarely used because it's the only platform in mraa that supports 2 functions
on the same pin without any time of advanced function pointer being called
(gen2/edison). GT however has kernel side muxing which causes the gpio to be
initialised meaning the PWM channel is never set to active as it's activated
after the GPIO is opened and the GPIO keeps precendence
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-03 13:25:32 +01:00
Houman Brinjcargorabi
5d763cb7e5
Example: Added example json file for reference
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Houman Brinjcargorabi
5d94d0a13c
travisl.yml: Added the ability to build with json plat to the tests
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Houman Brinjcargorabi
ca0d740ee0
CMakeLists: Added json platform options and build
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Houman Brinjcargorabi
c7570ff7c2
types.h: Added json platform type
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Houman Brinjcargorabi
a8a7771a16
mraa_internal_types: Changed pinmap type from unsigned to signed Int
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Houman Brinjcargorabi
1ce0b138d2
mraa_internal_types.h: changed unsigned ints in board_t to ints and removed const modifiers
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Houman Brinjcargorabi
8ba8ce3b26
mraa.c: Added init platform from json file
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Alex Tereschenko
346f447c4d
mock: added I2C functionality
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:28:53 +01:00
Alex Tereschenko
26718a67a2
mock: split out aio and gpio implementations to separate files
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:28:53 +01:00
Alex Tereschenko
0021b1aace
i2c: fixed i2c_stop_replace function never being called
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:28:53 +01:00
Alex Tereschenko
da3efdc4b9
i2c: added standard context validity checks
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:28:53 +01:00
Houman Brinjcargorabi
230b6084ba
firmata_mraa.c: Fixed aio bug
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:10:54 +01:00
Brendan Le Foll
8cd1a06562
mraa: Update to v1.1.2
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-12 12:31:23 +01:00
Brendan Le Foll
874d0f47bd
gt: allow for i2c bus to move around a little
...
Unfortunately GT has alot of i2c buses, the second lot of designware buses can
turn up after the i915 i2c buses but since they all have the same name, we do a
dumb check to see if they are 5/6 or 9/10. Hopefully future kernel/firmware
will let us do something smarter.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-12 12:26:46 +01:00
Brendan Le Foll
6c9aeb9b9e
mraa-i2c: stop switching on every platform type and assume linux
...
This patch makes mraa-i2c give sensible bus numbers
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-12 12:09:37 +01:00
Alex Tereschenko
63b244cfc3
mock: added AIO pin and logic
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-11 10:48:43 +01:00
Alex Tereschenko
917a1bd371
aio: added context validity and replace function checks to aio_close()
...
Added standard context validity check, another check for a replace function
and corrected a return statement to fit our standard code style.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-11 10:48:43 +01:00
Alex Tereschenko
e43459d031
aio: added standard context validity check to aio_read()
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-11 10:48:43 +01:00
Mihai Tudor Panu
eabee5f864
gt-tuchuck: fix I2C bus typos in board definition file
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-09 08:40:10 +01:00
Jamie Tanna
a22ff43f59
travis-ci: Update infrastructure to Trusty Tahr
...
Update Travis to use the latest version of Ubuntu: 14.04.3 Trusty Tahr.
- Fix issue where Node v0.10 did not get installed, therefore builds
would fail. In addition, don't hardcode the path to Node v0.10.36 as
there have since been updates to v0.10.
- Fix issue where CMake cannot find the PythonLibs folder, fixed via
https://github.com/travis-ci/travis-ci/issues/5326
- Ensure that we have the Python2 development headers
Signed-off-by: Jamie Tanna <jamie@jamietanna.co.uk >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-08 16:01:30 +01:00
Alex Tereschenko
1af737f3d9
mock: mraa with mock platform now works in Windows under MSYS2
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-05 19:32:58 +01:00
Alex Tereschenko
bcb6adc551
mock: added mraa mock platform infra and GPIO implementation
...
Mock platform allows one to use mraa without having any real HW.
This commit makes necessary foundational changes and implements
GPIO functionality as well as adds respective tests.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-05 16:19:05 +01:00
Houman Brinjcargorabi
593fd0be54
mraa.c: Removed duplicate sys/stat.h
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-05 11:11:19 +01:00
Houman Brinjcargorabi
3992f9d596
mraa.c: Remove duplicate string.h include
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-05 11:03:44 +01:00
Brendan Le Foll
43718e7cbf
imraa.c: Remove double include unistd.h
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-04 11:21:04 +01:00
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