gpio: add new GPIO pin types
NuttX PR: https://github.com/apache/incubator-nuttx/pull/1374
This commit is contained in:
parent
d07db1fa5e
commit
31d198f5b6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user