Brendan Le Foll
e9297d8283
mraa.c: check already initialised before anything else in mraa_init
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-09 18:39:21 +00:00
Thomas Ingleby
bd16eccad1
raspberry pi: correct bus definitions
...
They needed offsetting by +1, due to starting the config at 1 instead of
0 as it was during development
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-12-09 18:18:46 +00:00
Thomas Ingleby
953d7af7e0
arm: use raspberry pi platform
...
As it is the only currently supported ARM platform. It defaults to RPi
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-12-08 15:41:16 +00:00
Thomas Ingleby
ea38d8c397
raspberry pi: add model b definition
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-12-08 15:41:16 +00:00
Thomas Ingleby
f9d466bb84
arm: add initial skeleton for arm platform support
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-12-08 15:32:42 +00:00
Thomas Ingleby
79afd9173a
x86: move x86 platform include files into own directory
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-12-08 15:32:42 +00:00
Thomas Ingleby
b0a21e2c30
arch: initial framework for supporting other architectures added.
...
x86: all platforms moved into x86 directory
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-12-08 15:32:42 +00:00
Brendan Le Foll
aff88114e5
intel_edison_fab_c.c: fix typo in function name
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-08 13:35:43 +00:00
Brendan Le Foll
46acb93370
intel_minnow_max.c: fix unsafe strncpy not NULL terminating
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-08 12:10:13 +00:00
Brendan Le Foll
2059787bbc
intel_galileo_rev_g.c: add more robust error handling
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-08 12:10:13 +00:00
Brendan Le Foll
c270d31a0e
intel_galileo_rev_d.c: check malloc return values
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-08 12:08:34 +00:00
Brendan Le Foll
7be054f9c0
intel_galileo_rev_d.c: prefix syslog calls
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-08 12:08:34 +00:00
Brendan Le Foll
0523ed20f1
intel_minnow_max.c: check malloc return values
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-08 12:08:34 +00:00
Brendan Le Foll
0fc59b61c2
intel_de3815.c: check malloc return values
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-08 12:08:34 +00:00
Brendan Le Foll
2378bf1d6a
intel_edison_fab_c.c: add more robust error handling
...
Fixes #55
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-08 12:08:34 +00:00
Kurt Eckhardt
cf1a8645f7
aio.c: properly cleanup after mraa_aio_close
...
Problem not closing file handle when you destroy the mraa_aio_context
Signed-off-by: Kurt Eckhardt <kurte@rockisland.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-07 15:05:27 +00:00
Brendan Le Foll
1ee0548587
mraa.i: add enum item rename rule
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-02 23:20:24 +00:00
Brendan Le Foll
ffdd828ba8
CMakeLists.txt: use relative paths for install
...
Using CMAKE_INSTALL_FULL_LIBDIR breaks cpack
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-02 17:49:49 +00:00
Helio Chissini de Castro
ed1fc6cdd2
cmake: Define library suffix in case of 64 bits multilib archs in linux
...
Signed-off-by: Helio Chisisni de Castro <helio@kde.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-02 17:14:52 +00:00
Brendan Le Foll
acc3476326
pwm.c: Fix error in mraa_pwm_read_duty
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-02 10:50:17 +00:00
Brendan Le Foll
7ad78d01e5
pwm.c: Fix error in mraa_pwm_read_period
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-02 10:37:44 +00:00
Helio Chissini de Castro
1b059c1351
package.json.cmake: Proper version requires for nodejs
...
Signed-off-by: Helio Chissini de Castro <helio@kde.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-01 15:23:32 +00:00
Brendan Le Foll
14f4567d86
package.json.cmake: fix broken main property
...
This is a partial revert of previous commit
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-01 14:41:20 +00:00
Brendan Le Foll
36e24bade8
npmpkg: Fix package.json having invalid main property
...
Fixes #48
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-01 13:59:47 +00:00
Mihai Tudor Panu
96849157c8
doxy2swig: quick fix on missing unicode encode
...
Signed-off-by: Mihai Tudor Panu <mihai.t.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-27 09:39:10 +00:00
Thomas Ingleby
d1185efc0a
mraa: add mraa_get_platform_name
...
getPlatformName for c++/swig API
Closes #35
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-26 15:17:28 +00:00
Brendan Le Foll
0289c63c4c
pwm.c: remove possibility of division by 0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 14:00:17 +00:00
Brendan Le Foll
9f3cc6e890
pwm.c: check error condition when doing read operations
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 13:59:59 +00:00
Brendan Le Foll
be1a725db8
intel_de3815.c: make sure strncpy() doesn't go over 8 chars
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 13:59:01 +00:00
Brendan Le Foll
24e52bdbbd
gpio.c: cast return value explicitly
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 13:58:28 +00:00
Brendan Le Foll
51cfc7981d
gpio.c: fail early in case of error when reading file
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 13:56:33 +00:00
Brendan Le Foll
fefe0a24cd
gpio.c: check return status of open call
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 13:56:10 +00:00
Brendan Le Foll
a7b8d4a0ca
aio.c: check aio_get_valid_fp return value
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 13:30:10 +00:00
Brendan Le Foll
bb5314efc1
aio.c: remove less-than-zero comparison of an unsigned var
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 11:43:30 +00:00
Brendan Le Foll
1a1c9c2db2
gpio.c: fix incorrect debug message due to merge
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 11:43:30 +00:00
Brendan Le Foll
74bcaf3984
mraa_board_t: fix operator in *_mmap_unsetup
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 11:43:30 +00:00
Brendan Le Foll
276b0a8920
i2c.c: fix typo in mraa_i2c_read_word_data
...
Fixes #45
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-26 07:52:40 +00:00
Brendan Le Foll
abd538dc4b
cmake: fix indentation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 18:03:36 +00:00
Brendan Le Foll
0ca4b10687
package.json.cmake: remove repository tag causing issues on update
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 17:45:50 +00:00
Brendan Le Foll
a38c07f7b1
npm: add node-gyp build support
...
This commit adds all the infrastructure necessary for doing node-gyp builds of
mraa. Note this will only build the mraa js bindings and will dirty your git
tree whilst doing it. It also assumes the user does not have SWIG installed on
their machines and so the swig wrapper is static. The target to use this
feature is 'npmpkg'.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 15:20:19 +00:00
Brendan Le Foll
d4552fdc5e
javascript: add a generated package.json with versioning
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 11:19:05 +00:00
Henry Bruce
d7c92bf19e
intel_minnow_max.c: fixed pin capability errors
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-21 19:55:44 +00:00
Thomas Ingleby
8f9059767f
spi: fix mistake from mem branch where spi will fail.
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-21 11:50:59 +00:00
Brendan Le Foll
148c22fb27
mraa.c: fix char count in board_name
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 15:08:31 +00:00
Henry Bruce
7aea3459a9
pwm.c: Must write period before duty_cycle to avoid sysfs error
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
2014-11-20 15:08:31 +00:00
Henry Bruce
57540cd86c
gpio.c: check that real gpio did initialise correctly
...
On platforms without muxing perform a little more checking when the 'real'
linux/sysfs gpio is opened. We don't expect this to fail but on platforms where
the linux gpios can be changed depending on pinctrl/bios configuration this
might not always be the case.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 15:08:31 +00:00
Henry Bruce
6bc2b0fb53
intel_minnow_max: Added platform definition
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 15:08:31 +00:00
Thomas Ingleby
c123ff75f0
galileo gen2: add missing mux information for UART on IO1
...
Fixes #36
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-20 15:08:31 +00:00
Brendan Le Foll
d95df3ec22
intel_edison_fab_c.c: remove uart_init_post hook for miniboard
...
use uart_init_pre hook instead. Fixes #39
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-20 14:50:58 +00:00
Brendan Le Foll
19d7dad364
i2c: remove smbus helper library & clean up command use in API
...
This commit changes the mraa_i2c_read() API call behaviour, a register should
now always be set when using this call. The smbus helper library is no longer
required since the code is now all contained from i2c.c which avoids multiple
function calls
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 12:03:31 +00:00