imx233/fuze+: add a small delay before powering off to allow the user to release the power button

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30979 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2011-11-14 19:46:13 +00:00
parent 7fec08927b
commit 1852dd89ed

View file

@ -54,6 +54,8 @@ void power_init(void)
void power_off(void)
{
/* wait one second, useful for the user to stop touching anything */
sleep(HZ / 2);
/* power down */
HW_POWER_RESET = HW_POWER_RESET__UNLOCK | HW_POWER_RESET__PWD;
while(1);