Jakub Kramarz
8e2ec01b61
raspberry_pi.md: fixed Raspberry Pi model 2 pin mapping docs
...
It weren't rendered correctly by Github in previous version, also the header was missing.
Signed-off-by: Jakub Kramarz <jakub@hackerspace-krk.pl >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-05-06 14:54:05 +01:00
Jakub Kramarz
f86703d7bb
java: added example GpioRead6 based on gpio_read6.c
...
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-29 09:53:32 +01:00
Jakub Kramarz
609e9fb102
java: added example BlinkOnboard based on blink_onboard.c
...
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-29 09:53:31 +01:00
Jakub Kramarz
ddff33280e
java: added example CyclePwm3 based on cycle-pwm3.c
...
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-29 09:53:31 +01:00
Jakub Kramarz
472b1c1370
java: capitalized file names of examples, required on case-sensitive systems
...
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-29 09:50:32 +01:00
Paul Barrette
f6e87f63e0
raspberry_pi.c: update platform check for the PI 2 Version B
...
The latest Raspberry Pi 2 revision string is missing from the discovery
function mraa_raspberry_pi() and results in incorrect pin mapping defaulting to
PI_B Rev 1.
Signed-off-by: Paul Barrette <paul.barrette@windriver.com >
Signed-off-by: Paul Barrette <paulbarrette@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-27 10:48:24 +01:00
Brendan Le Foll
2679a916be
gpio.c: mraa_gpio_get_* now return -1 in error cases
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-24 16:07:17 +01:00
Brendan Le Foll
0b382100d2
mraa-gpio.c: fix unused printf argument
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-24 16:05:12 +01:00
Alexander Komarov
4302f0d0c3
java: Added Java SWIG binding creation
...
%init directive is not supported in java so move %init to js/py interface files
Signed-off-by: Alexander Komarov <alexander.komarov@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-24 12:12:11 +01:00
Brendan Le Foll
c5780dceaa
edison.md: add comment on tristate behaviour on edison
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-22 12:51:56 +01:00
Ian Johnson
ff2ce93fc9
Added table for RPi 2 and RPi B+. Also deleted whitespace in first table.
...
Signed-off-by: Ian Johnson <person.uwsome@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-22 09:21:19 +01:00
Brendan Le Foll
8ffdf2ff94
edison.md: add wifi on pin7 warning
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-21 10:00:27 +01:00
Thomas Ingleby
a17e8dbd21
mraa: update to version 0.6.2
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-04-14 15:18:11 +01:00
Michael Ring
0093dc3f0d
beaglebone.md: Added documentation for Beaglebone Black
...
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-09 16:45:22 +01:00
Brendan Le Foll
c69a022d13
docs: add bananapi links and BBB reference
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-08 22:28:04 +01:00
Michael Ring
b2af0b0751
banana_pi.md: Added documentation for BananaPi/Pro
...
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-08 22:19:15 +01:00
Michael Ring
0d15d3a38c
banana.c: Fixed Pin assignment for Banana Pi and wrong names for SPI devices
...
Signed-off-by: Michael Ring <michael.ring@swisscom.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-08 22:19:14 +01:00
Michael Ring
095ff894a7
mraa.c: Remove mraa_init() from mraa_pin_mode_test
...
If platform is not initalised at this stage then there is no need to attempt
again
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-08 22:19:14 +01:00
Michael Ring
56ba08a98f
banana: Add bananapi support
...
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-08 22:19:14 +01:00
Michael Ring
bff7b558eb
mraa.c: Add _contains helper functions
...
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-08 22:19:14 +01:00
Brendan Le Foll
68e216ec3f
mraa_internal.h: clean header style
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-08 22:19:14 +01:00
Michael Ring
d2fcadc8d5
mraa.c: change helper functions to use const char*
...
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-08 22:19:14 +01:00
Brendan Le Foll
4d36d24a70
testing.md: add testing doc
...
Doc is partly from Costin's original README and include details on the ctest
infrastructure and how to use
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-07 23:52:43 +01:00
Brendan Le Foll
4599f3c12a
tests: add cmake ctest infrastructure so make test can run
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-07 23:52:39 +01:00
Costin Constantin
8cc957ac64
tests: add python test cases suite
...
Currently only galileo is supported. This commit removes the old GTEST stuff
and mraa_test.cxx which never did much
Signed-off-by: Costin Constantin <costin.c.constantin@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-07 23:42:58 +01:00
Brendan Le Foll
784ee58b26
building.md: add python3 & buildarch info
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-04 19:04:05 +01:00
Michael Ring
5dfd8e43df
examples/mraa-gpio.c: Fixed compiler warning due to missing include
...
Warning fixed is atoi not being defined when building on Fedora 22
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-04 17:53:20 +01:00
Michael Ring
d9d55e42bc
beaglebone.h: added Beaglebone Black Platform
...
src/arm/CMakeLists.txt added beaglebone.c as a dependency src/arm/arm.c added
initialization of beaglebone black platform src/arm/beaglebone.c mraa support
for the Beaglebone Black Rev B+C includes support for mmap access to gpio
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-04 17:29:24 +01:00
Michael Ring
d0c466e81c
mraa_adv_func.h: Added pwm initialization replace
...
current code in pwm does not work for beaglebone src/pwm/pwm.c Implemented
check for pwm_init_replace
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-04 17:29:24 +01:00
Brendan Le Foll
5fa47dd4ab
gpio.hpp: fix typo in docstring for isr
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-03 21:42:31 +01:00
Brendan Le Foll
2138802b59
docs: Improve python docs
...
This commit adds a bunch of includes from the C/C++ doxygen doc into the
sphinx/python doc to make it more useful. It also splits out the doc of the
classes using autoclass instead of autodoc to make it nicer to navigate.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-03 21:42:31 +01:00
Brendan Le Foll
6aa601cd1d
javascript/CMakeLists.txt: stop requiring doc_i files for node.js
...
These files are required when building docs for python but are never used for
the node.js module
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-02 14:01:06 +01:00
Brendan Le Foll
c397fef4a1
building.md: add graphviz to our deps
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-02 13:54:38 +01:00
Brendan Le Foll
eb894033c5
mraa.i: add idef for SWIGPYTHON on doc interface files
...
This fixes compilation of node.js module with doxygen
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-02 13:51:00 +01:00
Brendan Le Foll
8ad5064ce2
buidling.md: fix missing D in BUILDOC define
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-02 13:38:39 +01:00
Thomas Ingleby
874d69e9e5
Cmake: add override BUILDARCH for selecting arch
...
Stops TargetArch module for running and finding the arch
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-03-31 16:34:41 +01:00
Henry Bruce
a1c5bd8742
CMakeLists.txt: Added option to install mraa-gpio tool
...
This commit renames gpio.c to mraa-gpio.c to make installation in bin/ less
annoying
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-31 13:56:29 +01:00
Henry Bruce
2b8b28171b
CMakeLists.txt: Set correct package architecture for deb and ipk.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-31 13:56:29 +01:00
Brendan Le Foll
1b6af99c5a
building.md: clarify build reqs for building and add node 0.12
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-29 15:45:36 +01:00
Thomas Ingleby
8f239579a4
docs/building: add doxygen information
...
Also Sphinx version
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-03-27 16:33:20 +00:00
Thomas Ingleby
be4312e506
pwm: add syslog warning when value greater than 100% used
...
Resolves #121
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-03-24 16:51:56 +00:00
Thomas Ingleby
64f962d15c
pwm: add calls for getting PWM max and min period
...
Resolves #176
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-03-24 16:48:06 +00:00
Thomas Ingleby
52c53760b2
api: introduce define for pin name size
...
MRAA_PIN_NAME_SIZE currently set at 12.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-03-23 17:25:27 +00:00
Thomas Ingleby
2388fb9a2a
swig/python: rename python-mraa.i to mraa.i
...
Seemed to be a problem when generating python swig module when using
cmake version 3.2.1
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-03-23 17:07:54 +00:00
Brendan Le Foll
ffcf3d7d07
clang-format: run clang-format on C/C++ code
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-23 15:15:48 +00:00
Brendan Le Foll
2174ee1673
package.json.cmake: use 0.10.x is the minimum version to compile
...
Note that if you compile a 0.12.x version it'll still have 0.10.x as a min req
but will likely not work with a 0.10.x interpreter
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-19 18:26:06 +00:00
Brendan Le Foll
c1ac6f1928
binding.gyp.cmake: get v8 version from node and export to c++ compiler
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-19 18:26:06 +00:00
Brendan Le Foll
35d1dc10c7
mraajs.i: use SWIG_V8_VERSION from C++ preprocessor not swig
...
SWIG's preprocessor will not handle the SWIG_V8_VERSION these will go in the
wrapper code so that someone compiling with npm will use his version of node
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-19 18:26:06 +00:00
Brendan Le Foll
54a4a0bb1f
npm.md: add npm node-gyp build instructions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-19 18:26:06 +00:00
Brendan Le Foll
f0b3035337
package.json.cmake: create node version specific package.json
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-19 18:26:05 +00:00