TX53 configure gpio pins from c linux code

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

TX53 configure gpio pins from c linux code

971件の閲覧回数
jeffallan
Contributor I

Hello All

I know this question has been asked, I would like to set/read a pin on the TX53 module pin 153 which corresponds to GPIO2[20], which as I understand it can be configured as WEIM_A[18], DISP1_DAT[13], CSI1_D[13], BT_CFG1[3],

I have tried from user space using the Linux command line to export pin 90, and reading the value with command cat /sys/class/gpio/gpio90/value, the pin which is an input is floating high, and can easily be pulled down by say a 100k resistor. So I know it is an input, but it always reads as 0, so I am either not reading correct gpio port, or it is not configured. Without recompiling the Kernel, is it possible from application code to configure the pin and read the pins status?

There doesn't appear to be a step by step guide on doing this.

Any help would be welcome.

Jeff

ラベル(2)
2 返答(返信)

675件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Jeff

one can try to use memtool ( /unit_tests/memtool ) for accessing registers

Best regards

igor

675件の閲覧回数
jeffallan
Contributor I

Thanks for reply.

Jeff

0 件の賞賛
返信