File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ extern "C" {
74
74
* # Defined behavior
75
75
* * ::i2c_init initializes i2c_t control structure
76
76
* * ::i2c_init configures the pins used by I2C
77
+ * * ::i2c_free returns the pins owned by the I2C object to their reset state
77
78
* * ::i2c_frequency configure the I2C frequency
78
79
* * ::i2c_start sends START command
79
80
* * ::i2c_read reads `length` bytes from the I2C slave specified by `address` to the `data` buffer
@@ -144,6 +145,13 @@ extern "C" {
144
145
*/
145
146
void i2c_init (i2c_t * obj , PinName sda , PinName scl );
146
147
148
+ /** Release a I2C object
149
+ *
150
+ * Return the pins owned by the I2C object to their reset state
151
+ * @param obj The I2C object to deinitialize
152
+ */
153
+ void i2c_free (i2c_t * obj );
154
+
147
155
/** Configure the I2C frequency
148
156
*
149
157
* @param obj The I2C object
You can’t perform that action at this time.
0 commit comments