Private
Public Access
2
0
Commit Graph

1149 Commits

Author SHA1 Message Date
Brendan Le Foll
d8024bb516 mraa: Update to v0.9.6
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-09 14:39:33 +00:00
Thomas Ingleby
29ddf56b67 readme: correct spelling mistake in README
eithe to either

Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2016-03-09 15:12:08 +01:00
Henry Bruce
3b9c4f2bad ft4222: added error checking for getting libft4222 function addresses
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-09 14:04:22 +00:00
Thomas Ingleby
7f78b6760f ft4222: move calls to libft4222.so to use dlopen
Makes the lib a runtime only dependency

Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-09 14:04:22 +00:00
Henry Bruce
441a24aaea ftdi_ft4222: Refactoring of I/O expander support.
Refactored of I/O expander support to simplify addition of new devices.
This had added ISR support for PCA9555.

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-09 14:04:22 +00:00
Henry Bruce
9c2f3c83c9 ftdi_ft4222: Resolved conflicts with PCA9555 I/O expander (commit 3b2a5b8)
This has removed PCA9555 support. It will be introduced soon.

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-09 14:04:22 +00:00
Henry Bruce
65514bb432 ftdi_ft4222: Refactored GPIO expander ISR code
GPIO expander ISRs were dropping interrupts as each pin had its own
thread which cleared the INT signal when reading the GPIO register.
Thus pending interrupts for GPIO on threads waiting to be scheduled
were dropped. Now a single thread polls the GPIO register when INT goes
low and sets interrupt flags for each GPIO line. The threads created
by mraa_gpio_isr() now poll the appropriate interrupt flag.

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-09 14:04:22 +00:00
Henry Bruce
c770c4c669 ftdi_ft4222: Fixed i2c synchronization bug
Synchronization must be done at "context" level so that i2c bus
cannot be unexpectedly changed by a different thread.

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-09 14:04:22 +00:00
Constantin Musca
511332cda5 Android.mk: enable support for UP Board
The commit which added support for UP Board didn't touch Android.mk.
Add up.c to LOCAL_SRC_FILES.

Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-08 20:19:09 +00:00
Brendan Le Foll
82cfa32f70 gpio.hpp: Fix copy and paste error in documentation of gpio modes
Fixes #455

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-05 19:13:23 +00:00
Brendan Le Foll
a387d5e4d4 mraa: Update to v0.9.5
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-01 17:38:31 +00:00
Andrei Vasiliu
df8d471cfb java: Changed JNI version to 1.6
This change is needed to compile/run with OpenJDK 7, as well as with
OpenJDK 8.

Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-03-01 16:22:54 +00:00
Alex Tereschenko
350a6489ee gpio.hpp: added HandleScope creation for Node 4+
Closes #387.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-29 10:09:38 +00:00
Alex Tereschenko
389d0ceafd README.md: updated URLs for package repos
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-28 16:42:48 +00:00
Grant Likely
8e8ed7d52d 96boards: Use consistent pin numbering on 96boards platforms
Every 96Boards baseboard uses the same expansion connector, but the
current 96Boards initialization code assigns the SoC specific GPIO
numbers instead of being consistent across all boards. Change the code
to assign 96Boards GPIO-A through GPIO-L to MRAA GPIOs 23-34.

v2: Create info for all the LS connector pins, not just the GPIO pins.
    This gives us room to describe other pins in the future.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
2016-02-25 13:50:27 +00:00
Dan O'Donovan
2b73083955 up: adding option to build for UP platform only
Adding cmake option to build for UP platform only:
 -DMRAAPLATFORMFORCE=MRAA_UP

Signed-off-by: Dan O'Donovan <dan@emutex.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-24 15:10:20 +00:00
Dan O'Donovan
f9501c5c78 up: add support for UP Board
Add support for UP board (www.up-board.org), scoping
the following functions available via 40-pin header:
* GPIO (via sysfs)
* UART
* I2C
* SPI
* PWM

Validated on UP board v0.2, running ubilinux 3.0

Signed-off-by: Dan O'Donovan <dan@emutex.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-24 15:10:20 +00:00
Mihai Tudor Panu
3b2a5b8429 ft4222: added full support for PCA9555 read/write
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-24 11:22:42 +00:00
Brendan Le Foll
00e8f72ef4 mraa: Update to v0.9.4
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-22 10:51:55 +00:00
Brendan Le Foll
e354c59b6c README.md: Add links to our mailing list
Instead of using my email address to send patches, you can now send patches to
our ML. Noice!

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-22 09:28:28 +00:00
Brendan Le Foll
ca11078fd0 intel_edison_fab_c.c: spi_init_pre on arduino should be called on mraa_init()
It's required to make ADC work as well as the SPI bus

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-20 09:24:09 +00:00
Brendan Le Foll
6b3794003f edison.md: Add warning on using reset button
Closes #432

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-17 11:15:40 +00:00
Brendan Le Foll
699d476de1 mraa: Update to v0.9.3
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-16 19:02:58 +00:00
Petre Eftime
0899f1e995 examples: java: Add test for subplatform GPIO pins
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-16 17:34:27 +00:00
Alex Tereschenko
baa1fcf7be intel_edison_fab_c.c: Fixed file descriptor leak in case of read error
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-16 17:13:09 +00:00
Brendan Le Foll
32d36dfbd0 COPYING: Make it very clear this is an MIT license
Updated copyright year for good measure

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-15 08:13:20 +00:00
Brendan Le Foll
2a6bf2b16d mraa.c: Removed unused iio function
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-12 17:20:54 +00:00
Alex Tereschenko
b33bd5ccd2 intel_edison_fab_c.c: Enhanced detection of Arduino expansion board
Closes #318.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-12 11:29:04 +00:00
Brendan Le Foll
1865dd0ba1 mraa.c: Add 3 chars to length of platform_name
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-12 11:27:02 +00:00
Henry Bruce
944670f66a ftdi_ft4222: Added mutex synchronize i2c operations
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
2016-02-12 11:25:38 +00:00
Henry Bruce
839bdb9011 mraa-i2c: Added "repeated read" command for stress testing
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
2016-02-12 11:25:38 +00:00
Henry Bruce
a73882240b cmake: Stop processing if JAVA_HOME environment variable is not set
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
2016-02-12 11:25:38 +00:00
Henry Bruce
43ae362be8 examples: Java GPIO ISR example now takes pin as command line argument
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
2016-02-12 11:25:38 +00:00
Henry Bruce
6bf706befb examples: Added JavaScript gpio tool
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
2016-02-12 11:25:38 +00:00
Henry Bruce
1fd4ed5736 ftdi_ft4222: Added GPIO interrupt support for language bindings.
- FT4222 GPIO ISR implementation was specific to C/C++ and ignored
  language binding support. This is now fixed via adv_func updates.
- GPIO ISR code has been refactored to reduce i2c traffic when using
  I/O expanders
- Added support for built-in FT4222 GPIO interrupts

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
2016-02-12 11:25:38 +00:00
Henry Bruce
d2fcb88c4b cmake: Added INSTALLTOOLS option that installs both mraa-gpio and mraa-i2c
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
2016-02-12 11:25:38 +00:00
Andrei Vasiliu
cb4c9152d6 java/CMakeLists.txt: Updated install path for Java library file
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-12 11:20:32 +00:00
Brendan Le Foll
61011df748 mraa: Update to v0.9.2
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-11 10:21:28 +00:00
Brendan Le Foll
d04911d569 mraa.c: Fix mraa_init with usb subplatform
This fix only affects USBPLAT=ON which would cause mraa_init to return
uninitialised if we had detected a platform. Whilst the initialisation had
actually been done correctly the results would be that platform_name was
unfilled and no iio initialisation was done

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-11 10:17:56 +00:00
Brendan Le Foll
1f57c6c082 Blink-IO.cpp: fix dual include of stdlib for no reason
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-09 16:04:14 +00:00
Brendan Le Foll
51340c6289 arm.c: fix conditionals instead of checking all possibilities
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-08 12:04:11 +00:00
Grant Likely
14960c4190 96boards: Fix recognizing the HiKey platform on recent kernels
Somewhere between kernel v3.18 and v4.4 the output of /proc/cpuinfo
stopped showing the board model. This confused MRAA when running on
HiKey. Eventually we want to do a better job of getting the kernel to
express hardware information to userspace, but in the mean time fix the
test so that MRAA will work on HiKey.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Cc: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Brendan Le Foll <brendan.le.foll@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-08 11:57:03 +00:00
Alex Tereschenko
c101117ece js examples: removed surplus char() helper function
Closes #226.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-08 11:16:10 +00:00
Constantin Musca
9202eb172d intel_edison_fab_c: don't call mraa_intel_edison_misc_spi for miniboard
mraa_intel_edison_misc_spi is specific to the Arduino board.
Call it only when miniboard is not 1.

Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-08 10:03:17 +00:00
Steven Müllener
3e1c528571 Spi: Constructor with chip select added in cpp header
Signed-off-by: Steven Müllener <steven.muellener@sius.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-05 17:02:22 +00:00
Constantin Musca
1ce28ee082 intel_edison_fab_c: minimize the platform init func
Move mraa_intel_edison_misc_spi to mraa_intel_edison_spi_init_pre.
There is no point in initializing SPI if it's not used.
Set the direction of GPIO 214 (TRI_STATE_ALL) only if it's not set
to *out*.

Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-05 15:47:56 +00:00
Brendan Le Foll
8710280142 gpio.hpp: Add direction read call for C++ & SWIG APIs
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-05 15:47:56 +00:00
Constantin Musca
cc4fe26c09 gpio: add mraa_gpio_read_dir
Add support for reading the direction of a GPIO
and expose it through mraa_gpio_read_dir.

Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-05 15:47:54 +00:00
Karena Anum Kamaruzaman
084883c210 Enable CherryHills (Braswell) support for GPIO
Enable the GPIOs for Cherryhills (Braswell).

Signed-off-by: Karena Anum Kamaruzaman <karena.anum.kamaruzaman@intel.com>
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-05 15:47:35 +00:00
Brendan Le Foll
04f3b93f85 mraa: Update to v0.9.1
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2016-02-03 15:50:07 +00:00