Polling an Inputs state

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

Polling an Inputs state

ソリューションへジャンプ
693件の閲覧回数
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 解決策
655件の閲覧回数
Ralf_Rademacher
Contributor III

I think gpio_get_value() will do the job

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
656件の閲覧回数
Ralf_Rademacher
Contributor III

I think gpio_get_value() will do the job

0 件の賞賛
返信
639件の閲覧回数
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 件の賞賛
返信