is there any sample application that use gpio or uart3 or i2c of the beagleboard and runs on linux?

Hi All,

How can I control gpio, uarts, I2C, SPI of expansion slot on the
beagleboard with my linux application? is there any sample code or doc
about it?

Regards
Emre ERTAŞ