I am putting together a rapid prototype system that is running Android on a Freescale iMX6 processor. I am trying to get the iMX6 to toggle a couple of GPIO pins, but I cannot figure out how to translate Android’s GPIO numbering to the iMX6 GPIO numbering. Android has class folders for GPIO175 and GPIO176, plus ones call GPIOCHIP128, GPIOCHIP160, etc but don’t know which GPIOs these would be on the iMX6.
Hi Mike
Numbering is the same as in Linux, for example
Request the pin to be used as GPIO:
#define LED_GPIO 6*32+7 */(GPIO7_7)
For Android link below shows usage
http://android.serverbox.ch/?p=972
https://community.freescale.com/docs/DOC-1459
Best regards
chip
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------