imx28: GPIO number

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

imx28: GPIO number

1,413件の閲覧回数
BrilliantovKiri
Senior Contributor I

Hello!

I work with custom board on iMX28.

Now I should export some GPIO, e.g. GPIO0_7 as input and GPIO0_16 as otput.

Where can I found GPIO numbers?

Thank you and excuse my bad english.

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

1,235件の閲覧回数
csotoalonso
Contributor III

For GPIOx_y, where x is the GPIO bank and y is the GPIO bit inside this bank, use the following formula:

GPIO_number = 32*x + y

e.g. GPIO3_18 should be 32*3+18 = 114, or GPIO114