contrib/mraa.git
10 years agogpio.c: fix styling of functions
Brendan Le Foll [Wed, 23 Apr 2014 08:30:27 +0000 (09:30 +0100)]
gpio.c: fix styling of functions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2cslave.h: fix line endings
Brendan Le Foll [Wed, 23 Apr 2014 08:28:48 +0000 (09:28 +0100)]
i2cslave.h: fix line endings

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio.c: simplify gpio_get_valfp and make static
Brendan Le Foll [Wed, 23 Apr 2014 08:28:04 +0000 (09:28 +0100)]
gpio.c: simplify gpio_get_valfp and make static

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agombed: remove straggling files
Brendan Le Foll [Tue, 22 Apr 2014 14:55:42 +0000 (15:55 +0100)]
mbed: remove straggling files

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoexamples: make C++ examples follow src/ extension convention
Brendan Le Foll [Tue, 22 Apr 2014 14:54:34 +0000 (15:54 +0100)]
examples: make C++ examples follow src/ extension convention

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaa: general licensing + styling cleanup
Brendan Le Foll [Tue, 22 Apr 2014 14:51:28 +0000 (15:51 +0100)]
maa: general licensing + styling cleanup

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agobasic HMC5883L magnometer sample
Brendan Le Foll [Tue, 22 Apr 2014 14:31:28 +0000 (15:31 +0100)]
basic HMC5883L magnometer sample

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2cslave: basic working implimentation
Brendan Le Foll [Tue, 22 Apr 2014 14:30:34 +0000 (15:30 +0100)]
i2cslave: basic working implimentation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c: fix license header
Brendan Le Foll [Tue, 22 Apr 2014 14:18:29 +0000 (15:18 +0100)]
i2c: fix license header

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopwm: Add missing include
Thomas Ingleby [Mon, 14 Apr 2014 16:17:33 +0000 (17:17 +0100)]
pwm: Add missing include

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoMerge branch 'pwm' into for-pull
Thomas Ingleby [Mon, 14 Apr 2014 16:16:30 +0000 (17:16 +0100)]
Merge branch 'pwm' into for-pull

10 years agoMerge branch 'gpio' into for-pull
Thomas Ingleby [Mon, 14 Apr 2014 16:15:55 +0000 (17:15 +0100)]
Merge branch 'gpio' into for-pull

10 years agogpio: Tempory fix when changing direction
Thomas Ingleby [Mon, 14 Apr 2014 16:13:31 +0000 (17:13 +0100)]
gpio: Tempory fix when changing direction

* Added unexport feature

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: Added python example script
Thomas Ingleby [Mon, 14 Apr 2014 16:07:24 +0000 (17:07 +0100)]
pwm: Added python example script

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: Fully Functional.
Thomas Ingleby [Mon, 14 Apr 2014 15:55:19 +0000 (16:55 +0100)]
pwm: Fully Functional.

* C++ example included

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: Completed functions:
Thomas Ingleby [Mon, 14 Apr 2014 13:40:40 +0000 (14:40 +0100)]
pwm: Completed functions:

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: Refined API. Work towards functionality
Thomas Ingleby [Mon, 14 Apr 2014 12:10:53 +0000 (13:10 +0100)]
pwm: Refined API. Work towards functionality

* Private functions added
* Added to CMakeLists

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: Added API for PWM.
Thomas Ingleby [Mon, 14 Apr 2014 10:05:52 +0000 (11:05 +0100)]
pwm: Added API for PWM.

* Added include line on main maa header to include PWM definitions.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2cslave.cxx: add undefined method stub that stopped swig working
Brendan Le Foll [Fri, 11 Apr 2014 17:43:46 +0000 (18:43 +0100)]
i2cslave.cxx: add undefined method stub that stopped swig working

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: Add cpp example to use IO.
Thomas Ingleby [Fri, 11 Apr 2014 16:57:53 +0000 (17:57 +0100)]
gpio: Add cpp example to use IO.

* Patch direction setting

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoreadi2c: modify examples to use I2CSlave api
Brendan Le Foll [Fri, 11 Apr 2014 16:06:24 +0000 (17:06 +0100)]
readi2c: modify examples to use I2CSlave api

10 years agoMerge branch 'gpio' of github.com:tingleby/maa into tingleby-gpio
Brendan Le Foll [Fri, 11 Apr 2014 15:19:18 +0000 (16:19 +0100)]
Merge branch 'gpio' of github.com:tingleby/maa into tingleby-gpio

10 years agogpio: gpio in/out both work
Thomas Ingleby [Fri, 11 Apr 2014 14:55:01 +0000 (15:55 +0100)]
gpio: gpio in/out both work

 * Python example included.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2cslave: first possibly working implementation of i2cslave api
Brendan Le Foll [Fri, 11 Apr 2014 14:46:27 +0000 (15:46 +0100)]
i2cslave: first possibly working implementation of i2cslave api

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2cslave: add i2cslave api and basic non functional implementation
Brendan Le Foll [Fri, 11 Apr 2014 14:27:43 +0000 (15:27 +0100)]
i2cslave: add i2cslave api and basic non functional implementation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c.cxx: remove unecessary include
Brendan Le Foll [Fri, 11 Apr 2014 14:26:58 +0000 (15:26 +0100)]
i2c.cxx: remove unecessary include

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoREADME: update doc
Brendan Le Foll [Fri, 11 Apr 2014 14:26:28 +0000 (15:26 +0100)]
README: update doc

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: get file handle if none exists
Thomas Ingleby [Fri, 11 Apr 2014 12:33:46 +0000 (13:33 +0100)]
gpio: get file handle if none exists

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2c.cxx: add functionality to write to i2c
Brendan Le Foll [Fri, 11 Apr 2014 10:51:40 +0000 (11:51 +0100)]
i2c.cxx: add functionality to write to i2c

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: work done to export,read,write to gpio
Thomas Ingleby [Fri, 11 Apr 2014 10:41:48 +0000 (11:41 +0100)]
gpio: work done to export,read,write to gpio

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agogpio: modified api to include close.
Thomas Ingleby [Fri, 11 Apr 2014 08:05:04 +0000 (09:05 +0100)]
gpio: modified api to include close.

Add file descriptor to gpio_t

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agogpio: enable very basic gpio control from swig
Brendan Le Foll [Thu, 10 Apr 2014 17:00:50 +0000 (18:00 +0100)]
gpio: enable very basic gpio control from swig

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: cleanup of initial gpio work and add to CMakeLists.txt
Brendan Le Foll [Thu, 10 Apr 2014 15:59:11 +0000 (16:59 +0100)]
gpio: cleanup of initial gpio work and add to CMakeLists.txt

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMerge branch 'gpio' of github.com:tingleby/maa into tingleby-gpio
Brendan Le Foll [Thu, 10 Apr 2014 15:56:34 +0000 (16:56 +0100)]
Merge branch 'gpio' of github.com:tingleby/maa into tingleby-gpio

10 years agomaa: Refactor maa build system and partly implement i2c
Brendan Le Foll [Thu, 10 Apr 2014 15:53:19 +0000 (16:53 +0100)]
maa: Refactor maa build system and partly implement i2c

* API headers moved to api/
* smbus file added from libi2c and kernel i2c header cleaned up
* fix compilation of swig and use i2c.h header

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: gpio header refined and work on implemtation
Thomas Ingleby [Thu, 10 Apr 2014 15:05:11 +0000 (16:05 +0100)]
gpio: gpio header refined and work on implemtation

10 years agogpio: add initial gpio header
Thomas Ingleby [Thu, 10 Apr 2014 14:33:32 +0000 (15:33 +0100)]
gpio: add initial gpio header

10 years agotests: add initial unit test env
Brendan Le Foll [Thu, 10 Apr 2014 10:07:05 +0000 (11:07 +0100)]
tests: add initial unit test env

10 years agomaa.i: remove dependancy on -includeall and specifiy which headers to include in...
Brendan Le Foll [Thu, 10 Apr 2014 10:05:40 +0000 (11:05 +0100)]
maa.i: remove dependancy on -includeall and specifiy which headers to include in maa.i

10 years agoexamples: fix include path
Brendan Le Foll [Thu, 10 Apr 2014 10:04:02 +0000 (11:04 +0100)]
examples: fix include path

10 years agoREADME: add basic documentation
Brendan Le Foll [Tue, 8 Apr 2014 17:52:54 +0000 (18:52 +0100)]
README: add basic documentation

10 years agomaa: Initial commit of maa, a python and nodejs I2C skeleton only
Brendan Le Foll [Tue, 8 Apr 2014 17:43:26 +0000 (18:43 +0100)]
maa: Initial commit of maa, a python and nodejs I2C skeleton only