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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

774件の閲覧回数
monzie
Contributor II

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

ie.:

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 :-)

ラベル(2)
0 件の賞賛
1 返信

549件の閲覧回数
monzie
Contributor II

For the others new to linux arm the information is in Chapter 13 of the MX53UG.pdf