Thomas Ingleby
6853997a92
mraa: rename from maa to mraa
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-06-24 17:24:54 +01:00
Thomas Ingleby
ea88358164
intel galile rev g: change name from gen2 to revg
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-06-17 09:42:55 +01:00
Brendan Le Foll
27624289ec
gen2: add basic galileo gen2 detection
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-16 18:46:31 +01:00
Brendan Le Foll
3f2163a9b9
CMakeLists.txt: install headers in include/maa
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-13 10:16:37 +01:00
Brendan Le Foll
6e4f8b085f
maa: make common.h header to replace maa.h header to simplify includes
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-11 14:28:28 +01:00
Brendan Le Foll
faedfce419
maa: add global maa.h and maa.hpp and stop using /usr/include/maa/
...
* pkg-config now only sees maa.h & maa.hpp
* usage of maa/*.{h,hpp} is still allowed
* examples updated to use maa.{h,hpp}
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-10 16:47:37 +01:00
Brendan Le Foll
28fc9f97c9
swig: use C++ generated class doc and include directly from maa.i
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-30 10:28:21 +01:00
Brendan Le Foll
ded3830951
swig: add BUILDSWIG macros to disable building of swig modules
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-23 13:56:45 +01:00
Brendan Le Foll
bc0da78b97
cmake: make sure headers are not in api/ subdir
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-23 11:58:04 +01:00
Brendan Le Foll
9e2ce3f38c
cmake: install only the public API in ${prefix}/include/maa
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-22 14:26:11 +01:00
Thomas Ingleby
29ec5b1ac4
maa: add maa internal header.
...
For internal functions and data definitions.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-21 12:52:38 +01:00
Thomas Ingleby
ffc604afae
maa: remove whitespace
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-21 12:50:12 +01:00
Brendan Le Foll
d0240cd50a
spi.hpp: Add C++ wrapper around Spi
...
* maa_spi_context becomes an opaque pointer
* C++ wrapper class Spi created
* swig now uses C++ wrapper Gpio to generate API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-16 14:31:46 +01:00
Brendan Le Foll
058084cd88
gpio.hpp: Add C++ wrapper around Gpio
...
* maa_gpio_context bcomes an opaque pointer
* C++ wrapper class Gpio created
* swig now uses C++ wrapper Gpio to generate API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-16 14:31:37 +01:00
Brendan Le Foll
f0763844fa
pwm.hpp: Add C++ wrapper around Pwm
...
* maa_pwm_context becomes an opaque pointer
* C++ wrapper class Pwm
* swig now uses C++ wrapper Pwm to generate API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-16 14:31:36 +01:00
Brendan Le Foll
8a03e61f43
i2c.hpp: Add C++ wrapper around I2c
...
* maa_i2c_context bcomes an opaque pointer
* C++ wrapper class I2c created
* swig now uses C++ wrapper I2c to generate API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-16 14:31:34 +01:00
Brendan Le Foll
e491f99228
i2c.hpp: Add C++ wrapper around I2c
...
* maa_i2c_context bcomes an opaque pointer
* C++ wrapper class I2c created
* swig now uses C++ wrapper I2c to generate API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-16 14:31:33 +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
Brendan Le Foll
554505b640
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 >
2014-05-16 14:31:30 +01:00
Brendan Le Foll
e84406d697
cmake: make maa link against pthreads directly
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-15 16:40:40 +01:00
Brendan Le Foll
ef225dbe26
swig: fix usage of SWIGPYTHON for python specific code
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-13 20:55:08 +00:00
Brendan Le Foll
b00484b797
cmake: re-enable javascript for swig
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-13 20:43:41 +00:00
Brendan Le Foll
3e0d0c8241
python: fix examples and add maa_init() call in swig
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 14:08:49 +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
Brendan Le Foll
7023a3213a
spi: add spi to CMakeLists.txt to build spi doc.i file
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 17:00:49 +01:00
Brendan Le Foll
d1de6a48c9
aio: add aio swig object
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:59:54 +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
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
3f0c17eb73
CMakeLists.txt: add vesion.h to installed headers
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-30 14:51:19 +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
0450c2e159
doxygen: generic and more reliable doxygen/swig autodoc integration
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-30 10:50:44 +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
2398df459a
i2c-dev.h: fix headers for integration with upm
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-25 14:46:19 +01:00
Brendan Le Foll
d1ceeae4e3
cmake: make maa a proper dynamic library and install it correctly
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-23 17:28:14 +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
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
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