Brendan Le Foll [Mon, 1 Jun 2015 14:23:43 +0000 (15:23 +0100)]
cmake: add FindYuidoc.cmake module
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 14:23:28 +0000 (15:23 +0100)]
doxygen2jsdoc: add custom typemap file
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 14:14:19 +0000 (15:14 +0100)]
.gitignore: add .swo tmp files
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 14:17:05 +0000 (15:17 +0100)]
contributing.md: add notes on cmakelist coding style
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 14:16:42 +0000 (15:16 +0100)]
cmake: add yuidoc documentation generation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 14:13:49 +0000 (15:13 +0100)]
doxygen2jsdoc: add submodule
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jon Trulson [Mon, 1 Jun 2015 01:00:07 +0000 (19:00 -0600)]
uart: fix missing inversion that will clear all other flags
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 09:58:10 +0000 (10:58 +0100)]
uart: move string funcs to {read,write}Str
This commit adds raw binary read/write functions using the same typemaps as I2c
functions
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 09:56:46 +0000 (10:56 +0100)]
spi.hpp: mraa_spi_write_buf_word cannot be used from SWIG bindings
In order for this to work we need to provide a typemap for it
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 09:54:40 +0000 (10:54 +0100)]
uart: make mraa_uart_get_dev_path return const char*
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 08:36:00 +0000 (09:36 +0100)]
uart: Make C API use const where appropriate
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 08:32:44 +0000 (09:32 +0100)]
uart.hpp: Use std::string constructor which lets use set a size parameter
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 1 Jun 2015 08:32:14 +0000 (09:32 +0100)]
uart.hpp: trust c_str() instead of making copies
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 29 May 2015 13:56:48 +0000 (14:56 +0100)]
mraa: update to version 0.7.0
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Tue, 26 May 2015 16:07:15 +0000 (17:07 +0100)]
uart: update C++ API
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Tue, 26 May 2015 14:46:48 +0000 (15:46 +0100)]
uart: update C API
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Fri, 22 May 2015 13:06:05 +0000 (14:06 +0100)]
uart: bunch of small changes to make C api work
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 20 May 2015 14:04:59 +0000 (15:04 +0100)]
uart.c: add missing return values
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Tue, 19 May 2015 10:22:08 +0000 (11:22 +0100)]
uart: change hpp, use new names of functions
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Mon, 18 May 2015 20:13:06 +0000 (21:13 +0100)]
uart: remove un-needed includes from uart.h
No need for many included
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Mon, 18 May 2015 20:01:56 +0000 (21:01 +0100)]
uart: move internal static function to top of file
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Fri, 8 May 2015 16:23:10 +0000 (17:23 +0100)]
uart: make initial dump of uart module
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jon Trulson [Thu, 30 Apr 2015 20:12:45 +0000 (14:12 -0600)]
uart: use an unsigned int for baud rate rather than speed_t
uart.c contains a static conversion function that will translate known
baud rates into their speed_t counter parts. If an unsupported baud
rate is selected, a diagnostic will be emitted via syslog and a
default of B9600 will be chosen.
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jon Trulson [Wed, 29 Apr 2015 22:13:07 +0000 (16:13 -0600)]
uart: add capability to check if data can be read from device
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jon Trulson [Wed, 29 Apr 2015 22:08:36 +0000 (16:08 -0600)]
uart: add uart device read and write functionality
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jon Trulson [Wed, 29 Apr 2015 22:03:53 +0000 (16:03 -0600)]
uart: add uart device open and close functionality
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jon Trulson [Wed, 29 Apr 2015 21:51:07 +0000 (15:51 -0600)]
uart: add fd (file descriptor) to uart context
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Henry Bruce [Fri, 22 May 2015 21:49:08 +0000 (14:49 -0700)]
CMakeLists.txt: Added RPM packaging support for cpack
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 20 May 2015 10:16:15 +0000 (11:16 +0100)]
mraajs.i: add buffer checks to python write() typemaps in Spi & I2c
Previously anything passed to an I2c::write() or Spi::write() function in
node.js that wasn't a node::Buffer or an object would likely cause a segfault
later on during future calls. This change calls node::Buffer::HasInstance(obj)
to make sure the buffer is valid prior to grabbing it's data
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jakub Kramarz [Wed, 6 May 2015 00:36:36 +0000 (02:36 +0200)]
edison.md: minor fixes in Edison boards docs
Some typo, letter case and formatting fixes.
Signed-off-by: Jakub Kramarz <jakub@hackerspace-krk.pl>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Jakub Kramarz [Tue, 5 May 2015 23:39:13 +0000 (01:39 +0200)]
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>
Jakub Kramarz [Wed, 29 Apr 2015 00:06:34 +0000 (02:06 +0200)]
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>
Jakub Kramarz [Tue, 28 Apr 2015 23:52:02 +0000 (01:52 +0200)]
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>
Jakub Kramarz [Tue, 28 Apr 2015 23:23:45 +0000 (01:23 +0200)]
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>
Jakub Kramarz [Tue, 28 Apr 2015 20:39:19 +0000 (22:39 +0200)]
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>
Paul Barrette [Sun, 26 Apr 2015 03:13:57 +0000 (04:13 +0100)]
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>
Brendan Le Foll [Fri, 24 Apr 2015 15:07:17 +0000 (16:07 +0100)]
gpio.c: mraa_gpio_get_* now return -1 in error cases
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 24 Apr 2015 15:05:12 +0000 (16:05 +0100)]
mraa-gpio.c: fix unused printf argument
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Alexander Komarov [Mon, 13 Apr 2015 13:23:13 +0000 (13:23 +0000)]
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>
Brendan Le Foll [Wed, 15 Apr 2015 20:05:16 +0000 (21:05 +0100)]
edison.md: add comment on tristate behaviour on edison
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Ian Johnson [Sat, 18 Apr 2015 16:11:26 +0000 (11:11 -0500)]
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>
Brendan Le Foll [Tue, 21 Apr 2015 09:00:27 +0000 (10:00 +0100)]
edison.md: add wifi on pin7 warning
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Tue, 14 Apr 2015 14:18:11 +0000 (15:18 +0100)]
mraa: update to version 0.6.2
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Michael Ring [Thu, 9 Apr 2015 14:23:37 +0000 (16:23 +0200)]
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>
Brendan Le Foll [Wed, 8 Apr 2015 21:18:36 +0000 (22:18 +0100)]
docs: add bananapi links and BBB reference
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Michael Ring [Wed, 8 Apr 2015 14:21:16 +0000 (16:21 +0200)]
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>
Michael Ring [Tue, 7 Apr 2015 20:42:23 +0000 (22:42 +0200)]
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>
Michael Ring [Sat, 4 Apr 2015 17:27:44 +0000 (18:27 +0100)]
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>
Michael Ring [Tue, 31 Mar 2015 20:44:55 +0000 (22:44 +0200)]
banana: Add bananapi support
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Michael Ring [Sat, 4 Apr 2015 17:52:35 +0000 (18:52 +0100)]
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>
Brendan Le Foll [Sat, 4 Apr 2015 17:50:23 +0000 (18:50 +0100)]
mraa_internal.h: clean header style
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Michael Ring [Sat, 4 Apr 2015 17:41:13 +0000 (18:41 +0100)]
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>
Brendan Le Foll [Tue, 7 Apr 2015 22:32:47 +0000 (23:32 +0100)]
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>
Brendan Le Foll [Tue, 7 Apr 2015 22:38:48 +0000 (23:38 +0100)]
tests: add cmake ctest infrastructure so `make test` can run
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Costin Constantin [Tue, 7 Apr 2015 14:02:27 +0000 (17:02 +0300)]
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>
Brendan Le Foll [Sat, 4 Apr 2015 18:04:05 +0000 (19:04 +0100)]
building.md: add python3 & buildarch info
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Michael Ring [Tue, 31 Mar 2015 20:36:37 +0000 (22:36 +0200)]
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>
Michael Ring [Sat, 21 Feb 2015 15:30:09 +0000 (16:30 +0100)]
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>
Michael Ring [Sat, 21 Feb 2015 15:27:13 +0000 (16:27 +0100)]
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>
Brendan Le Foll [Fri, 3 Apr 2015 20:40:44 +0000 (21:40 +0100)]
gpio.hpp: fix typo in docstring for isr
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 3 Apr 2015 18:41:52 +0000 (19:41 +0100)]
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>
Brendan Le Foll [Thu, 2 Apr 2015 13:01:05 +0000 (14:01 +0100)]
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>
Brendan Le Foll [Thu, 2 Apr 2015 12:54:38 +0000 (13:54 +0100)]
building.md: add graphviz to our deps
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 2 Apr 2015 12:50:59 +0000 (13:50 +0100)]
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>
Brendan Le Foll [Thu, 2 Apr 2015 12:38:29 +0000 (13:38 +0100)]
buidling.md: fix missing D in BUILDOC define
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Tue, 31 Mar 2015 15:34:41 +0000 (16:34 +0100)]
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>
Henry Bruce [Tue, 31 Mar 2015 12:54:10 +0000 (13:54 +0100)]
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>
Henry Bruce [Wed, 11 Mar 2015 19:43:47 +0000 (12:43 -0700)]
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>
Brendan Le Foll [Sun, 29 Mar 2015 14:45:36 +0000 (15:45 +0100)]
building.md: clarify build reqs for building and add node 0.12
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Fri, 27 Mar 2015 16:30:25 +0000 (16:30 +0000)]
docs/building: add doxygen information
Also Sphinx version
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Tue, 24 Mar 2015 16:51:56 +0000 (16:51 +0000)]
pwm: add syslog warning when value greater than 100% used
Resolves #121
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Tue, 24 Mar 2015 16:48:06 +0000 (16:48 +0000)]
pwm: add calls for getting PWM max and min period
Resolves #176
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Mon, 23 Mar 2015 17:25:27 +0000 (17:25 +0000)]
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>
Thomas Ingleby [Mon, 23 Mar 2015 17:07:54 +0000 (17:07 +0000)]
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>
Brendan Le Foll [Mon, 23 Mar 2015 14:39:12 +0000 (14:39 +0000)]
clang-format: run clang-format on C/C++ code
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 19 Mar 2015 18:24:29 +0000 (18:24 +0000)]
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>
Brendan Le Foll [Thu, 19 Mar 2015 18:20:36 +0000 (18:20 +0000)]
binding.gyp.cmake: get v8 version from node and export to c++ compiler
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 19 Mar 2015 18:18:35 +0000 (18:18 +0000)]
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>
Brendan Le Foll [Thu, 19 Mar 2015 18:16:27 +0000 (18:16 +0000)]
npm.md: add npm node-gyp build instructions
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 19 Mar 2015 11:54:58 +0000 (11:54 +0000)]
package.json.cmake: create node version specific package.json
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 19 Mar 2015 11:31:51 +0000 (11:31 +0000)]
src/CMakeLists.txt: warn if swig is less than 3.0.5
The SWIG js module cannot build on SWIG 2.x, it also now requires macros
defined in SWIG 3.0.4 and above but there are python issues in everything
3.0.2-3.0.4 so we force a requirement on 3.0.5 and above
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 19 Mar 2015 11:31:20 +0000 (11:31 +0000)]
CMakeLists.txt: add REQUIRED to threading find_package
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 18 Mar 2015 12:20:54 +0000 (12:20 +0000)]
nodejs: add infra to detect nodejs version
This introduces FindNodes.cmake which finds the v8 version and the nodejs
interp version and passes the information to SWIG via SWIG_V8_VERSION
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 10 Mar 2015 14:53:09 +0000 (14:53 +0000)]
mraajs: update for node.js 0.12 API differences
This requires setting #define SWIG_V8_VERSION 0x032873 in the
mraajsJAVASCRIPT_wrap.cxx file. Note most v8 APIs now require v8::Isolate and
v8::Persistent is no longer a v8::Handle so the gpio.hpp for ISR support is
also modified by this change
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 19 Mar 2015 09:29:41 +0000 (09:29 +0000)]
common: fix documentation string on mraa_init
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Michael Ring [Wed, 18 Mar 2015 19:48:14 +0000 (20:48 +0100)]
examples/gpio: Re-implemented the display of pin names
Re-introduced AIO Pins
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Michael Ring [Wed, 18 Mar 2015 19:48:14 +0000 (20:48 +0100)]
internal/pin/name: increase length of pin name
From 8 to 12 array size
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Michael Ring [Wed, 18 Mar 2015 19:48:14 +0000 (20:48 +0100)]
api/mraa: add mraa_get_pin_name
Add mraa_get_pin_name to get the real world name of the pin.
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Kevron Rees [Sun, 1 Mar 2015 02:08:50 +0000 (18:08 -0800)]
python: build with python 2.7 in the correct python site dir
This commit also introduces BUILDPYTHON3 option, by default mraa will look for
a python 2 installation
Signed-off-by: Kevron Rees <tripzero.kev@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Sun, 15 Mar 2015 18:51:23 +0000 (18:51 +0000)]
CPack IPK: remove maa replace reference
It seems way past time to now remove the reference to the old name
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Fri, 13 Mar 2015 16:29:33 +0000 (16:29 +0000)]
intel_minnow_max.c: Add support for spi
This commit also adds a bit of documentation on the low speed spi kernel module
required
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 13 Mar 2015 16:01:59 +0000 (16:01 +0000)]
i2c: flip the msg flags for mraa_i2c_read_bytes_data
Fixes 168.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Gabriel Smith [Tue, 3 Mar 2015 16:31:47 +0000 (16:31 +0000)]
i2c.hpp: Remove tab
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Gabriel Smith [Tue, 3 Mar 2015 16:26:19 +0000 (16:26 +0000)]
i2c: Add functions for bulk read from register
Functions issue a write command for the register to read from and then a read
command without a stop signal in between
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 3 Mar 2015 16:20:29 +0000 (16:20 +0000)]
spi: return int instead of uint8_t in mraa_spi_write
This stops the error code getting lost since -1 wraps around to 0xFF when cast
to a uint8_t. This fixes #146
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 3 Mar 2015 14:27:54 +0000 (14:27 +0000)]
intel_edison_fab_c.c: let the edison spi driver select the correct method for CS
Gpio 111 controls the use of hardware CS by the edison kernel's SPI driver.
This is an issue as that CS will go high between every byte transmitted. The
solution is to let gpio 111 alone and let the driver decide what is best. This
fixes #137
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Sun, 1 Mar 2015 17:31:17 +0000 (17:31 +0000)]
README.md: add -dev repository information
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Sun, 1 Mar 2015 17:15:19 +0000 (17:15 +0000)]
intel_edison_fab_c.c: Fix frequency setting on edison r2 images
This reworks the mraa_intel_edison_i2c_freq() function. i2c_dw_sysnode is a
folder not a file so we need to grab the mode file from that folder. We now
also support i2c-1 frequency changing
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Michael Ring [Sat, 21 Feb 2015 11:31:48 +0000 (12:31 +0100)]
raspberry_pi.c: Wrong pin number used for Raspberry Pi in default case
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Sun, 1 Mar 2015 10:22:13 +0000 (10:22 +0000)]
mraa.c: stop C constructor calling mraa_init() in SWIG builds
Closes #65
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>