#include <kernel.h>#include <gpio.h>#include <stdio.h>#include <string.h>

Go to the source code of this file.
Functions | |
| command | xsh_gpiostat (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[]) |
Definition in file xsh_gpiostat.c.
Shell command (gpiostat) provides information about the current status of the GPIO pins.
| stdin | descriptor of input device | |
| stdout | descriptor of output device | |
| stderr | descriptor of error device | |
| nargs | number of arguments in args array | |
| args | array of arguments |
Definition at line 24 of file xsh_gpiostat.c.
References gpio_csreg::control, gpio_csreg::enable, fprintf(), GPIO_BASE, GPIO_PIN_COUNT, gpio_csreg::input, OK, gpio_csreg::output, strncmp(), and SYSERR.
1.5.5