Private
Public Access
2
0
Commit Graph

574 Commits

Author SHA1 Message Date
Kurt Eckhardt
21d88d15eb gpio.c: add advance_func->gpio_close_pre
Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-19 14:40:01 +00:00
Brendan Le Foll
e7649db96d contributing.md: fix styling issues
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-18 22:39:34 +00:00
Brendan Le Foll
2574efdb1d mraa.c: mraa_pin_mode_test should check against b->gpio_count -1
It's already the case for rpi & MMAX but it should be noted that on 1 indexed
boards gpio_count should be +1

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-18 14:28:36 +00:00
Brendan Le Foll
1ee5e25f85 mraa.c: add syslog msg in case we get an unknown pinmode
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-18 14:13:04 +00:00
Brendan Le Foll
a769f78e83 mraa.c: fix uart mraa_pin_mode_test
switch statement was missing a clause for MRAA_PIN_UART meaning it always
returned False

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-18 14:11:27 +00:00
Brendan Le Foll
d58adefa3c mraa.c: fix aio mraa_pin_mode_test
test was adding board gpio_count to pin so that 0 would use the info for pin 14
on some boards when asking for aio capability

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-18 14:07:59 +00:00
Alex Tereschenko
3c4742c6e4 mraa.c: Fixed potential segfault on free()-ing NULL in mraa_deinit()
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-16 21:22:59 +00:00
Brendan Le Foll
e5835fa0da mraa.c: remove DEBUG define
debug DEFINE crept in from 6bc2b0fb53

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-16 20:38:06 +00:00
Alex Tereschenko
083db5bd27 mraa.c: added user check into mraa_init() & increase verbosity
mraa_init() will now:
- print user name and EUID of the process instead of UID,
- print full platform text name in addition to numeric type,
- return, log and print an error if started by non-root user

Fixes #64

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-16 20:33:30 +00:00
Brendan Le Foll
4d8b82eedb gpio.c: styling, avoid bracketless if statements
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-15 16:23:18 +00:00
Brendan Le Foll
875c48cd04 contributing.md: Add developer certificate of origin stuff
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-15 16:23:18 +00:00
Brendan Le Foll
71118af233 mraa.c: do not check return value of mraa_gpio_dir when used on muxes
Doing so breaks galileo gen2 (gpio2) and others. Failing early is rather
pointless in any case so we may as well attempt the write, muxes do not
neccesarily have directions that work

Fixes #68

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-15 11:50:54 +00:00
Thomas Ingleby
f7256f1d5b x86/galileo-gen2: correct SPI MOSI mux info
Fixes #67

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-12-12 20:41:00 +00:00
Thomas Ingleby
f6a05b128d x86/edison: only toggle tristate on physical pins
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-12-12 12:25:29 +00:00
Thomas Ingleby
f277e7d35a doc/spi: correct description of SPI
SPI is not System Package Interface

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-12-11 15:23:25 +00:00
Brendan Le Foll
4944f42d9a intel_edison_fab_c.c: ignore failed tristate writes when doing direction set
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-11 10:50:57 +00:00
Brendan Le Foll
643bb99892 mraa.c: fix error handling & leak in mraa_setup_mux_mapped
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-10 15:38:14 +00:00
Brendan Le Foll
da15fdb6da binding.gyp.cmake: fix architecture name for 32bit x86
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-10 14:52:23 +00:00
Brendan Le Foll
0c086d8540 mraa.i: remove comments breaking builds with SWIG 3.0.3
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-10 11:06:13 +00:00
Brendan Le Foll
2c5e749c2c binding.gyp.cmake: define *PLAT based on target_platform
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-09 18:39:21 +00:00
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
71913b96f4 docs: add Raspberry Pi ref to docs/index.md
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-12-08 16:07:26 +00:00
Thomas Ingleby
86a71d834e raspberry pi: add doc for model b
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-12-08 16:07:26 +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
8f1c542d5d common.h: move functions from types.h
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-02 23:19:54 +00:00
Brendan Le Foll
261f04f94d types.h: Move mraa_pinmodes_t to types.h
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-02 23:18:20 +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
eb3f2b5bed mraa: update to version 0.5.4
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-02 11:01:23 +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