Brendan Le Foll
bf2a504774
firmata_mraa.c: retry counter should not be decremented past 0
...
This means the retry counter works appropriately in case of failure. Closes #574
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-02 11:49:26 +01:00
Brendan Le Foll
9bc91f4b12
docs/joule: Rename docs to use joule naming
...
This also adds the 2 LEDs on the 8260 radio to the mapping
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 16:06:31 +01:00
Brendan Le Foll
6180ddaa8e
README.md: update mraa instructions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 16:03:30 +01:00
Brendan Le Foll
8a93351f0e
building.md: Update building docs
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 15:53:39 +01:00
Brendan Le Foll
1591b92605
python2/cmake: Remove unused pydocs target
...
Pydocs has been deprecated in favour of sphinx as it's really very very ugly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 15:43:23 +01:00
Brendan Le Foll
22b0f63238
cmake: Remove dirty tag on compilation from non git tree
...
This is removed to make building in buildsystems like ubuntu's or yocto's
easier. Bugs reported from old versions haven't been that annoying so this is
probably be ok
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 15:00:10 +01:00
Brendan Le Foll
2832909856
mraa: Update to v1.3.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 13:03:47 +01:00
Alex Tereschenko
636c9feb4f
travis: add builds for mock
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:32:20 +01:00
Alex Tereschenko
0292c960b3
mock SPI: remove loop variable declarations
...
While working fine on my Fedora 22, under Travis (and Ubuntu)
that fails asking to enable C99 standard first, so let's be conservative.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:32:20 +01:00
Alex Tereschenko
9ff47aa64a
mock SPI: correct error message to actually use data provided
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:32:20 +01:00
Houman Brinjcargorabi
a704a956ea
raspberry_pi.c: Added support for pi zero
...
Signed-off-by: Houman Brinjcargorabi <hbrinjcar@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:30:56 +01:00
Brendan Le Foll
94b7477212
intel_gt_tuchuck.c: Make sure GPIOs are set to 0 muxes
...
Use calloc for pinsize and set mux_total to 0 in all gpios
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:26:36 +01:00
Brendan Le Foll
1589389c3f
intel_gt_tuchuck.c: LED101 reset to GPIO338
...
A bios change to 395 was never made so this broke LED101
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 11:40:32 +01:00
Alex Tereschenko
bdbbfd03dd
mraa mock: Add SPI functionality
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 16:00:53 +01:00
Alex Tereschenko
9030ae2eeb
spi.c: added replace functions for all basic actions
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 16:00:53 +01:00
Alex Tereschenko
3a638caf01
spi.c: added context validity checks
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 16:00:53 +01:00
Alex Tereschenko
07f6181c91
mock_board_i2c.c: removed surplus includes
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 16:00:53 +01:00
Houman Brinjcargorabi
0630c5f505
jsonplatform.md: Added documentation
...
Signed-off-by: Houman Brinjcargorabi <hbrinjcar@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 15:59:53 +01:00
Houman Brinjcargorabi
4277a3ee23
mraa.c: Replaced string values with #defines
...
Signed-off-by: Houman Brinjcargorabi <hbrinjcar@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 15:46:39 +01:00
Jon Trulson
c976e9f982
gpio.h: remove extraneous extern C declaration
...
Signed-off-by: Jon Trulson <jtrulson@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 15:45:08 +01:00
Brendan Le Foll
d700cae7c4
mraa: Update to v1.2.3
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-10 11:33:28 +01:00
Brendan Le Foll
356096350b
README.md: Add travis build status
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-10 11:21:54 +01:00
Brendan Le Foll
b4919de733
.travis.yml: Add npmpkg travis builds
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-10 11:21:54 +01:00
Brendan Le Foll
49ee1ebef5
Revert "binding.gyp.cmake: Fix npm builds by stopping dependency on json-c"
...
This reverts commit 50213f97bc . This sets
JSONPLAT during compilation and doesn't disable it during cmake's configure
process which is done by jenkins. This means that mraa_init_platform_json never
gets define since it's under an #ifndef
2016-08-10 09:17:48 +01:00
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