Brendan Le Foll
d847ae7847
i2c: use uint8_t throughout to make code clearer
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-23 14:21:53 +01:00
Thomas Ingleby
2b8ab38418
maa: hide and rename internal maa functions
...
Based on feedback received. All check functions renamed to setup.
Update all modules to use new name and header.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-21 13:17:16 +01:00
Brendan Le Foll
adcefeaba1
i2c: fix write API to use const char*
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-19 10:34: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
19415ff2e4
i2c: fixed impossible unsigned comparisons
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-13 22:17:42 +00: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
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
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
Brendan Le Foll
6ad98d23e7
i2c.c: fix return type in _init function
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-29 14:01:30 +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
1ba2d6040c
i2c: clarify our usage of the result of the assignment
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-27 23:15:54 +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
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
Brendan Le Foll
ac131e1e17
i2cslave: basic working implimentation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-22 15:32:20 +01:00
Brendan Le Foll
44b43c5063
i2c: fix license header
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-22 15:18:43 +01:00
Brendan Le Foll
e689c4dd39
i2cslave.cxx: add undefined method stub that stopped swig working
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-11 18:43:46 +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
Brendan Le Foll
e471a3055e
i2c.cxx: remove unecessary include
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-11 15:26:58 +01:00
Brendan Le Foll
0504d0310e
i2c.cxx: add functionality to write to i2c
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-11 11:51:40 +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