Porting a software which uses INP_GPIO?

Lowell Gilbert freebsd-ports-local at be-well.ilk.org
Thu Nov 21 21:21:27 UTC 2013


Alexander Leidinger <Alexander at Leidinger.net> writes:

> I try to compile a software on FreeBSD which wants to use INP_GPIO,
> OUTP_GPIO and some oder *GPIO* things.
>
> A quick googling shows me some raspberry pi sites. Is this something
> linux-specific (so that I can forget this software on FreeBSD as long
> as we don't gain something similar)?
>
> Searching for gpio in names of ports didn't show a hit and in the
> basesystem includes I can't find it either.

GPIO is a way to do pin assignments for a chip package at run-time. I
use it on embedded platforms all the time, but it isn't normally
available on a PC. There's a gpioctl(1) that should be able to set the
a pin for input or output, as those flags indicate, or programmatically
I guess it would be GPIO_PIN_INPUT or GPIO_PIN_OUTPUT in
/usr/include/sys/gpio.h but again, you need to have the hardware for it.


More information about the freebsd-ports mailing list