Brendan Le Foll
832d7901d5
beaglebone.c: Fix resource leaks with capepath in error path
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-13 15:26:37 +01:00
Brendan Le Foll
45133922aa
mraa.c: Fix ressource leaks during error handling
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-13 15:25:59 +01:00
Brendan Le Foll
ef28607cea
building.md: Add instructions for cpack
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-31 15:01:34 +01:00
Salah-Eddine Missri
2c4389c2a1
beaglebone.c: Add PWM pinmaps
...
Signed-off-by: Salah-Eddine Missri <missrisalaheddine@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-31 10:34:10 +01:00
Salah-Eddine Missri
80485c942d
pwm.c: Fix warnings due to unescaped %
...
Signed-off-by: Salah-Eddine Missri <missrisalaheddine@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-31 10:33:48 +01:00
Salah-Eddine Missri
fe2512c500
beaglebone.c: Fix warnings in due to syslog 'too many arguments'
...
Signed-off-by: Salah-Eddine Missri <missrisalaheddine@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-31 10:33:48 +01:00
Salah-Eddine Missri
ba2a7cb776
beaglebone.c: Add PWM output configuration
...
Signed-off-by: Salah-Eddine Missri <missrisalaheddine@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-31 10:33:34 +01:00
Brendan Le Foll
49d70cd2a9
arm: Use define MRAA_PIN_NAME_SIZE for pin names
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-30 10:15:31 +01:00
Brendan Le Foll
f8752b7a09
beaglebone.c: remove freeing of NULL var
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-30 09:58:25 +01:00
Brendan Le Foll
9e67788eb0
galileorevh.md: Add instructions for using uart1 on gen2
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-28 09:32:42 +01:00
Brendan Le Foll
a1c9db505e
npm.md: Add warning to not use npm pkgs for cross compilation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-24 14:05:54 +01:00
Brendan Le Foll
9c0753cb18
npm: Fix npm builds for ARM hosts
...
NPM builds don't support cross compiling and will always compile for the host.
Binding.gyp now uses mraa_NPM_SRCS instead of mraa_LIB_SRCS_NOAUTO which
contains all platforms. Cmake now uses mraa_LIB_PLAT_SRCS_NOAUTO to provide all
the sources. NPM builds will build objects for all platforms reguardless of
space which does meann slightly bigger binaries.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-24 14:04:48 +01:00
Brendan Le Foll
5717bba0d4
mraa.c: fix ARMPLAT elif not being done on define like if statement
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-24 14:04:47 +01:00
Alex Tereschenko
6d39902a8a
uart.c: Fixed UART initialization, now we set and apply defaults
...
Closes #221 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-22 11:07:04 +01:00
Brendan Le Foll
e481026227
examples/uart.c: Add a _read call to example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-19 12:39:45 +01:00
Alexandru Elisei
73e9c2859d
raspberry_pi.c: Use define MRAA_PIN_NAME_SIZE for pin names
...
Signed-off-by: Alexandru Elisei <alexandru.elisei@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-16 14:53:51 +01:00
Mihai Tudor Panu
296172d385
java: append -fpermissive to CMAKE_CXX_FLAGS rather than override
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-16 12:01:13 +01:00
Brendan Le Foll
8609dada2c
building.md: add instructions for java bindings on Arch
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-16 11:33:03 +01:00
Brendan Le Foll
a5d13670f4
mraa.c: Fix buffer overfow in mraa_find_i2c_bus
...
All files in sysfs are 4K minimum so allocate a 4k buffer to hold the result -
even if it'll never be that big
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-15 13:50:29 +01:00
Justin Brown
9c93eeb323
cmake: add nodejs executable name
...
The Debian package names the executable nodejs instead of node
Signed-off-by: Justin Brown <justin.m.brown@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-13 11:26:18 +01:00
Brendan Le Foll
df0dbb0c73
mraa: add internal mraa_find_i2c_bus function
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-10 11:11:41 +01:00
Brendan Le Foll
f5d6a6dc18
.travis.yml: Add travis file
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-08 14:16:47 +01:00
Brendan Le Foll
7a2408766c
mraa: update to version 0.7.3
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-08 11:38:15 +01:00
Brendan Le Foll
184a71aaa1
intel_de3815: avoid double free in case of error
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-08 10:34:32 +01:00
Brendan Le Foll
7f34a5c9cf
intel_de3815.c: Add error handling to seeks and avoid reading past buffer size
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-08 10:34:32 +01:00
Brendan Le Foll
8734a42377
mraa-gpio.c: add %d to printf statement
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-08 10:14:56 +01:00
Brendan Le Foll
f9dd4c06de
intel_de3815.c: check i2c device fd
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-08 09:39:52 +01:00
Brendan Le Foll
5131349c4d
intel_de3815.c: go up to i2c-8 to find designware i2c adapter
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-08 09:39:30 +01:00
Brendan Le Foll
3ceed624da
minnow_max.md: Remove unsuported SPI comment
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-06 13:42:02 +01:00
Brendan Le Foll
12620cee0e
intel_minnow_max.c: Use MAX_LENGTH for strn commands
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-06 13:41:39 +01:00
Brendan Le Foll
af41d56597
intel_minnow_max.c: Fix SPI CLK having uninitialised mux total
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-06 11:48:44 +01:00
Brendan Le Foll
c5b0d7a1d1
python/mraa.i: Fix memory leak on python Spi::write and I2c::write
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-02 19:17:53 +01:00
Brendan Le Foll
4698d18fa1
mraajs.i: Fix memory leak on javascript Spi::write
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-02 19:06:59 +01:00
Brendan Le Foll
76a34afe84
mraa.c: Fix readlink call not terminating its buffer
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-01 10:59:03 +01:00
Brendan Le Foll
8a95972774
intel_edison_fab_c.c: check fstat return value
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-01 10:59:03 +01:00
Brendan Le Foll
f080a74497
gpio: all gpio enums prefixed with _mraa
...
Enum C types for gpio where not all prefixed with mraa correctly, now fixed
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-01 10:59:03 +01:00
Thomas Ingleby
5ccd7a675f
x86: de3815: detect correct i2c-dev
...
Will search for the designware i2c devices
Closes #198
Closes #203
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-06-30 14:52:55 +01:00
Jon Trulson
b8b5c935a2
pwm: mraa_pwm_write() should accept 1.0 as a valid percentage
...
Signed-off-by: Jon Trulson <jtrulson@ics.com >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-06-30 00:40:52 +01:00
Thomas Ingleby
1ef71bb370
x86: Galileo Gen 2: add ftdi header serial
...
Closes #138
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-06-29 20:09:45 +01:00
Thomas Ingleby
fd50ea087b
uart: fix issue where a index is checked before set
...
Related to #152
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-06-29 19:51:34 +01:00
Thomas Ingleby
79d1acd17f
x86: edison: add check in init_pre uart hook
...
If none 0 index passed, will log error.
Related to #152
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-06-29 19:49:55 +01:00
Justin Brown
22ace9c642
cmake: add path to help find nodejs
...
Helps locate node-v0.12.4 built from source on Fedora 22
Signed-off-by: Justin Brown <justin.m.brown@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-23 11:10:04 +01:00
Alex Tereschenko
ea31104db0
intel_edison_fab_c.c: added spi_lsbmode_replace to return proper status
...
Edison SPI driver doesn't support LSB_FIRST mode, we will now return
_FEATURE_NOT_SUPPORTED instead of _INVALID_RESOURCE
for attempts to enable it.
Closes #22 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-22 19:26:30 +01:00
Brendan Le Foll
41d71e6ce2
i2c.h: Fix docs that incorectly states -1 is failure
...
Fixes #228
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-20 20:41:44 +01:00
Thomas Ingleby
a06757b62b
cmake: if BUILDSWIG is OFF then disable SWIG items
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-06-18 19:39:59 +01:00
Brendan Le Foll
a44c5851cc
cmake: fix version when git is pesent but no tree is found
...
This avoids the version being .so.HEAD-HASH-NOTFOUND or similar when git is
present on the target but a valid tree is not found
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-16 11:12:17 +01:00
Alex Tereschenko
c9cfcb2cae
intel_galileo_rev_d.c: added spi_lsbmode_replace to return correct status.
...
Galileo Gen1 doesn't support LSB_FIRST mode, so let's
return MRAA_ERROR_FEATURE_NOT_SUPPORTED instead of <...>_INVALID_RESOURCE.
Closes #178 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-15 09:56:49 +01:00
Alex Tereschenko
5adc951f57
spi.c: introduced a _replace hook for spi_lsbmode()
...
This could be generally useful and more specifically is a
prerequisite for issue #178 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-15 09:55:54 +01:00
Alex Tereschenko
44047e746f
spi.c: moved struct _spi declaration into mraa_internal_types.h
...
The declaration seems to be misplaced compared to all other similar structs.
It's also a prerequisite for introducing the _replace hook for spi_lsbmode(),
per issue #178 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-15 09:55:54 +01:00
Andrei Vasiliu
33e4f3eeec
oe-sdk_cross.cmake: Added support for OpenJDK Java bindings
...
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-11 11:44:56 +01:00