You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/07/07 09:20:43 UTC

[GitHub] [incubator-nuttx] bkueng commented on a change in pull request #1374: gpio: extend gpio_pintype_e for pulldown/up and opendrain

bkueng commented on a change in pull request #1374:
URL: https://github.com/apache/incubator-nuttx/pull/1374#discussion_r450726539



##########
File path: include/nuttx/ioexpander/gpio.h
##########
@@ -100,8 +100,11 @@
 
 enum gpio_pintype_e
 {
-  GPIO_INPUT_PIN = 0,
-  GPIO_OUTPUT_PIN,
+  GPIO_INPUT_PIN = 0, /* float */
+  GPIO_INPUT_PIN_PULLUP,
+  GPIO_INPUT_PIN_PULLDOWN,
+  GPIO_OUTPUT_PIN, /* push-pull */
+  GPIO_OUTPUT_PIN_OPENDRAIN,

Review comment:
       I extended that as well.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org