[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I use gpio port A?

----- Original Message ----- 
From: "Carlos Ojea" <carlosojea@xxxxxxx.es>
To: <dev-etrax@xxxxxxx.com>
Sent: Tuesday, September 09, 2003 12:50 PM
Subject: How can I use gpio port A?

> Hello !:
> I need to use gpio port A but I dont know how, I am using a devboard 82
> with linux 2.4.20.
> I know there is a device '/dev/gpioa' but when I try to write to
> '/dev/gpioa' an error ocurrs ('Operation not permitted').
> Do I need to include some headers in order to use any 'especial
> function' to access port A?
> Regards,
> Carlos

You access the PA pins by using ioctl()s on /dev/gpioa,
see apps/hwtest/serial or similar for example of how to use it.