contrib/mraa.git
9 years agomraa: update to version 0.4.5 v0.4.5
Brendan Le Foll [Wed, 3 Sep 2014 08:34:30 +0000 (09:34 +0100)]
mraa: update to version 0.4.5

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agodocs: remove references to C++ as docstrings used by sphinx
Brendan Le Foll [Wed, 3 Sep 2014 08:33:20 +0000 (09:33 +0100)]
docs: remove references to C++ as docstrings used by sphinx

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agouart: add C++ Uart module and links to swig
Brendan Le Foll [Wed, 3 Sep 2014 08:30:49 +0000 (09:30 +0100)]
uart: add C++ Uart module and links to swig

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agogen 2: add hook for handling modes for gpio
Thomas Ingleby [Tue, 2 Sep 2014 13:45:28 +0000 (14:45 +0100)]
gen 2: add hook for handling modes for gpio

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agodocs: add references to galileo generation
Brendan Le Foll [Mon, 1 Sep 2014 22:19:24 +0000 (23:19 +0100)]
docs: add references to galileo generation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agocommon.hpp: fix documentation of functions
Brendan Le Foll [Mon, 1 Sep 2014 22:17:44 +0000 (23:17 +0100)]
common.hpp: fix documentation of functions

Functions inside namespace are tough to document, bypassing this by documenting
the namespace and then using the namespace doc as common.hpp doc in the index

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agopwm: add config_ms and config_percent.
Mark Ceisel [Mon, 1 Sep 2014 11:18:01 +0000 (12:18 +0100)]
pwm: add config_ms and config_percent.

* Allows user to set both at the same time. Will reset to previous if
* period for duty cycle fails to write

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agopwm: rename internal functions from get to read
Thomas Ingleby [Mon, 1 Sep 2014 10:30:58 +0000 (11:30 +0100)]
pwm: rename internal functions from get to read

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agospi: if platform has one spidev, defaults to it.
Thomas Ingleby [Tue, 26 Aug 2014 12:55:58 +0000 (13:55 +0100)]
spi: if platform has one spidev, defaults to it.

* Removes complexity on some platforms.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa: update to version 0.4.4 v0.4.4
Brendan Le Foll [Fri, 15 Aug 2014 09:58:40 +0000 (10:58 +0100)]
mraa: update to version 0.4.4

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agojavascript: added basic examples to mraa
Dan Yocom [Thu, 14 Aug 2014 19:16:23 +0000 (15:16 -0400)]
javascript: added basic examples to mraa

Signed-off-by: Dan Yocom <dan.yocom@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agocommon.hpp: add ADC bitness calls to C++ api
Brendan Le Foll [Thu, 14 Aug 2014 13:21:03 +0000 (14:21 +0100)]
common.hpp: add ADC bitness calls to C++ api

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoREADME.md: add repo instructions
Brendan Le Foll [Thu, 14 Aug 2014 10:40:34 +0000 (11:40 +0100)]
README.md: add repo instructions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoREADME.md: improve github front page doc
Brendan Le Foll [Thu, 14 Aug 2014 10:27:22 +0000 (11:27 +0100)]
README.md: improve github front page doc

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agodocs: Fixed typos
izard [Sat, 19 Jul 2014 12:38:41 +0000 (12:38 +0000)]
docs: Fixed typos

Signed-off-by: izard <alexander.komarov@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agodocs: add supported platforms
Brendan Le Foll [Tue, 12 Aug 2014 16:16:10 +0000 (17:16 +0100)]
docs: add supported platforms

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agospi: prefix SPI mode with MRAA_SPI_
Brendan Le Foll [Fri, 8 Aug 2014 08:32:28 +0000 (09:32 +0100)]
spi: prefix SPI mode with MRAA_SPI_

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomraa: update to version 0.4.3 v0.4.3
Thomas Ingleby [Wed, 6 Aug 2014 15:22:47 +0000 (16:22 +0100)]
mraa: update to version 0.4.3

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agospi: added spi mode to mraa
Kiveisha Yevgeniy [Wed, 6 Aug 2014 11:40:51 +0000 (11:40 +0000)]
spi: added spi mode to mraa

Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
9 years agoexample.rst: improve and fill out python documentation
Brendan Le Foll [Tue, 5 Aug 2014 09:58:16 +0000 (10:58 +0100)]
example.rst: improve and fill out python documentation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c_HMC5883.py: add python I2c.read() example
Brendan Le Foll [Tue, 5 Aug 2014 09:44:43 +0000 (10:44 +0100)]
i2c_HMC5883.py: add python I2c.read() example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c.hpp: new read() variant that returns terminated std::string
Brendan Le Foll [Tue, 5 Aug 2014 09:18:14 +0000 (10:18 +0100)]
i2c.hpp: new read() variant that returns terminated std::string

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomraa.c: fclose on NULL fp can segfault on some platforms
Brendan Le Foll [Fri, 1 Aug 2014 09:36:10 +0000 (11:36 +0200)]
mraa.c: fclose on NULL fp can segfault on some platforms

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agosphinx: update python module documentation to reflect latest changes
Brendan Le Foll [Thu, 31 Jul 2014 08:25:24 +0000 (10:25 +0200)]
sphinx: update python module documentation to reflect latest changes

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c.hpp: add read(size_t length) function useful in scripting languages
Brendan Le Foll [Thu, 31 Jul 2014 08:14:57 +0000 (10:14 +0200)]
i2c.hpp: add read(size_t length) function useful in scripting languages

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c.hpp: overload read() function, this renames readByte
Brendan Le Foll [Thu, 31 Jul 2014 08:14:22 +0000 (10:14 +0200)]
i2c.hpp: overload read() function, this renames readByte

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c_HMC5883.py: add i2c read & write example
Brendan Le Foll [Tue, 29 Jul 2014 14:02:42 +0000 (16:02 +0200)]
i2c_HMC5883.py: add i2c read & write example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agorgblcd.py: fix example to use 0xFF and not 0x255 which is out of bounds
Brendan Le Foll [Tue, 29 Jul 2014 10:16:27 +0000 (12:16 +0200)]
rgblcd.py: fix example to use 0xFF and not 0x255 which is out of bounds

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agospi.c: destructor now freeing memory
Brendan Le Foll [Mon, 28 Jul 2014 14:40:55 +0000 (16:40 +0200)]
spi.c: destructor now freeing memory

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agogpio.c: close fd in mmap function
Brendan Le Foll [Mon, 28 Jul 2014 14:39:00 +0000 (16:39 +0200)]
gpio.c: close fd in mmap function

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agogen2: fix typo on A5 GPIO pinmap
Thomas Ingleby [Fri, 25 Jul 2014 01:56:14 +0000 (02:56 +0100)]
gen2: fix typo on A5 GPIO pinmap

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agogalileorevh.md: add initial revH doc
Brendan Le Foll [Thu, 24 Jul 2014 15:59:53 +0000 (16:59 +0100)]
galileorevh.md: add initial revH doc

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agocycle-pwm3.py: make example use real pin3 and make work on gen2
Brendan Le Foll [Thu, 24 Jul 2014 14:17:11 +0000 (15:17 +0100)]
cycle-pwm3.py: make example use real pin3 and make work on gen2

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoGalileo Gen2: add replace hook for pwm period
Thomas Ingleby [Thu, 24 Jul 2014 13:25:41 +0000 (14:25 +0100)]
Galileo Gen2: add replace hook for pwm period

* Warning, doing a period call on the gen2 will change it for all pwm
* channels and temporarily disable them whilst doing it.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agopwm: move internal context structure to internal header
Thomas Ingleby [Thu, 24 Jul 2014 13:21:06 +0000 (14:21 +0100)]
pwm: move internal context structure to internal header

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agopwm: add period write replace hook
Thomas Ingleby [Thu, 24 Jul 2014 13:20:01 +0000 (14:20 +0100)]
pwm: add period write replace hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agocycle-pwm3.py: fix example
Brendan Le Foll [Thu, 24 Jul 2014 09:10:04 +0000 (10:10 +0100)]
cycle-pwm3.py: fix example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomraa: update to version 0.4.2 v0.4.2
Thomas Ingleby [Mon, 14 Jul 2014 17:31:03 +0000 (18:31 +0100)]
mraa: update to version 0.4.2

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agogpio: remove printf's, change init-post hook
Thomas Ingleby [Mon, 14 Jul 2014 17:25:40 +0000 (18:25 +0100)]
gpio: remove printf's, change init-post hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agointel_galileo_rev_g: make gpio on i2c pins go hiz
Thomas Ingleby [Mon, 14 Jul 2014 17:19:26 +0000 (18:19 +0100)]
intel_galileo_rev_g: make gpio on i2c pins go hiz

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoi2c: add init(pre-post) hooks
Thomas Ingleby [Mon, 14 Jul 2014 17:19:07 +0000 (18:19 +0100)]
i2c: add init(pre-post) hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoi2c: internal structure to mraa_internal_types
Thomas Ingleby [Mon, 14 Jul 2014 16:52:08 +0000 (17:52 +0100)]
i2c: internal structure to mraa_internal_types

* For use in hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoi2c: add Brendan's email to header
Thomas Ingleby [Mon, 14 Jul 2014 16:49:31 +0000 (17:49 +0100)]
i2c: add Brendan's email to header

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agointel_galileo_rev_g: remove platform code from core
Thomas Ingleby [Mon, 14 Jul 2014 16:46:18 +0000 (17:46 +0100)]
intel_galileo_rev_g: remove platform code from core

* Using hook functionality swap_complex is now done in the pre direction
* set area.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa: make platform info more available internally
Thomas Ingleby [Mon, 14 Jul 2014 15:56:12 +0000 (16:56 +0100)]
mraa: make platform info more available internally

* available with mraa_internal header

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agohook: change structure to pointer
Thomas Ingleby [Mon, 14 Jul 2014 14:21:28 +0000 (15:21 +0100)]
hook: change structure to pointer

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa: rename internal adv func mraa_adv_func_t
Thomas Ingleby [Mon, 14 Jul 2014 14:12:08 +0000 (15:12 +0100)]
mraa: rename internal adv func mraa_adv_func_t

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoi2c.c: add newlines at the end of all error msgs
Brendan Le Foll [Fri, 11 Jul 2014 13:47:52 +0000 (14:47 +0100)]
i2c.c: add newlines at the end of all error msgs

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agohook: items lost in merge, missing adv items.
Thomas Ingleby [Fri, 11 Jul 2014 11:02:40 +0000 (12:02 +0100)]
hook: items lost in merge, missing adv items.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoMerge branch 'hook'
Thomas Ingleby [Fri, 11 Jul 2014 10:56:45 +0000 (11:56 +0100)]
Merge branch 'hook'

Conflicts:
include/intel_galileo_rev_d.h
include/intel_galileo_rev_g.h
include/mraa_adv_func.h
include/mraa_internal.h
src/gpio/gpio.c
src/mraa.c

9 years agohook: change header of board definition, add internal
Thomas Ingleby [Fri, 11 Jul 2014 10:41:14 +0000 (11:41 +0100)]
hook: change header of board definition, add internal

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agohook: rename from declared struct to adance_func
Thomas Ingleby [Thu, 10 Jul 2014 21:19:00 +0000 (22:19 +0100)]
hook: rename from declared struct to adance_func

* Removed bitfield, now checks if pointer NULL.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa_internal: add extern "C" to internal headers
Brendan Le Foll [Thu, 10 Jul 2014 21:08:05 +0000 (22:08 +0100)]
mraa_internal: add extern "C" to internal headers

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agocmake: add -fno-omit-frame-pointer to CXX Debug flags
Brendan Le Foll [Thu, 10 Jul 2014 21:03:11 +0000 (22:03 +0100)]
cmake: add -fno-omit-frame-pointer to CXX Debug flags

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agouart_setup: add example on current uart use.
Thomas Ingleby [Thu, 10 Jul 2014 00:25:20 +0000 (01:25 +0100)]
uart_setup: add example on current uart use.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agointel_galileo_rev_d: add uart definitions.
Thomas Ingleby [Thu, 10 Jul 2014 00:14:24 +0000 (01:14 +0100)]
intel_galileo_rev_d: add uart definitions.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agouart: barebones uart module added.
Thomas Ingleby [Wed, 9 Jul 2014 23:55:50 +0000 (00:55 +0100)]
uart: barebones uart module added.

* Only defined call is the init. Will then expose the uart from
* the multiplexors.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa: update to version 0.4.1 v0.4.1
Brendan Le Foll [Fri, 4 Jul 2014 14:56:40 +0000 (15:56 +0100)]
mraa: update to version 0.4.1

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoBlink-IO.cpp: use mraa_result_t instead of int
Brendan Le Foll [Fri, 4 Jul 2014 14:49:07 +0000 (15:49 +0100)]
Blink-IO.cpp: use mraa_result_t instead of int

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agocommon.hpp: use common.hpp instead of renaming C functions in interface
Brendan Le Foll [Fri, 4 Jul 2014 14:42:04 +0000 (15:42 +0100)]
common.hpp: use common.hpp instead of renaming C functions in interface

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoblink_onboard.c: add missing newline char
Brendan Le Foll [Thu, 3 Jul 2014 13:51:24 +0000 (14:51 +0100)]
blink_onboard.c: add missing newline char

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoCMakeLists.txt: update pymraa to python-mraa
Brendan Le Foll [Thu, 3 Jul 2014 13:39:23 +0000 (14:39 +0100)]
CMakeLists.txt: update pymraa to python-mraa

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agobuilding.md: Add details to swig version requirements for nodejs support. resolves #1
Brendan Le Foll [Thu, 3 Jul 2014 08:40:09 +0000 (09:40 +0100)]
building.md: Add details to swig version requirements for nodejs support. resolves #1

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agotypes.h: add missing asterix from comment.
Thomas Ingleby [Wed, 2 Jul 2014 16:10:59 +0000 (17:10 +0100)]
types.h: add missing asterix from comment.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa: add common hpp
Thomas Ingleby [Wed, 2 Jul 2014 16:09:34 +0000 (17:09 +0100)]
mraa: add common hpp

* Wraps some of the C functions that libmraa has into the mraa namespace
* Not included in swig bindings as of yet

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agointel_galileo_rev_g: add mmap IO on some pins.
Thomas Ingleby [Wed, 2 Jul 2014 12:40:14 +0000 (13:40 +0100)]
intel_galileo_rev_g: add mmap IO on some pins.

* enabled on, IO0,IO1,IO2,IO3,IO12

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agohook: remove hooks, move into branch.
Thomas Ingleby [Tue, 1 Jul 2014 17:29:06 +0000 (18:29 +0100)]
hook: remove hooks, move into branch.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa.i: remove mraaBuffer class
Brendan Le Foll [Tue, 1 Jul 2014 16:13:02 +0000 (17:13 +0100)]
mraa.i: remove mraaBuffer class

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomraa.c: stop ctor running in scripting languages
Brendan Le Foll [Tue, 1 Jul 2014 16:05:57 +0000 (17:05 +0100)]
mraa.c: stop ctor running in scripting languages

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomraa: add deinit function for valgrind testing
Brendan Le Foll [Tue, 1 Jul 2014 15:38:41 +0000 (16:38 +0100)]
mraa: add deinit function for valgrind testing

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agospi: update spi module to use char instead of unsigned char as return values
Brendan Le Foll [Tue, 1 Jul 2014 13:56:12 +0000 (14:56 +0100)]
spi: update spi module to use char instead of unsigned char as return values

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoI2c-compass.cpp: fix example to use char instead of uint8_t
Brendan Le Foll [Tue, 1 Jul 2014 13:55:47 +0000 (14:55 +0100)]
I2c-compass.cpp: fix example to use char instead of uint8_t

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c: allow binary strings as parameters to write() functions in scripting
Brendan Le Foll [Tue, 1 Jul 2014 12:51:03 +0000 (13:51 +0100)]
i2c: allow binary strings as parameters to write() functions in scripting

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agointel_galileo_rev_g: add GPIO support on 14-19
Thomas Ingleby [Mon, 30 Jun 2014 15:22:51 +0000 (16:22 +0100)]
intel_galileo_rev_g: add GPIO support on 14-19

* Please take care with using voltages around the ADC

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa: update description of libmraa
Brendan Le Foll [Mon, 30 Jun 2014 10:49:06 +0000 (11:49 +0100)]
mraa: update description of libmraa

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agointel_galileo_rev_g: change enable pin for SPI MISO
Thomas Ingleby [Mon, 30 Jun 2014 10:10:28 +0000 (11:10 +0100)]
intel_galileo_rev_g: change enable pin for SPI MISO

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agodoc: fix formatting on platform-hooks
Thomas Ingleby [Fri, 27 Jun 2014 14:46:51 +0000 (15:46 +0100)]
doc: fix formatting on platform-hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa: initial implementation of "hooks"
Thomas Ingleby [Fri, 27 Jun 2014 14:37:48 +0000 (15:37 +0100)]
mraa: initial implementation of "hooks"

* Should allow for more platform quirks to be handled by mraa without
* massive conditional areas per platform.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agointel_galileo_rev_g: fix pwm on IO5
Thomas Ingleby [Thu, 26 Jun 2014 17:55:38 +0000 (18:55 +0100)]
intel_galileo_rev_g: fix pwm on IO5

* Incorrect mapping.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agogpio: remove direction error printing
Thomas Ingleby [Thu, 26 Jun 2014 17:34:29 +0000 (18:34 +0100)]
gpio: remove direction error printing

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoblink_onboard.c: fix compilation warnings
Brendan Le Foll [Thu, 26 Jun 2014 14:07:17 +0000 (15:07 +0100)]
blink_onboard.c: fix compilation warnings

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomraa: pymraa becomes mraa and mraajs becomes mraa
Brendan Le Foll [Wed, 25 Jun 2014 16:49:27 +0000 (17:49 +0100)]
mraa: pymraa becomes mraa and mraajs becomes mraa

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoaio: added configuration within platform data.
Thomas Ingleby [Wed, 25 Jun 2014 16:32:41 +0000 (17:32 +0100)]
aio: added configuration within platform data.

* Allows for different bit shifting for each platform.
* New functions added for obtaining this information
* mraa_adc_raw_bits
* mraa_adc_supported_bits

* Update board information to include this. AIO module changed to allow
* use of the new board data

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoaio: minor formatting fix
Thomas Ingleby [Wed, 25 Jun 2014 13:58:15 +0000 (14:58 +0100)]
aio: minor formatting fix

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agogpio: add mmap enable function to cpp headers
Thomas Ingleby [Wed, 25 Jun 2014 10:14:20 +0000 (11:14 +0100)]
gpio: add mmap enable function to cpp headers

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomaa: update to 0.4.0 v0.4.0
Thomas Ingleby [Wed, 25 Jun 2014 08:19:35 +0000 (09:19 +0100)]
maa: update to 0.4.0

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoipk: replace existing maa if installed
Thomas Ingleby [Wed, 25 Jun 2014 08:16:21 +0000 (09:16 +0100)]
ipk: replace existing maa if installed

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomraa: rename from maa to mraa
Thomas Ingleby [Tue, 24 Jun 2014 16:24:54 +0000 (17:24 +0100)]
mraa: rename from maa to mraa

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomaa: change complex C++ write calls to CamelCase for spi & i2c
Brendan Le Foll [Tue, 24 Jun 2014 13:42:24 +0000 (14:42 +0100)]
maa: change complex C++ write calls to CamelCase for spi & i2c

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agohello_isr.py: add license header
Brendan Le Foll [Tue, 24 Jun 2014 13:41:41 +0000 (14:41 +0100)]
hello_isr.py: add license header

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomaa.i: remove invalid typemaps to char* and include carrays
Brendan Le Foll [Tue, 24 Jun 2014 13:41:00 +0000 (14:41 +0100)]
maa.i: remove invalid typemaps to char* and include carrays

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c.hpp: add I2c::writeReg method
Brendan Le Foll [Tue, 24 Jun 2014 13:40:34 +0000 (14:40 +0100)]
i2c.hpp: add I2c::writeReg method

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomaa: remove unnecessary printing
Thomas Ingleby [Mon, 23 Jun 2014 10:39:09 +0000 (11:39 +0100)]
maa: remove unnecessary printing

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agomaa: remove dev printing
Thomas Ingleby [Fri, 20 Jun 2014 17:27:44 +0000 (18:27 +0100)]
maa: remove dev printing

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoblink_onboard.c: add missing blink onboard example
Brendan Le Foll [Fri, 20 Jun 2014 17:18:05 +0000 (18:18 +0100)]
blink_onboard.c: add missing blink onboard example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomaa: add maa_get_platform_type function and move swig common to type.h
Brendan Le Foll [Fri, 20 Jun 2014 17:00:19 +0000 (18:00 +0100)]
maa: add maa_get_platform_type function and move swig common to type.h

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomaa.c: complain if we didn't detect a valid platform
Brendan Le Foll [Fri, 20 Jun 2014 15:46:05 +0000 (16:46 +0100)]
maa.c: complain if we didn't detect a valid platform

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agomaa: update to 0.3.1 v0.3.1
Thomas Ingleby [Fri, 20 Jun 2014 15:34:11 +0000 (16:34 +0100)]
maa: update to 0.3.1

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agopwm: disable pwm before unexporting
Thomas Ingleby [Fri, 20 Jun 2014 15:26:08 +0000 (16:26 +0100)]
pwm: disable pwm before unexporting

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoMerge branch 'gen2'
Thomas Ingleby [Fri, 20 Jun 2014 15:22:27 +0000 (16:22 +0100)]
Merge branch 'gen2'