Polling an Inputs state

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

Polling an Inputs state

Jump to solution
692 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
Reply
1 Solution
654 Views
Ralf_Rademacher
Contributor III

I think gpio_get_value() will do the job

View solution in original post

0 Kudos
Reply
2 Replies
655 Views
Ralf_Rademacher
Contributor III

I think gpio_get_value() will do the job

0 Kudos
Reply
638 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
Reply