Fathi Boudra
e1c500414b
docs: fix spelling errors
...
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-11 15:13:06 +01:00
Thomas Ingleby
a9429204e3
mraa: Update to v0.10.1
...
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2016-03-28 17:11:31 +02:00
Thomas Ingleby
faa8d4d3d4
npm: remove imraa option from Node module
...
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2016-03-28 17:06:18 +02:00
Alex Tereschenko
b86ad8f073
docs: fixed invalid links in and to imraa docs
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2016-03-28 16:57:32 +02:00
Brendan Le Foll
a218056905
i2c.c: Fix return value of mraa_i2c_write in error cases
...
ioctl() returns -1 on error, or otherwise a value certainly not within the
mraa_result_t enum. Fixes #480 .
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-28 04:16:40 +01:00
Brendan Le Foll
52f9c48bbc
mraa: Update to v0.10.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-24 17:01:01 +00:00
Houman Brinjcargorabi
0fabc9b46a
imraa.md: Added building imraa
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-24 14:34:12 +00:00
Brendan Le Foll
21bea74b74
mraa-gpio.c: Add return to list_pins
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-24 09:46:31 +00:00
Brendan Le Foll
8b02c419f8
edison.md: Add docs for MFD2
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-24 09:45:05 +00:00
Brendan Le Foll
296ed38227
up.c: Remove warnings about unsigned ints being passed
...
Whilst not the cleanest and the headers could do with an update, this is a
short term solution to stop the warnings
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-24 09:36:05 +00:00
Noel Eck
14de175425
mraajs: Allow user to override node module install path.
...
Currently, node modules install under the current environment's
node install path. This happens even if cmake is passed a
CMAKE_INSTALL_PREFIX.
This change checks if a CMAKE_INSTALL_PREFIX has been provided,
in which case it prepens the install path to the NODE_MODULE_INSTALL_PATH.
If a CMAKE_INSTALL_PREFIX has NOT been provided, the the mraa node
modules get install according to the NODE_ROOT_DIR.
This fixes a problem with an install case where the caller does not
have write access to the NODE_ROOT_DIR.
Signed-off-by: Noel Eck <noel.eck@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-24 09:04:54 +00:00
Brendan Le Foll
63a29e92ea
npm: add firmata & imraa support to npm
...
mraa_LIB_PLAT_SRCS_NOAUTO no longer used for firmata unlike USBPLAT but
mraa_LIB_SRCS_NOAUTO and this is now loaded before the standard src files for
mraa. The package still needs to be generated with IMRAA & FIRMATA enabled for
this to work.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-23 17:00:44 +00:00
Mihai Tudor Panu
49ab97f81c
firmata: very crude ISR implementation for EDGE_BOTH
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-23 15:07:23 +00:00
Brendan Le Foll
319c932036
mraa.c: made imraa mraa_add_from_lockfile more robust
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-23 11:31:53 +00:00
Brendan Le Foll
35b2426170
mraa.c: allow imraa lock file to be read if platform is unknown
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-23 10:50:03 +00:00
Brendan Le Foll
8c0aa5af2c
cmake: disable TGZ from builds when IPK used
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:42:54 +00:00
Houman Brinjcargorabi
a7c688b867
galileorevh.md: Added SPI info, Fixed formatting
...
Added information on how to turn on GPIO 10 for CS and fixed the wild formatting
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Houman Brinjcargorabi
6fc2bef13f
hellomraa.c: Remove unused variables
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Houman Brinjcargorabi
747429ca7e
README.MD: Added mraa logo
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
deadprogram
c302269750
firmata: Call FirmataCurieIMU firmata plugin API to retrieve raw accelerometer data
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
deadprogram
de0b9e72c6
firmata: Add very simple mraa firmata examples for JS & Python
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
2fb577d348
firmata_mraa.c: Fix reg read to not use firmata contiuous mode
...
Firmata's i2c continuous mode is it's own thing and is currently not supported
in mraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Longwei Su
30322f8ac5
imraa.c: General imraa cleanup after static analysis
...
Signed-off-by: Longwei Su <lsu@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
5cfddd6bcc
.travis.yml: Fix NODE_ROOT_PATH
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
a17079c460
firmata: install node_modules to where cmake guessed node was
...
This does now mean that modules won't go to /usr/local with the default prefix
but may instead try to install in /usr/lib. However if using nvm they should go
to the right place as long as NODE_ROOT_DIR is set correctly. This commit
changes NODE_ROOT_DIR to actually refer to the root directory of node rather
than the include dir which is what FindNodejs gets
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
fac9d99f01
firmata.c: check result cleanly of mraa_uart_set_baudrate
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
ec267c3482
firmata: add timeout for firmata_pull failing
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
df2e131d26
imraa.c: Cleanup formatting of imraa.c
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Longwei Su
317c85ecb6
imraa: add force flag and add safety checks
...
Signed-off-by: Longwei Su <lsu@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Longwei Su
f1f578363a
imraa: update udev cmake configuration
...
Signed-off-by: Longwei Su <lsu@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
longwei su
0fb2aed7af
imraa: add first version of IO pinmuxing and clean up
...
Signed-off-by: Longwei Su <lsu@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Mihai Tudor Panu
405e601387
firmata: implemented pwm functions
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Mihai Tudor Panu
0e5dadeb8c
pwm: removed unused code and optimized flow for subplatform support
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
9a5abb7d56
firmata_mraa.c: Fix type error in uint8 array
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
334a57be11
gpio.c: Add close replace function hook
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
1d4f721d4f
firmata.md: Add basic firmata docs
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
67eaf78fbf
firmata: provide timeout for i2c read calls
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Noel Eck
451dcbad6c
uart: Fix for failed malloc
...
Check malloc return in UART read. Throw if malloc fails.
Signed-off-by: Noel Eck <noel.eck@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Longwei Su
a52ce5d5bb
imraa: add first version of imraa, the mraa initialisation daemon
...
Imraa allows the automatic flashing and setup of arduino101 subplatforms as
well as the initial setup of GPIO/i2c devices
Signed-off-by: Longwei Su <lsu@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Rick Waldron
de42b9558f
firmata: use correct i2c continuous read bits (0b00000010)
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Rick Waldron
9b157e6f19
firmata: update dev->period, pwm_min_period, pwm_max_period, from ns to us
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
915be98d03
firmata.c: Remove superfleous debug output
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
420486519b
firmata_mraa.c: Fix broken handling of mraa_uart_write return values
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
91452e5c83
firmata.c: fix possible crash if devs is wrong
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
5789f5001d
javascript/CMakeLists.txt: change SEND_ERROR for workaround to WARNING
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
7088527339
tests/platform_checks.py: Fix test to check for NULL platform
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
f07a442860
mraa.c: Fix pin mode test to check for NULL platform
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Mihai Tudor Panu
2919b38b15
firmata: added stubs for PWM functionality
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Mihai Tudor Panu
603834461f
pwm: added hooks for subplatform support
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:29 +00:00
Brendan Le Foll
537a69923b
examples: disable firmata examples if firmata disabled
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:29 +00:00