fdcavalcanti commented on code in PR #20226:
URL: https://github.com/apache/nuttx/pull/20226#discussion_r4066198964


##########
arch/xtensa/src/common/espressif/esp_gpio.h:
##########
@@ -157,6 +157,19 @@ extern "C"
 
 int esp_configgpio(int pin, gpio_pinattr_t attr);
 
+/****************************************************************************
+ * Name: esp_getconfiggpio
+ *
+ * Description:
+ *   Return the attr last passed to esp_configgpio() for this pin, so a
+ *   caller that has to temporarily reconfigure a pin (e.g. PM wake-source
+ *   setup) can restore it afterward without needing its own knowledge of
+ *   what the pin is normally used for.
+ *
+ ****************************************************************************/
+
+gpio_pinattr_t esp_getconfiggpio(int pin);

Review Comment:
   Same as in the source file



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to