mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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:
parent
7fec08927b
commit
1852dd89ed
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue