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 http://www.intel.com/content/www/us/en/intelligent-systems/previous-generation/pch-eg20t-gpio-win-programmers-guide.html
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 the Notify command works. Does the thread just block on that DeviceIOControl call until the pin status changes, and then continues with the new data in the output buffer?
I also found this thread where someone mentioned there was a code example, I'd very much like to get access to that as it may be able to answer my questions.
Thanks
链接已复制
Hello Casey,
Thank you for contacting Intel Embedded Community.
The information that may help you is stated in the https://www-ssl.intel.com/content/www/us/en/secure/intelligent-systems/privileged/eg20t-sample-reference-code.html Intel(R) Platform Controller Hub EG20T Sample Reference Code version 1.1. In order to have access to this document, please request an upgrade from your Basic EDC account to a Privileged account, go to http://www.intel.com/content/www/us/en/embedded/embedded-design-centersupport.html http://www.intel.com/content/www/us/en/embedded/embedded-design-centersupport.html and click on "Manage Your Intel Profile" found in the "Manage Your Account" section of the page. From there you can request an upgrade. After you submit the application, please let us know and we will expedite the review of your application.
Best Regards,
Carlos A.
Hello Casey,
Thanks for your reply.
Please email your professor's name, phone and email address to mailto:edc_technical.support@intel.com edc_technical.support@intel.com. Someone from our Universities program will contact him.
Best Regards,
Carlos A.
