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:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user