Private
Public Access
2
0
Commit Graph

20 Commits

Author SHA1 Message Date
Brendan Le Foll
32d8a6f0ca syslog: remove all fprintf calls and use syslog instead
Syslog is now used for all error messages, return values in the code should be
used by programmers to see the status of the library/board and syslog can be
used to see quickly from a debugging perspective what has gone wrong. A few
cosmetics where improved as well as a mraa_set_log_level() call where the
syslog log mask can be set directly from libmraa.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-09-25 14:31:04 +01:00
Thomas Ingleby
57d58b66ca i2c: add init(pre-post) hooks
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 18:19:07 +01:00
Thomas Ingleby
00f188c235 i2c: internal structure to mraa_internal_types
* For use in hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 17:52:08 +01:00
Thomas Ingleby
dc7dde857b i2c: add Brendan's email to header
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 17:49:31 +01:00
Brendan Le Foll
c0b8360698 i2c.c: add newlines at the end of all error msgs
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-11 14:47:52 +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
ab071e64de i2c: make maa_i2c_read always return the length of the read
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-11 10:49:23 +01:00
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