Intel EG20T GPIO on Windows 7 Embedded

639 views Asked by At

I'm currently trying to listen for when a GPIO input pin goes high by using an interrupt on an Intel Atom board with a EG20T platform controller. I'm using intel's driver and have found their programmers guide here: http://www.intel.com/content/www/us/en/intelligent-systems/previous-generation/pch-eg20t-gpio-win-programmers-guide.html

It seems fairly straight forward, make deviceIOControl calls to the specific pin with the macro for the operation you with to perform, but there are still some things I'm confused about.

  1. How do I create the hHandle to pass into the DeviceIOControl call? Or more specifically, if I use CreateFile what do I pass in as the file/device name?
  2. I don't really understand how Notify works, does the code just wait on that method until the pin status changes and then continues with the new data in the output buffer?
0

There are 0 answers