contrib/mraa.git
9 years agomraa: update to version 0.5.0 v0.5.0
Thomas Ingleby [Wed, 10 Sep 2014 10:18:44 +0000 (11:18 +0100)]
mraa: update to version 0.5.0

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agohook: add spi init hooks
Thomas Ingleby [Thu, 31 Jul 2014 12:33:45 +0000 (13:33 +0100)]
hook: add spi init hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agohook: add pwm hook around init
Thomas Ingleby [Tue, 29 Jul 2014 13:16:19 +0000 (14:16 +0100)]
hook: add pwm hook around init

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoaio: internal aio context to mraa_internal_types
Thomas Ingleby [Mon, 28 Jul 2014 13:15:11 +0000 (14:15 +0100)]
aio: internal aio context to mraa_internal_types

* Some comments for members of structure also added

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoaio: add init hooks, and fp hook
Thomas Ingleby [Mon, 28 Jul 2014 13:12:28 +0000 (14:12 +0100)]
aio: add init hooks, and fp hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agodocs: add edison to supported platforms.
Thomas Ingleby [Tue, 9 Sep 2014 14:30:36 +0000 (15:30 +0100)]
docs: add edison to supported platforms.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoedison: add hook for handling modes for gpio
Thomas Ingleby [Tue, 9 Sep 2014 10:56:42 +0000 (11:56 +0100)]
edison: add hook for handling modes for gpio

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agopython: dont set c_flags globally
Thomas Ingleby [Mon, 18 Aug 2014 14:24:34 +0000 (15:24 +0100)]
python: dont set c_flags globally

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agojavascript: dont't wipe other cxx flags
Thomas Ingleby [Mon, 18 Aug 2014 14:19:15 +0000 (15:19 +0100)]
javascript: dont't wipe other cxx flags

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedison: spi addition completed
Thomas Ingleby [Thu, 31 Jul 2014 13:53:03 +0000 (14:53 +0100)]
edison: spi addition completed

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedison: add spi mux definitions
Thomas Ingleby [Thu, 31 Jul 2014 12:20:27 +0000 (13:20 +0100)]
edison: add spi mux definitions

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedison: add gpio support on A0-A5
Thomas Ingleby [Tue, 29 Jul 2014 14:51:42 +0000 (15:51 +0100)]
edison: add gpio support on A0-A5

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedison: add pwm support on 3,5,6,9 - default state
Thomas Ingleby [Tue, 29 Jul 2014 14:31:42 +0000 (15:31 +0100)]
edison: add pwm support on 3,5,6,9 - default state

* The swizzler situation is a bit odd to describe in mraa

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedison: add analog input support
Thomas Ingleby [Mon, 28 Jul 2014 16:51:28 +0000 (17:51 +0100)]
edison: add analog input support

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoaio.c: fix ordering of comparison operator
Brendan Le Foll [Mon, 28 Jul 2014 12:56:20 +0000 (14:56 +0200)]
aio.c: fix ordering of comparison operator

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agointel_edison_fab_c.c: simplify invalid return in mraa_intel_edison_gpio_init_post
Brendan Le Foll [Mon, 28 Jul 2014 12:56:01 +0000 (14:56 +0200)]
intel_edison_fab_c.c: simplify invalid return in mraa_intel_edison_gpio_init_post

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoedison: added i2c support on bus 6
Thomas Ingleby [Thu, 24 Jul 2014 13:02:53 +0000 (14:02 +0100)]
edison: added i2c support on bus 6

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedison: add i2c bus definitions
Thomas Ingleby [Thu, 24 Jul 2014 10:59:36 +0000 (11:59 +0100)]
edison: add i2c bus definitions

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoi2c: disallow non allowed i2c buses
Thomas Ingleby [Thu, 24 Jul 2014 10:51:38 +0000 (11:51 +0100)]
i2c: disallow non allowed i2c buses

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoi2c: boost max defined buses to 12.
Thomas Ingleby [Thu, 24 Jul 2014 10:21:33 +0000 (11:21 +0100)]
i2c: boost max defined buses to 12.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedison: add gpio definitions.
Thomas Ingleby [Mon, 21 Jul 2014 16:43:38 +0000 (17:43 +0100)]
edison: add gpio definitions.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedsion: add logic to handle tristate around directions
Thomas Ingleby [Mon, 21 Jul 2014 13:17:35 +0000 (14:17 +0100)]
edsion: add logic to handle tristate around directions

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoedison: add edison specific logic
Thomas Ingleby [Mon, 21 Jul 2014 12:59:32 +0000 (13:59 +0100)]
edison: add edison specific logic

* Board definition started

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agohook: move gpio init post hook
Thomas Ingleby [Fri, 18 Jul 2014 12:19:29 +0000 (13:19 +0100)]
hook: move gpio init post hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agointel_edision_fab_c: renamed from fab_b
Thomas Ingleby [Wed, 16 Jul 2014 16:24:08 +0000 (17:24 +0100)]
intel_edision_fab_c: renamed from fab_b

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agogpio.c: styling - remove tabs
Brendan Le Foll [Mon, 14 Jul 2014 16:11:12 +0000 (17:11 +0100)]
gpio.c: styling - remove tabs

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoedison: add edison detection
Thomas Ingleby [Fri, 11 Jul 2014 15:22:19 +0000 (16:22 +0100)]
edison: add edison detection

* Will look for BODEGA BAY or SALT BAY

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agointel_edison_fab_b: initial board definition
Thomas Ingleby [Fri, 11 Jul 2014 13:31:38 +0000 (14:31 +0100)]
intel_edison_fab_b: initial board definition

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoDoxygenLayout.xml: move akward dep graph to the bottom
Brendan Le Foll [Sun, 7 Sep 2014 20:20:24 +0000 (21:20 +0100)]
DoxygenLayout.xml: move akward dep graph to the bottom

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agodocs: add common i2c doc page i2c.txt
Brendan Le Foll [Sun, 7 Sep 2014 20:20:06 +0000 (21:20 +0100)]
docs: add common i2c doc page i2c.txt

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agocpack: add tgz generator
Thomas Ingleby [Fri, 5 Sep 2014 12:09:32 +0000 (13:09 +0100)]
cpack: add tgz generator

* Used by build system to create copy compiled assests

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
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>