gpio: add new GPIO pin types

NuttX PR: https://github.com/apache/incubator-nuttx/pull/1374
This commit is contained in:
Beat Küng 2020-07-09 11:50:14 +02:00 committed by Alan Carvalho de Assis
parent d07db1fa5e
commit 31d198f5b6

View File

@ -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);