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

Go to the source code of this file.
Functions | |
| command | xsh_led (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[]) |
Definition in file xsh_led.c.
Shell command (led DESCRIPTOR STATE) turns a specified led on or off.
| 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 23 of file xsh_led.c.
References fprintf(), GPIO1, GPIO_CTRL_LED_OFF, GPIO_CTRL_LED_ON, GPIO_LED_CISCOONG, GPIO_LED_CISCOWHT, GPIO_LED_DMZ, GPIO_LED_WLAN, OK, strncmp(), and SYSERR.
1.5.5