contrib/mraa.git
10 years agoaio.hpp: Add C++ wrapper around Aio
Brendan Le Foll [Thu, 15 May 2014 21:47:38 +0000 (22:47 +0100)]
aio.hpp: Add C++ wrapper around Aio

* maa_aio_context becomes an opaque pointer
* C++ wrapper class Aio created
* examples/c++ with a sample for Aio created
* swig now uses C++ wrapper Aio to generate an API
* python generated code is now C++

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocmake: make maa link against pthreads directly
Brendan Le Foll [Thu, 15 May 2014 15:40:21 +0000 (16:40 +0100)]
cmake: make maa link against pthreads directly

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocmake: fix hard includ of node headers for cross compile
Brendan Le Foll [Thu, 15 May 2014 15:39:55 +0000 (16:39 +0100)]
cmake: fix hard includ of node headers for cross compile

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: make isr_exit function use pthread_cancel and treat error cases more cleanly
Brendan Le Foll [Thu, 15 May 2014 13:42:18 +0000 (14:42 +0100)]
gpio: make isr_exit function use pthread_cancel and treat error cases more cleanly

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoblink-io: make sure maa_gpio_init was successful
Brendan Le Foll [Thu, 15 May 2014 09:41:23 +0000 (10:41 +0100)]
blink-io: make sure maa_gpio_init was successful

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocmake: increase version to 2.3 v0.2.3
Brendan Le Foll [Wed, 14 May 2014 13:08:29 +0000 (14:08 +0100)]
cmake: increase version to 2.3

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio: remove _u16 suffix from call. Make return type a uint16_t
Brendan Le Foll [Tue, 13 May 2014 22:25:21 +0000 (22:25 +0000)]
aio: remove _u16 suffix from call. Make return type a uint16_t

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoblink-io: add stdlib.h for strtol call
Brendan Le Foll [Tue, 13 May 2014 22:24:48 +0000 (22:24 +0000)]
blink-io: add stdlib.h for strtol call

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: add signal type to pthread_kill
Brendan Le Foll [Tue, 13 May 2014 22:18:46 +0000 (22:18 +0000)]
gpio: add signal type to pthread_kill

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopwm: always return a value if stated in prototype
Brendan Le Foll [Tue, 13 May 2014 22:18:22 +0000 (22:18 +0000)]
pwm: always return a value if stated in prototype

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c: fixed impossible unsigned comparisons
Brendan Le Foll [Tue, 13 May 2014 22:17:42 +0000 (22:17 +0000)]
i2c: fixed impossible unsigned comparisons

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio: remove use of atoi and cleanup debug
Brendan Le Foll [Tue, 13 May 2014 22:10:41 +0000 (22:10 +0000)]
aio: remove use of atoi and cleanup debug

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio: use posix read/lseek API
Brendan Le Foll [Tue, 13 May 2014 21:59:54 +0000 (21:59 +0000)]
aio: use posix read/lseek API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio: fix styling of case statement
Brendan Le Foll [Tue, 13 May 2014 21:59:22 +0000 (21:59 +0000)]
aio: fix styling of case statement

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio: fix error checking of maa_check_aio
Brendan Le Foll [Tue, 13 May 2014 21:58:43 +0000 (21:58 +0000)]
aio: fix error checking of maa_check_aio

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: fix compiler warning with blank return
Brendan Le Foll [Tue, 13 May 2014 21:57:28 +0000 (21:57 +0000)]
gpio: fix compiler warning with blank return

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoswig: fix usage of SWIGPYTHON for python specific code
Brendan Le Foll [Tue, 13 May 2014 20:55:08 +0000 (20:55 +0000)]
swig: fix usage of SWIGPYTHON for python specific code

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoswig: Add support for isr/callbacks from python
Brendan Le Foll [Tue, 13 May 2014 20:45:00 +0000 (20:45 +0000)]
swig: Add support for isr/callbacks from python

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaa_init: add GCC attribute to call init function as a constructor
Brendan Le Foll [Tue, 13 May 2014 20:44:34 +0000 (20:44 +0000)]
maa_init: add GCC attribute to call init function as a constructor

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocmake: re-enable javascript for swig
Brendan Le Foll [Tue, 13 May 2014 20:43:41 +0000 (20:43 +0000)]
cmake: re-enable javascript for swig

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: rework of gpio - using open() for value_fp
Brendan Le Foll [Tue, 13 May 2014 14:35:27 +0000 (15:35 +0100)]
gpio: rework of gpio - using open() for value_fp

* fixes maa_gpio_read by using simple posix file io
* fixes blink sample to have much more error checking
* blink sample now takes an argument

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaajs: fix example with object API
Brendan Le Foll [Thu, 8 May 2014 10:24:13 +0000 (11:24 +0100)]
maajs: fix example with object API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: don't do a pthread_kill if thread id is 0
Brendan Le Foll [Wed, 7 May 2014 16:45:02 +0000 (17:45 +0100)]
gpio: don't do a pthread_kill if thread id is 0

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopinmap: test mode, add uninitialised protection.
Thomas Ingleby [Wed, 7 May 2014 15:07:58 +0000 (16:07 +0100)]
pinmap: test mode, add uninitialised protection.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaa.i: maa_init is now done after swig initialisation routine
Brendan Le Foll [Wed, 7 May 2014 16:39:58 +0000 (17:39 +0100)]
maa.i: maa_init is now done after swig initialisation routine

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMerge branch 'tingleby-pin'
Brendan Le Foll [Wed, 7 May 2014 15:01:00 +0000 (16:01 +0100)]
Merge branch 'tingleby-pin'

10 years agopinmap: Implemented maa_pin_mode_test
Thomas Ingleby [Wed, 7 May 2014 14:54:59 +0000 (15:54 +0100)]
pinmap: Implemented maa_pin_mode_test

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: rev-d quirk worked-around.
Thomas Ingleby [Wed, 7 May 2014 14:15:57 +0000 (15:15 +0100)]
pwm: rev-d quirk worked-around.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopinmap: function to test mode of a pin.
Thomas Ingleby [Wed, 7 May 2014 14:12:44 +0000 (15:12 +0100)]
pinmap: function to test mode of a pin.

* Added enum to represent the supported modes.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoMerge branch 'tingleby-master'
Brendan Le Foll [Wed, 7 May 2014 13:50:04 +0000 (14:50 +0100)]
Merge branch 'tingleby-master'

10 years agoMerge branch 'master' of github.com:tingleby/maa into tingleby-master
Brendan Le Foll [Wed, 7 May 2014 13:49:53 +0000 (14:49 +0100)]
Merge branch 'master' of github.com:tingleby/maa into tingleby-master

10 years agogpio: initial implementation of interupt handling on gpio
Brendan Le Foll [Wed, 7 May 2014 13:48:21 +0000 (14:48 +0100)]
gpio: initial implementation of interupt handling on gpio

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoanalogin_a0: add adc_value print in decimal
Brendan Le Foll [Wed, 7 May 2014 13:20:37 +0000 (14:20 +0100)]
analogin_a0: add adc_value print in decimal

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: only call ferror in free() case as dev has already been free'd by swig code
Brendan Le Foll [Tue, 6 May 2014 17:12:53 +0000 (18:12 +0100)]
gpio: only call ferror in free() case as dev has already been free'd by swig code

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio: add c++ header guards
Brendan Le Foll [Tue, 6 May 2014 14:50:13 +0000 (15:50 +0100)]
aio: add c++ header guards

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomaa: add result print function.
Thomas Ingleby [Tue, 6 May 2014 14:29:42 +0000 (15:29 +0100)]
maa: add result print function.

* Fixed error in comments in maa.h

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: Use pinmap functions for setting up pwm.
Thomas Ingleby [Tue, 6 May 2014 14:01:44 +0000 (15:01 +0100)]
pwm: Use pinmap functions for setting up pwm.

* Intended function of check_pwm also checks for conflicting gpio, due
* to quirk on galileo rev d, functionality commented.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agogalileo-rev-d: Add PWM properties on IO3
Thomas Ingleby [Tue, 6 May 2014 13:54:10 +0000 (14:54 +0100)]
galileo-rev-d: Add PWM properties on IO3

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoCMakeLists.txt: update version to 0.2.2
Brendan Le Foll [Fri, 2 May 2014 15:58:37 +0000 (16:58 +0100)]
CMakeLists.txt: update version to 0.2.2

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoinit: allow init to be called multiple times
Brendan Le Foll [Tue, 6 May 2014 09:42:06 +0000 (10:42 +0100)]
init: allow init to be called multiple times

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoMerge branch 'tingleby-master'
Brendan Le Foll [Tue, 6 May 2014 08:33:46 +0000 (09:33 +0100)]
Merge branch 'tingleby-master'

10 years agoMerge branch 'master' of github.com:tingleby/maa into tingleby-master
Brendan Le Foll [Tue, 6 May 2014 08:33:19 +0000 (09:33 +0100)]
Merge branch 'master' of github.com:tingleby/maa into tingleby-master

10 years agogpio: reworking of gpio IO calls
Brendan Le Foll [Tue, 6 May 2014 08:32:07 +0000 (09:32 +0100)]
gpio: reworking of gpio IO calls

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agointel_galileo_rev_d: Wrong I2C bus definition.
Thomas Ingleby [Tue, 6 May 2014 08:18:35 +0000 (09:18 +0100)]
intel_galileo_rev_d: Wrong I2C bus definition.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agomaa: Update functions within maa to use new api.
Thomas Ingleby [Mon, 5 May 2014 19:13:58 +0000 (20:13 +0100)]
maa: Update functions within maa to use new api.

* Use new board definitions.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopinmap: new way of defining board io.
Thomas Ingleby [Mon, 5 May 2014 19:00:20 +0000 (20:00 +0100)]
pinmap: new way of defining board io.

* Intel Galileo Rev D pinmap updated to use new format

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoMerge remote-tracking branch 'upstream/master'
Thomas Ingleby [Sun, 4 May 2014 10:59:21 +0000 (11:59 +0100)]
Merge remote-tracking branch 'upstream/master'

10 years agoMerge branch 'tingleby-pinmap-i2cspi' v0.2.2
Brendan Le Foll [Fri, 2 May 2014 15:44:55 +0000 (16:44 +0100)]
Merge branch 'tingleby-pinmap-i2cspi'

10 years agoMerge branch 'pinmap-i2cspi' of github.com:tingleby/maa into tingleby-pinmap-i2cspi
Brendan Le Foll [Fri, 2 May 2014 15:43:10 +0000 (16:43 +0100)]
Merge branch 'pinmap-i2cspi' of github.com:tingleby/maa into tingleby-pinmap-i2cspi

10 years agogpio: use strtol instead of atoi
Brendan Le Foll [Fri, 2 May 2014 15:32:53 +0000 (16:32 +0100)]
gpio: use strtol instead of atoi

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
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 agoMerge branch 'pinmap-i2cspi'
Thomas Ingleby [Fri, 2 May 2014 15:16:01 +0000 (16:16 +0100)]
Merge branch 'pinmap-i2cspi'

10 years agoi2c: Work started on using pinmap with i2c
Thomas Ingleby [Fri, 2 May 2014 15:07:18 +0000 (16:07 +0100)]
i2c: Work started on using pinmap with i2c

* Update examples and swig interface.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agointel_galileo_rev_d: Update to new board definition
Thomas Ingleby [Fri, 2 May 2014 13:57:55 +0000 (14:57 +0100)]
intel_galileo_rev_d: Update to new board definition

* Added SPI and I2C information

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopinmap: Added spi and i2c to board definition.
Thomas Ingleby [Fri, 2 May 2014 13:45:24 +0000 (14:45 +0100)]
pinmap: Added spi and i2c to board definition.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2c: generalising api
Thomas Ingleby [Fri, 2 May 2014 13:24:08 +0000 (14:24 +0100)]
i2c: generalising api

* Added raw init function (maa_i2c_init_raw) for not using pinmap

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@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 agoi2c: removed gpio from context
Thomas Ingleby [Fri, 2 May 2014 12:53:20 +0000 (13:53 +0100)]
i2c: removed gpio from context

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