Brendan Le Foll
b0707886af
maa.i: fix definition of printError in interface file
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-19 11:47:38 +01:00
Brendan Le Foll
608bc4fdcf
maa.i: add return types to swig constants
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-19 09:58:01 +01:00
Brendan Le Foll
9314eb2c90
maa.i: add printError() function to swig API
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-19 09:51:59 +01:00
Brendan Le Foll
1160c99816
maa.i: rename get_version() to getVersion()
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-19 09:51:31 +01:00
Brendan Le Foll
3731263752
C++: Change enum types to be shorter in C++
...
* This changes the swig interface so Python/Node APIs change slightly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-19 09:49:30 +01:00
Brendan Le Foll
09d3f380c1
swig: add gpio enum definitions on interface file
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-16 14:31:47 +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
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
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
f185877860
aio: remove _u16 suffix from call. Make return type a uint16_t
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-13 22:25:21 +00:00
Brendan Le Foll
f7169cc5c5
swig: Add support for isr/callbacks from python
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-13 20:47:50 +00:00
Brendan Le Foll
83a5e6cde8
maa.i: maa_init is now done after swig initialisation routine
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-07 17:39:58 +01:00
Brendan Le Foll
82aebc27e1
Merge branch 'pinmap-i2cspi' of github.com:tingleby/maa into tingleby-pinmap-i2cspi
2014-05-02 16:43:10 +01:00
Brendan Le Foll
09cec0931b
swig: add unexport() calls to be used by destructors in object api
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 16:33:36 +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
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
Brendan Le Foll
71ab4f4d5b
maa.i: Initial documentation of Swigified object API
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 13:54:51 +01:00
Thomas Ingleby
e68a420f0a
i2c: removed gpio from context
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-02 13:53:20 +01:00
Brendan Le Foll
9878b2e419
maa.i: stop importing all of maa.h definitions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 09:52:06 +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
Brendan Le Foll
8c016318a6
swig: make swig generation of objects generic
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:11:17 +01:00
Brendan Le Foll
201e22f922
swig: name functions explicitly and use %extend to convert _context structs to objects
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:11:16 +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
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
485e4e9bdd
pwm: Add missing include
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-14 17:17:33 +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
Brendan Le Foll
b7d42d470f
maa.i: remove dependancy on -includeall and specifiy which headers to include in maa.i
2014-04-10 11:05:40 +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