Private
Public Access
2
0

i2c: Work started on using pinmap with i2c

* Update examples and swig interface.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-05-02 16:07:18 +01:00
parent 1005df1652
commit 64d3c78ca9
7 changed files with 80 additions and 9 deletions

View File

@@ -54,9 +54,10 @@ typedef struct {
/** Initialise i2c context, using board defintions
*
* @param bus i2c bus to use
* @return maa_i2c_context i2c context ready for other calls.
*/
maa_i2c_context* maa_i2c_init();
maa_i2c_context* maa_i2c_init(int bus);
/** Initialise i2c context, passing in spi bus to use.
*

View File

@@ -138,7 +138,11 @@ unsigned int maa_check_gpio(int pin);
*/
unsigned int maa_check_aio(int pin);
//unsigned int maa_check_pwm(int pin);
/** Check i2c interface, sets up multiplexer on device.
*
* @return unsigned int if using /dev/i2c-2 returned would be 2
*/
unsigned int maa_check_i2c();
/** Get the version string of maa autogenerated from git tag
*