Age | Commit message (Collapse) | Author |
|
Introduce new flags, GPIO_PIN_INVIN and GPIO_PIN_INVOUT, for this.
ok grange
|
|
- make "man -k gpio" work
- gpioctl(8) should not try to list all gpio devices (it's why we have man -k)
- gpio devices should have "GPIO" in their .Nd, and cross-reference gpio(4)
and gpioctl(8)
second set of fixes for gpio(4) itself coming from mbalmer...
|
|
e.g. the AMD Geode C5536 GPIO.
ok grange
|
|
|
|
|
|
requested by deraadt@
ok grange@
|
|
|
|
With a help from jmc@.
|
|
|
|
|
|
ok grange@
|
|
The gpioctl program allows to manipulate GPIO devices pins
Quick start for the Soekris net4801 users:
# gpioctl -c 20 out pp
# gpioctl 20 1
This will turn on the red error led.
If you want to use JP5 I/O pins, just use the /dev/gpio1 device.
Quick start for the PC Engines WRAP.1C users:
# gpioctl 40
This will read the state of the button (0 means pressed).
# gpioctl -c 2 pp out
This will turn the first led on, to turn off write 1 to the pin,
it's reversed. For the second and the third leds use pins 3 and 18.
ok deraadt@
|