From 331b7968c8606a58e5458d98559ac6366a767dd2 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 27 Mar 2011 15:03:49 +0000 Subject: Updates from Uros git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3424 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/nuttx/i2c.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'nuttx/include') diff --git a/nuttx/include/nuttx/i2c.h b/nuttx/include/nuttx/i2c.h index 471d25619..b4aadb709 100644 --- a/nuttx/include/nuttx/i2c.h +++ b/nuttx/include/nuttx/i2c.h @@ -251,6 +251,24 @@ extern "C" { EXTERN FAR struct i2c_dev_s *up_i2cinitialize(int port); + +/**************************************************************************** + * Name: up_i2cuninitialize + * + * Description: + * De-initialize the selected I2C port, and power down the device. + * + * Input Parameter: + * Device structure as returned by the up_i2cinitalize() + * + * Returned Value: + * OK on success, ERROR when internal reference count missmatch or dev + * points to invalid hardware device. + * + ****************************************************************************/ + +EXTERN int up_i2cuninitialize(FAR struct i2c_dev_s * dev); + #undef EXTERN #if defined(__cplusplus) } -- cgit v1.2.3