Private
Public Access
2
0

i2c: generalising api

* Added raw init function (maa_i2c_init_raw) for not using pinmap

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-05-02 14:24:08 +01:00
parent e68a420f0a
commit a8661e599c

View File

@@ -52,8 +52,19 @@ typedef struct {
/*@}*/
} maa_i2c_context;
/** Initialise i2c context, using board defintions
*
* @return maa_i2c_context i2c context ready for other calls.
*/
maa_i2c_context* maa_i2c_init();
/** Initialise i2c context, passing in spi bus to use.
*
* @param bus The i2c bus to use i.e. /dev/i2c-2 would be "2"
* @return maa_i2c_context i2c context ready for other calls.
*/
maa_i2c_context* maa_i2c_init_raw(unsigned int bus);
/** Sets the frequency of the i2c context
*
* @param dev the i2c context