Private
Public Access
2
0
Commit Graph

41 Commits

Author SHA1 Message Date
Brendan Le Foll
c5b0d7a1d1 python/mraa.i: Fix memory leak on python Spi::write and I2c::write
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-07-02 19:17:53 +01:00
Brendan Le Foll
e0ce5454bd uart: move string funcs to {read,write}Str
This commit adds raw binary read/write functions using the same typemaps as I2c
functions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 10:58:11 +01:00
Alexander Komarov
4302f0d0c3 java: Added Java SWIG binding creation
%init directive is not supported in java so move %init to js/py interface files

Signed-off-by: Alexander Komarov <alexander.komarov@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-24 12:12:11 +01:00
Brendan Le Foll
4599f3c12a tests: add cmake ctest infrastructure so make test can run
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-07 23:52:39 +01:00
Brendan Le Foll
2138802b59 docs: Improve python docs
This commit adds a bunch of includes from the C/C++ doxygen doc into the
sphinx/python doc to make it more useful. It also splits out the doc of the
classes using autoclass instead of autodoc to make it nicer to navigate.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-03 21:42:31 +01:00
Thomas Ingleby
2388fb9a2a swig/python: rename python-mraa.i to mraa.i
Seemed to be a problem when generating python swig module when using
cmake version 3.2.1

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2015-03-23 17:07:54 +00:00
Kevron Rees
62213fad77 python: build with python 2.7 in the correct python site dir
This commit also introduces BUILDPYTHON3 option, by default mraa will look for
a python 2 installation

Signed-off-by: Kevron Rees <tripzero.kev@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-03-18 10:30:17 +00:00
Brendan Le Foll
a2220e3636 python-mraa.i: ValueError when expecting bytearray but dont get it
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-02-25 19:23:25 +00:00
Brendan Le Foll
b7a0856f51 spi: Make Spi write() work from SWIG with typemaps
This change also changes the C++ API write(char) call to writeByte(uint8_t) and
the write() call now takes a uint8_t* instead of a char*. This should not alter
any code significantly and does not affect the C API.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-01-14 11:52:12 +00:00
Brendan Le Foll
31b16735e9 python-mraa.i: Add typemaps to make I2c::{read,write} natural
Typemaps now make uint8_t *data, int length map to a bytearray

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-01-06 11:24:55 +00:00
Helio Chissini de Castro
ed1fc6cdd2 cmake: Define library suffix in case of 64 bits multilib archs in linux
Signed-off-by: Helio Chisisni de Castro <helio@kde.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-12-02 17:14:52 +00:00
Brendan Le Foll
c5c5c9b700 doc: cleanup internal documentation and naming
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-10-03 10:18:26 +01:00
Brendan Le Foll
dcc4efbaf8 hello_isr.py: add sleep to the example to reduce confusion
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-09-19 01:06:59 +01:00
Thomas Ingleby
0696268be3 python: dont set c_flags globally
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-09-09 17:29:42 +01:00
Brendan Le Foll
2687e5a7c4 docs: add common i2c doc page i2c.txt
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-09-07 21:20:06 +01:00
Brendan Le Foll
551e553894 example.rst: improve and fill out python documentation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-08-05 10:58:16 +01:00
Brendan Le Foll
1b2ff8af55 sphinx: update python module documentation to reflect latest changes
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-31 10:25:24 +02:00
Brendan Le Foll
4b0f24367a common.hpp: use common.hpp instead of renaming C functions in interface
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-04 15:42:04 +01:00
Brendan Le Foll
702cfcaef5 CMakeLists.txt: update pymraa to python-mraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-03 14:39:23 +01:00
Brendan Le Foll
c821c84e4a mraa: pymraa becomes mraa and mraajs becomes mraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-25 17:49:07 +01:00
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
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
2c278acfcd cmake: install python & node.js modules correctly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-04 12:06:04 +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
521b6817d7 python: include examples page for sphinx documentation that links to src examples
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-20 15:39:58 +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
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
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
77b2e484d7 sphinx: make python documentation generation use sphinx
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-02 09:51:42 +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
Brendan Le Foll
82eacc48e1 pydoc: fix generation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-30 14:49:33 +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
34cbc434b0 doxy2swig.py: make script executable
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-29 16:56:37 +01:00
Brendan Le Foll
47eea60865 pydoc: add make pydoc target to generate pydoc html
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-29 16:40:16 +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
25f0dc5f9b pymaa.i: add rename to remove maa_ prefix from python lib
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-28 18:10:12 +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
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