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
Brendan Le Foll
5c10ad05ee
common.hpp: remove whitespace
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-02-03 15:39:32 +00:00
Brendan Le Foll
1015beec47
i2c.hpp: Add function to get i2c default bus
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-02-03 15:37:41 +00:00
Brendan Le Foll
67f5ab7346
CONTRIBUTING.md: Add github style contributing rules
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-02-02 17:22:49 +00:00
Brendan Le Foll
1f41b2f97e
.travis.yml: Add node.js versions to build matrix
...
This adds node5, node4 & 0.12 to build matrix and updates clang & gcc if
required (node4/5)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-02-02 17:21:40 +00:00
Bernd Kuhls
7fce2e2a3a
uart.c: fix build with musl libc
...
musl does not define CMSPAR on all archs, patch inspired by
http://git.alpinelinux.org/cgit/aports/plain/main/freerdp/musl-fix.patch
musl needs sys/select.h to provide fd_set.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-02-02 10:37:31 +00:00
Brendan Le Foll
44e705a518
java: Move mraajava.pc to java folder
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-02-02 10:05:57 +00:00
Henry Bruce
8ff42482ec
nodejs: Fixed cmake bug in v8 and uv detection logic
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-28 14:21:30 +00:00
Henry Bruce
3924070171
nodejs: Updated FindNodejs.cmake so exported variables match package name
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-28 14:21:20 +00:00
Henry Bruce
ff31d6763c
nodejs: cmake updates to more thoroughly check Node.js configuration
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-28 14:21:05 +00:00
Constantin Musca
ba5318fee9
intel_minnow_byt_compatible: include Turbot additions
...
The pinout for the Low Speed Expansion on the MinnowBoard
Turbot is the same as the MinnowBoard MAX A2 desgin, with
the exception of pin 26. Pin 26 was changed to provide an MCLK
reference clock for I2S.
In addition, the D2 LED is now under GPIO control.
Add support for these changes.
Signed-off-by: Constantin Musca <constantin.musca@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-25 15:49:53 +00:00
Eugene Bolshakov
2e5e3eaea2
mraajs: Check for CMAKE version > 3.1 or use workaround
...
Older cmake versions don't support the CXX_STANDARD property. Remove doubled
CMAKE_CXX_FLAGS in mraajs COMPILE_FLAGS
Closes #411
Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-24 16:56:41 +00:00
Henry Bruce
078218f680
pwm: Check for out of range pin number in pwm_init()
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-22 15:06:47 +00:00
Stefan Andritoiu
c86fe2a12b
java: Ignored function, which should not have bindings created for it
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-22 15:06:25 +00:00
Stefan Andritoiu
8b68f3040e
java: added sanity checks for sample mapping and bindings
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-21 15:28:03 +00:00
Stefan Andritoiu
c564dad68f
CMakelists: Made tests building rule independent of the python build
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-21 15:28:03 +00:00
Stefan Andritoiu
ecc04d7511
docs: Added reference to "Creating Java Bindings Guide"
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-21 15:28:03 +00:00
Petre Eftime
c63e38a57e
java: Migrate IsrCallbacks to Java's Runnable class
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-21 15:28:03 +00:00
Brendan Le Foll
78a4d12a37
mraa.c: cache platform_name on mraa_init
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-21 15:28:03 +00:00
Brendan Le Foll
0aed0003ff
mraa.c: make mraa_get_platform_name use a const char
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-21 15:28:03 +00:00
Brendan Le Foll
bdb5ef66e9
mraa.c: Add mraa_get_platform_version call
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-21 15:28:03 +00:00
Constantin Musca
caebb8b1fb
iio: guard pthread_setcancelstate with HAVE_PTHREAD_CANCEL
...
Signed-off-by: Constantin Musca <constantin.musca@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-20 11:15:41 +00:00