Polling an Inputs state

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

Polling an Inputs state

跳至解决方案
690 次查看
Ralf_Rademacher
Contributor III

I want to write a character device driver and poll an gpio input state inside this driver (sai1_rxd0).

 

Is there somebody who can please provide an example codesnippet how i can poll an input at i.MX8MP inside a driver?

I don't want to use interrupts...

Best

Ralf

0 项奖励
回复
1 解答
652 次查看
Ralf_Rademacher
Contributor III

I think gpio_get_value() will do the job

在原帖中查看解决方案

0 项奖励
回复
2 回复数
653 次查看
Ralf_Rademacher
Contributor III

I think gpio_get_value() will do the job

0 项奖励
回复
636 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Don't have a code snoppet but if you are modify a driver the  gpi_get_value() will do the job, but you have to compile everything again to make it works.

Regards

0 项奖励
回复