Read CS pin value in i.MX6

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

Read CS pin value in i.MX6

502件の閲覧回数
stevegabriel123
Contributor I

I am using i.MX6ull processor as slave. I want to read the status of the CS pin which is ecspi4 SS0 pin.

In which file i should monitor CS pin status?

I have tried to search in spi-imx.c file but i could not get high/low status(value) of CS pin.

please help me where to read status of this pin.

Thank you in advance.

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

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

Hi steve

>I have tried to search in spi-imx.c file but i could not get high/low status(value) of CS pin.

I am afraid there are no such codes in driver.

One can try to reconfigure it as gpio and read its value, example how access to register

can be found in memtool  memtool.c\memtool\test - imx-test - i.MX Driver Test Application Software 

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

0 件の賞賛