On 2009-01-23, Lars Noodén <[email protected]> wrote:
> A while back Marc Balmer wrote:
>
>               Beware that the GPIO subsystem has seen substantial
>               changes recently.  In -current, and thus upcoming
>               releases, GPIO pins can only be configured at
>               securelevel 0.
>
> Where is a description of the upcoming changes, for those who would like
> to plan?
>
> Regards
> -Lars

It's probably simplest to just read the new version of the manual
pages:

http://www.openbsd.org/cgi-bin/man.cgi?query=gpioctl&manpath=OpenBSD+Current&arch=i386
http://www.openbsd.org/cgi-bin/man.cgi?query=gpio&manpath=OpenBSD+Current&arch=i386

Basically you must configure the pins for the type of operation you
require (in, out, inout <etc>) by adding gpioctl commands in rc.securelevel.
Once configured, a pin is available for use after the securelevel has been
raised.

On some machines, some GPIO pins could destroy your hardware, this
gives some extra protection against accidental or deliberate misuse.

$ grep gpio /usr/src/usr.bin/mg/theo.c


_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to