AnsweredAssumed Answered

How do I toggle a gpio on the quick start board?

Question asked by ramon c on Jul 31, 2013
Latest reply on Jul 31, 2013 by ramon c

I'd like to set a gpio to be an output then toggle it using the GPIO Interfaces module built into linux.



gpio_direction_output(unsigned gpio, int value);

gpio_set_value(unsigned gpio, int value);


My problem is what to use for the value unsigned gpio - this is a number that gets mapped to a pin on the processor.

Once I get this mapping then I can refer back to the schematics and choose a pin that is connected to one of the connectors.

I can't find this mapping in the documentation and I am not experienced enough to figure it out from the source code.  Although if someone pointed me in the right direction I could probably find it :-)