Polling an Inputs state

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Polling an Inputs state

Jump to solution
436 Views
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 Kudos
1 Solution
398 Views
Ralf_Rademacher
Contributor III

I think gpio_get_value() will do the job

View solution in original post

0 Kudos
2 Replies
399 Views
Ralf_Rademacher
Contributor III

I think gpio_get_value() will do the job

0 Kudos
382 Views
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 Kudos