Can any one give sample C code for reading and writing GPIO pins for BB (ubuntu 10.04 installed)?

Hi all,
          Can any one give sample C code for reading and writing GPIO
pins for BB (ubuntu 10.04 installed)?
Or atleast link to some tutorials or hints etc. Any help is
appreciated.

Devanand T

Which BB are you talking about?

Gerald

sorry BB here I meant beagleboard.

BeagleBoard or BeagleBoard-xM?

Gerald

ordinary Beagleboard

rev c3

Hi,

Here are some example drivers using GPIO: https://gitorious.org/beaconboard-peripheral-examples

Br,
Marko

It is meant for angstrom right.will it work for ubuntu?

It is meant for angstrom right.will it work for ubuntu?

If you want to run it as it is, you need a beacon board. Ubuntu is not a problem.