GPIO based suspend/resume in imx6sl

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO based suspend/resume in imx6sl

619件の閲覧回数
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 返信

484件の閲覧回数
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!

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