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
解決済! 解決策の投稿を見る。
I think gpio_get_value() will do the job
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