Poll() function

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

Poll() function

445 Views
mathew_k_t
Contributor II

Hi,

I'm using an imx6ull evk, in which I have implemented a button interrupt. The interrupt working perfectly. But I would like to indicate the interrupt to an application. While searching for various solutions, I found poll().

1. Whether poll() is the solutions for indication interrupt to an application?Confirm it?

2. How to implement poll(), depended variables etc?

Regards

Labels (3)
0 Kudos
1 Reply

336 Views
igorpadykov
NXP Employee
NXP Employee

Hi mathew_k

one can look on

embedded - Polling or Interrupt based method - Stack Overflow 

application can know interrupt status polling (for example for gpio)

GPIOx_PSR register, described in sect.28.5.3 GPIO pad status register (GPIOx_PSR)

i.MX6ULL Reference Manual

https://www.nxp.com/docs/en/reference-manual/IMX6ULLRM.pdf 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos