Issues about GPIO Status

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

Issues about GPIO Status

1,376件の閲覧回数
tony_l_cai
Contributor III

Hi,all

     When GPIO is input, the value we cat via userspace is correct.But when GPIO is output, the value we cat is wrong. I want to know how to rectify it in the code. Please help me . 3Q~

ラベル(3)
0 件の賞賛
返信
3 返答(返信)

1,198件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi tony

for output GPIO please try to set the SION bit 

i.MX6 output gpio value behaviour

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,198件の閲覧回数
tony_l_cai
Contributor III

Hi,igor

     Our codebase is base on Linux-3.0.35-2473-gb720655,but ,I cant find the file gpio-mxc.c,and on the other hand,out project didnt use the Device tree.Maybe I also need the method how to set the SION bit in detail. Thanks!

0 件の賞賛
返信

1,198件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

one can try memtool in unit tests

https://community.freescale.com/message/374610#374610

Best regards

igor

0 件の賞賛
返信