gpio_request() include

How do i include the gpio api so i can compile a program like this:

#include <linux/gpio.h>
Main()
{
gpio_request(168);
Do something with it
}

Regards teddy

Teddy,
Here is some info on using GPIOs:

Mark

I’ve worked up an example for my students that uses gpio both in and out [1]. It’s rather easy once you see how it’s done.

–Mark

[1] http://elinux.org/EBC_Exercise_03_gpio_Polling_and_Interrupts