On 5/26/06, Grahame Jordan <gbj@...> wrote:
> I am using build 989 and am trying to use GPIO to set and clear bits.
> By running this I would expect that GPIO51 would be cleared
> # echo "AF1 out clear" >/proc/gpio/GPIO51; cat /proc/gpio/GPIO51
> 51 AF1 out set
> # echo "AF2 out clear" >/proc/gpio/GPIO51; cat /proc/gpio/GPIO51
> 51 AF2 out set
> As you see the AF function is working but not setting the bits.
To clear GPIO51, you'd need to use:
echo "GPIO out clear" > /proc/gpio/GPIO51
When you use the alt-functions, it accepts the set/clear but it's ignored.
Vancouver, BC, Canada