Read CS pin value in i.MX6

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Read CS pin value in i.MX6

503 次查看
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 回复

463 次查看
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 项奖励