File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ extern "C" {
35
35
* * ::gpio_init and other init functions can be called with NC or a valid PinName for the target - Verified by ::gpio_nc_test
36
36
* * ::gpio_is_connected can be used to test whether a gpio_t object was initialized with NC - Verified by ::gpio_nc_test
37
37
* * ::gpio_init initializes the GPIO pin
38
+ * * ::gpio_free returns the pin owned by the GPIO object to its reset state
38
39
* * ::gpio_mode sets the mode of the given pin
39
40
* * ::gpio_dir sets the direction of the given pin
40
41
* * ::gpio_write sets the gpio output value
@@ -85,6 +86,12 @@ int gpio_is_connected(const gpio_t *obj);
85
86
*/
86
87
void gpio_init (gpio_t * obj , PinName pin );
87
88
89
+ /** Releases the GPIO pin
90
+ *
91
+ * @param obj The GPIO object to release
92
+ */
93
+ void gpio_free (gpio_t * obj );
94
+
88
95
/** Set the input pin mode
89
96
*
90
97
* @param obj The GPIO object (must be connected)
You can’t perform that action at this time.
0 commit comments