This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 31d198f5b6311f1a8d60310aa39268735f725ae3
Author: Beat Küng <beat-ku...@gmx.net>
AuthorDate: Thu Jul 9 11:50:14 2020 +0200

    gpio: add new GPIO pin types
    
    NuttX PR: https://github.com/apache/incubator-nuttx/pull/1374
---
 examples/gpio/gpio_main.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/examples/gpio/gpio_main.c b/examples/gpio/gpio_main.c
index d373f23..0bc03f0 100644
--- a/examples/gpio/gpio_main.c
+++ b/examples/gpio/gpio_main.c
@@ -202,7 +202,20 @@ int main(int argc, FAR char *argv[])
         }
         break;
 
+      case GPIO_INPUT_PIN_PULLUP:
+        {
+          printf("  Input pin (pull-up):     Value=%u\n", (unsigned 
int)invalue);
+        }
+        break;
+
+      case GPIO_INPUT_PIN_PULLDOWN:
+        {
+          printf("  Input pin (pull-down):     Value=%u\n", (unsigned 
int)invalue);
+        }
+        break;
+
       case GPIO_OUTPUT_PIN:
+      case GPIO_OUTPUT_PIN_OPENDRAIN:
         {
           printf("  Output pin:    Value=%u\n", (unsigned int)invalue);
 

Reply via email to