GPIO based suspend/resume in imx6sl

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

GPIO based suspend/resume in imx6sl

505 次查看
jansirani
Contributor III

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

0 项奖励
1 回复

370 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Jansi

one can the same algorithm for gpio,  just add additional timer for 250ms detection,

use examples:

Working with GPIO on the Wandboard and Writing an Android Driver for GPIO Interrupts | Using Android...

https://d2phydb95qamfd.cloudfront.net/products/docs/vab-820/Android+BSP+Development+Guide/VAB-820_An...

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!

-----------------------------------------------------------------------------------------------------------------------