This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352: PowerOff only on Long Press event of KEY_POWER button

Part Number: AM3352

Hi,

I would like to know, if we can poweroff the device using long press event of the KEY_POWER button.
Reason for this is, I'd like to use this button as a multi functional button.
such that, on normal key press events some regular functionality like back press would be recorded and on long press device would be shutdown.

I am using a custom AM3352 based board.