hello everyone,
we designed one custom board same as iMX6SLEVK and ported Android(Kitkat) successfully.
In our custom board we used GPIO's instead of Button matrix keys to implement the suspend/resume .
so how to implement GPIO based suspend/resume in android platform?
Ex: If i press switch for 250ms ,if my board is in wakeup mode it should goto sleep mode.
how i can implement this ?
Regards,
Jansirani
Hi Jansi
one can the same algorithm for gpio, just add additional timer for 250ms detection,
use examples:
http://www.ijareeie.com/upload/2014/june/15_Porting.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------