contrib/mraa.git
10 years agoswig: add unexport() calls to be used by destructors in object api
Brendan Le Foll [Fri, 2 May 2014 15:31:16 +0000 (16:31 +0100)]
swig: add unexport() calls to be used by destructors in object api

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopython: fix examples and add maa_init() call in swig
Brendan Le Foll [Fri, 2 May 2014 13:08:49 +0000 (14:08 +0100)]
python: fix examples and add maa_init() call in swig

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaa.i: Initial documentation of Swigified object API
Brendan Le Foll [Fri, 2 May 2014 12:54:51 +0000 (13:54 +0100)]
maa.i: Initial documentation of Swigified object API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMerge branch 'pinmap-aio'
Thomas Ingleby [Fri, 2 May 2014 10:56:02 +0000 (11:56 +0100)]
Merge branch 'pinmap-aio'

10 years agopinmap: Added aio support.
Thomas Ingleby [Fri, 2 May 2014 10:52:40 +0000 (11:52 +0100)]
pinmap: Added aio support.

* Intel Galileo Rev D: Added analog information
* maa_check_aio, similar to maa_check_gpio, will setup multiplexers.
* aio: Removed now duplicated functionality.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoblink-io8.c: add unistd.h and fix fprintf statement
Brendan Le Foll [Fri, 2 May 2014 09:55:45 +0000 (10:55 +0100)]
blink-io8.c: add unistd.h and fix fprintf statement

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaa.i: stop importing all of maa.h definitions
Brendan Le Foll [Fri, 2 May 2014 08:52:06 +0000 (09:52 +0100)]
maa.i: stop importing all of maa.h definitions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agosphinx: make python documentation generation use sphinx
Brendan Le Foll [Fri, 2 May 2014 08:51:42 +0000 (09:51 +0100)]
sphinx: make python documentation generation use sphinx

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMerge branch 'pinmap'
Thomas Ingleby [Thu, 1 May 2014 16:37:56 +0000 (17:37 +0100)]
Merge branch 'pinmap'

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Conflicts:
api/maa.h
src/CMakeLists.txt

10 years agoexamples: Update examples to use newer maa functions
Thomas Ingleby [Thu, 1 May 2014 16:08:54 +0000 (17:08 +0100)]
examples: Update examples to use newer maa functions

* Use maa_init() before any other maa functions are called
* Use ioNN instead of gpioXX, Using mapping

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agospi: add spi to CMakeLists.txt to build spi doc.i file
Brendan Le Foll [Thu, 1 May 2014 16:00:49 +0000 (17:00 +0100)]
spi: add spi to CMakeLists.txt to build spi doc.i file

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio: add aio swig object
Brendan Le Foll [Thu, 1 May 2014 15:59:54 +0000 (16:59 +0100)]
aio: add aio swig object

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopinmap: GPIO pin map added.
Thomas Ingleby [Thu, 1 May 2014 15:55:23 +0000 (16:55 +0100)]
pinmap: GPIO pin map added.

* maa_gpio_init can take the IO number read physically off the board.
* maa_check_gpio will also set up mutiplexers if needed
* Intel Galileo Rev D board data added

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoaio: add initial analog input support
Nandkishor Sonar [Thu, 1 May 2014 15:36:11 +0000 (16:36 +0100)]
aio: add initial analog input support

Signed-off-by: Nandkishor Sonar <nandkishor.sonar@intel.com>
Reviewed-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoswig: make swig generation of objects generic
Brendan Le Foll [Thu, 1 May 2014 14:42:42 +0000 (15:42 +0100)]
swig: make swig generation of objects generic

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoswig: name functions explicitly and use %extend to convert _context structs to objects
Brendan Le Foll [Thu, 1 May 2014 14:27:34 +0000 (15:27 +0100)]
swig: name functions explicitly and use %extend to convert _context structs to objects

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agospi: add destructor
Brendan Le Foll [Thu, 1 May 2014 15:10:27 +0000 (16:10 +0100)]
spi: add destructor

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoadd emum doc to maa_result_t
Brendan Le Foll [Thu, 1 May 2014 14:26:39 +0000 (15:26 +0100)]
add emum doc to maa_result_t

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMerge branch 'tingleby-spi-new'
Brendan Le Foll [Wed, 30 Apr 2014 13:54:16 +0000 (14:54 +0100)]
Merge branch 'tingleby-spi-new'

10 years agoMerge branch 'spi-new' of github.com:tingleby/maa into tingleby-spi-new
Brendan Le Foll [Wed, 30 Apr 2014 13:53:21 +0000 (14:53 +0100)]
Merge branch 'spi-new' of github.com:tingleby/maa into tingleby-spi-new

Conflicts:
src/CMakeLists.txt

10 years agoCMakeLists.txt: add vesion.h to installed headers
Brendan Le Foll [Wed, 30 Apr 2014 13:51:19 +0000 (14:51 +0100)]
CMakeLists.txt: add vesion.h to installed headers

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoapi: Change api licensing as it now has nothing to do with mbed
Brendan Le Foll [Wed, 30 Apr 2014 13:50:01 +0000 (14:50 +0100)]
api: Change api licensing as it now has nothing to do with mbed

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopydoc: fix generation
Brendan Le Foll [Wed, 30 Apr 2014 13:49:33 +0000 (14:49 +0100)]
pydoc: fix generation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agospi: Add initial SPI api
Thomas Ingleby [Wed, 30 Apr 2014 13:33:25 +0000 (14:33 +0100)]
spi: Add initial SPI api

* Skeleton implementation included too.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoREADME.md: fix readme style v0.2.1
Brendan Le Foll [Wed, 30 Apr 2014 10:39:19 +0000 (11:39 +0100)]
README.md: fix readme style

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio.h: fix doxygen comment on struct
Brendan Le Foll [Wed, 30 Apr 2014 10:36:02 +0000 (11:36 +0100)]
gpio.h: fix doxygen comment on struct

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c: add doxygen documentation and make return types use maa_result_t
Brendan Le Foll [Wed, 30 Apr 2014 10:35:29 +0000 (11:35 +0100)]
i2c: add doxygen documentation and make return types use maa_result_t

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopinmap: More work around abstracting pin information
Thomas Ingleby [Wed, 30 Apr 2014 10:13:36 +0000 (11:13 +0100)]
pinmap: More work around abstracting pin information

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoMerge pull request #6 from tingleby/master
Brendan Le Foll [Wed, 30 Apr 2014 09:51:34 +0000 (10:51 +0100)]
Merge pull request #6 from tingleby/master

pwm: Updated API

10 years agodoxygen: generic and more reliable doxygen/swig autodoc integration
Brendan Le Foll [Wed, 30 Apr 2014 09:50:44 +0000 (10:50 +0100)]
doxygen: generic and more reliable doxygen/swig autodoc integration

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopwm: Updated API
Thomas Ingleby [Wed, 30 Apr 2014 09:30:56 +0000 (10:30 +0100)]
pwm: Updated API

* Greater use of maa_result_t
* Added raw mode.
* Updated cycle-pwm3 to use new api.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopinmap: Defining pindata structures
Thomas Ingleby [Tue, 29 Apr 2014 14:01:24 +0000 (15:01 +0100)]
pinmap: Defining pindata structures

* Logic for setting up required multiplexers

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agojavascript: fix swig generation of node.js api
Brendan Le Foll [Tue, 29 Apr 2014 17:44:09 +0000 (18:44 +0100)]
javascript: fix swig generation of node.js api

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMerge pull request #5 from tingleby/master
Brendan Le Foll [Tue, 29 Apr 2014 16:18:14 +0000 (17:18 +0100)]
Merge pull request #5 from tingleby/master

gpio: API cleaner & documentation fixed

10 years agoexample: blink-io8.c Updated against new API
Thomas Ingleby [Tue, 29 Apr 2014 16:01:42 +0000 (17:01 +0100)]
example: blink-io8.c Updated against new API

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agodoxy2swig.py: make script executable
Brendan Le Foll [Tue, 29 Apr 2014 15:56:37 +0000 (16:56 +0100)]
doxy2swig.py: make script executable

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: Add support for setting GPIO ouput drive.
Thomas Ingleby [Tue, 29 Apr 2014 15:55:54 +0000 (16:55 +0100)]
gpio: Add support for setting GPIO ouput drive.

*Supports all exposed to sysfs

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agogpio: Matured the GPIO API.
Thomas Ingleby [Tue, 29 Apr 2014 15:46:10 +0000 (16:46 +0100)]
gpio: Matured the GPIO API.

* Greater use of return values.
* Uses defined enum instead of char arrays

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopydoc: add make pydoc target to generate pydoc html
Brendan Le Foll [Tue, 29 Apr 2014 15:40:16 +0000 (16:40 +0100)]
pydoc: add make pydoc target to generate pydoc html

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopydoc: add full generation of pydoc for pymaa
Brendan Le Foll [Tue, 29 Apr 2014 15:33:15 +0000 (16:33 +0100)]
pydoc: add full generation of pydoc for pymaa

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c.c: fix return type in _init function
Brendan Le Foll [Tue, 29 Apr 2014 13:01:30 +0000 (14:01 +0100)]
i2c.c: fix return type in _init function

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agodoc: initial documentation of api
Brendan Le Foll [Mon, 28 Apr 2014 17:39:07 +0000 (18:39 +0100)]
doc: initial documentation of api

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopymaa.i: add rename to remove maa_ prefix from python lib
Brendan Le Foll [Mon, 28 Apr 2014 17:10:12 +0000 (18:10 +0100)]
pymaa.i: add rename to remove maa_ prefix from python lib

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMerge pull request #4 from emea-ssg-drd/dumpc++
Brendan Le Foll [Mon, 28 Apr 2014 13:12:40 +0000 (14:12 +0100)]
Merge pull request #4 from emea-ssg-drd/dumpc++

Remove all C++ code and move to a standard C api

10 years agoDoxyfile.in: use lib version number in doxyfile
Brendan Le Foll [Mon, 28 Apr 2014 12:57:25 +0000 (13:57 +0100)]
Doxyfile.in: use lib version number in doxyfile

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoCMakeLists.txt: add default versioning when git not present
Brendan Le Foll [Mon, 28 Apr 2014 10:40:26 +0000 (11:40 +0100)]
CMakeLists.txt: add default versioning when git not present

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaa: change struct names to be more unique and fix allocs
Brendan Le Foll [Mon, 28 Apr 2014 10:31:53 +0000 (11:31 +0100)]
maa: change struct names to be more unique and fix allocs

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoversion.h: add versioning info from git
Brendan Le Foll [Sun, 27 Apr 2014 23:29:14 +0000 (00:29 +0100)]
version.h: add versioning info from git

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c: clarify our usage of the result of the assignment v0.2.0
Brendan Le Foll [Sun, 27 Apr 2014 22:15:54 +0000 (23:15 +0100)]
i2c: clarify our usage of the result of the assignment

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaa: change the linking of maa and make gpio functions match maa_ spec
Brendan Le Foll [Sun, 27 Apr 2014 22:11:31 +0000 (23:11 +0100)]
maa: change the linking of maa and make gpio functions match maa_ spec

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoDoxyfile.in: add basic doxyfile for make doc
Brendan Le Foll [Sun, 27 Apr 2014 20:48:22 +0000 (21:48 +0100)]
Doxyfile.in: add basic doxyfile for make doc

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMAA version 0.2.0 moves to a standard C API
Brendan Le Foll [Sun, 27 Apr 2014 20:17:54 +0000 (21:17 +0100)]
MAA version 0.2.0 moves to a standard C API

* Removed all C++ code and renamed all .cxx extensions to .c
* All functions are renamed to maa_ and modules are for example called maa_pwm
* Cmake can now 'make doc' using a Doxyfile.in to create documentation
* examples/ have been updated but swig generated API is untested

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoREADME: update README with more accurate information
Brendan Le Foll [Fri, 25 Apr 2014 14:49:19 +0000 (15:49 +0100)]
README: update README with more accurate information

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c-dev.h: fix headers for integration with upm
Brendan Le Foll [Fri, 25 Apr 2014 13:46:19 +0000 (14:46 +0100)]
i2c-dev.h: fix headers for integration with upm

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agohello_gpio.py: fix python example
Brendan Le Foll [Fri, 25 Apr 2014 08:10:27 +0000 (09:10 +0100)]
hello_gpio.py: fix python example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoposix_types: remove include of stddef.h
Brendan Le Foll [Wed, 23 Apr 2014 16:28:33 +0000 (17:28 +0100)]
posix_types: remove include of stddef.h

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocmake: make maa a proper dynamic library and install it correctly
Brendan Le Foll [Wed, 23 Apr 2014 16:28:14 +0000 (17:28 +0100)]
cmake: make maa a proper dynamic library and install it correctly

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agostddef.h: remove unecesary kernel header
Brendan Le Foll [Wed, 23 Apr 2014 10:08:57 +0000 (11:08 +0100)]
stddef.h: remove unecesary kernel header

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
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