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
Nandkishor Sonar
207c54a5e7
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 >
2014-05-01 16:38:17 +01:00
Brendan Le Foll
4129d4e16d
spi: add destructor
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:11:16 +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
Brendan Le Foll
661f7b29ec
Merge branch 'spi-new' of github.com:tingleby/maa into tingleby-spi-new
...
Conflicts:
src/CMakeLists.txt
2014-04-30 14:53:21 +01:00
Brendan Le Foll
35c98aed6d
api: Change api licensing as it now has nothing to do with mbed
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-30 14:50:01 +01:00
Thomas Ingleby
e04d776c95
spi: Add initial SPI api
...
* Skeleton implementation included too.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-30 14:43:59 +01:00
Brendan Le Foll
9e3e322fff
gpio.h: fix doxygen comment on struct
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-30 11:36:02 +01:00
Brendan Le Foll
e86916ab91
i2c: add doxygen documentation and make return types use maa_result_t
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-30 11:35:29 +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
ccc4544455
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 >
2014-04-30 10:30:56 +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
7524cb7ab8
Merge pull request #5 from tingleby/master
...
gpio: API cleaner & documentation fixed
2014-04-29 17:18:14 +01:00
Thomas Ingleby
226c6bcb66
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 >
2014-04-29 16:46:10 +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
f280b3c0f6
maa: change struct names to be more unique and fix allocs
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-28 11:31:53 +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
Brendan Le Foll
09b31759f4
i2cslave.h: fix line endings
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-23 09:28:48 +01:00
Brendan Le Foll
aee2087a42
maa: general licensing + styling cleanup
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-22 15:51:28 +01:00
Thomas Ingleby
5c2235dc0c
pwm: Completed functions:
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-14 14:40:40 +01:00
Thomas Ingleby
cb92c892cf
pwm: Refined API. Work towards functionality
...
* Private functions added
* Added to CMakeLists
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-14 13:10:53 +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
6bf02cf25e
Merge branch 'gpio' of github.com:tingleby/maa into tingleby-gpio
2014-04-11 16:19:18 +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
84beaf2c05
i2cslave: add i2cslave api and basic non functional implementation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-11 15:27:43 +01:00
Thomas Ingleby
5168538894
gpio: modified api to include close.
...
Add file descriptor to gpio_t
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-11 09:05:04 +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
72f249fce1
gpio: cleanup of initial gpio work and add to CMakeLists.txt
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-10 16:59:17 +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
Brendan Le Foll
00ba95bac0
maa: Initial commit of maa, a python and nodejs I2C skeleton only
2014-04-08 18:45:30 +01:00