Thomas Ingleby
66550f9487
spi: Use new feature of pinmap to get split info.
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-21 09:50:24 +01:00
Thomas Ingleby
b7c2b701aa
spi-pinmap: seperated bus from slave select.
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-21 09:50:19 +01:00
Thomas Ingleby
352e1e084d
spi-pinmap: added spi checking functions.
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-16 14:31:40 +01:00
Brendan Le Foll
9e823b7f1d
maa_init: fix constructor attribute in maa_init and add working example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-16 14:31:31 +01:00
Thomas Ingleby
d3bfb25e60
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 >
2014-05-07 15:12:44 +01:00
Thomas Ingleby
019853d2fd
maa: add result print function.
...
* Fixed error in comments in maa.h
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-06 15:33:54 +01:00
Thomas Ingleby
171f66208e
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 >
2014-05-06 15:33:54 +01:00
Brendan Le Foll
5161713eaf
init: allow init to be called multiple times
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-06 10:42:06 +01:00
Thomas Ingleby
dd89adc47b
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 >
2014-05-05 20:13:03 +01:00
Thomas Ingleby
64d3c78ca9
i2c: Work started on using pinmap with i2c
...
* Update examples and swig interface.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-02 16:07:18 +01:00
Thomas Ingleby
82d3615f6c
pinmap: Added spi and i2c to board definition.
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-02 14:45:24 +01:00
Thomas Ingleby
fd1c1c80f4
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 >
2014-05-02 11:52:40 +01:00
Thomas Ingleby
be92ed306d
Merge branch 'pinmap'
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Conflicts:
api/maa.h
src/CMakeLists.txt
2014-05-01 17:37:56 +01:00
Thomas Ingleby
e96df16f75
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 >
2014-05-01 16:55:23 +01:00
Brendan Le Foll
ffe8487d9f
add emum doc to maa_result_t
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 15:26:39 +01:00
Thomas Ingleby
d4427ec35e
pinmap: More work around abstracting pin information
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-30 11:13:36 +01:00
Thomas Ingleby
da27e37a4c
pinmap: Defining pindata structures
...
* Logic for setting up required multiplexers
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-30 09:30:59 +01:00
Brendan Le Foll
804c4a437d
javascript: fix swig generation of node.js api
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-29 18:44:09 +01:00
Brendan Le Foll
dc68f40a26
pydoc: add full generation of pydoc for pymaa
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-29 16:33:59 +01:00
Brendan Le Foll
77ee9ffff5
doc: initial documentation of api
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-28 18:39:07 +01:00
Brendan Le Foll
00fd42b186
version.h: add versioning info from git
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-28 00:29:14 +01:00
Brendan Le Foll
ed0a1f6085
maa: change the linking of maa and make gpio functions match maa_ spec
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-27 23:11:31 +01:00
Brendan Le Foll
a5a407e4b5
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 >
2014-04-27 21:17:54 +01:00
Thomas Ingleby
f54e537d64
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 >
2014-04-14 11:05:52 +01:00
Brendan Le Foll
7eb9fa64a9
i2cslave: first possibly working implementation of i2cslave api
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-11 15:46:27 +01:00
Brendan Le Foll
e59b8b2038
gpio: enable very basic gpio control from swig
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-10 18:00:57 +01:00
Brendan Le Foll
9994ea855c
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 >
2014-04-10 16:53:19 +01:00