diff options
author | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2012-01-15 17:40:10 +0400 |
---|---|---|
committer | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2012-01-17 19:49:28 +0400 |
commit | 978e506f1b107f04e5d52776e6c059a133a0937c (patch) | |
tree | 0a64519aab7b32d6ad831609423f8cec3a586c95 /firmware/target/arm/rk27xx/hm60x | |
parent | 7b28711f6cf53112728aca4d252b1c1afb09582a (diff) |
HM-60x: Implement power off.
Change-Id: Ia3ae38bba09996e1d1e6043f340dbbc3a2ad68b5
Diffstat (limited to 'firmware/target/arm/rk27xx/hm60x')
-rw-r--r-- | firmware/target/arm/rk27xx/hm60x/power-hm60x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/rk27xx/hm60x/power-hm60x.c b/firmware/target/arm/rk27xx/hm60x/power-hm60x.c index 5c2abeb121..45cc390d13 100644 --- a/firmware/target/arm/rk27xx/hm60x/power-hm60x.c +++ b/firmware/target/arm/rk27xx/hm60x/power-hm60x.c @@ -28,7 +28,8 @@ void power_off(void) { - + GPIO_PCCON &= ~(1<<0); + while(1); } void power_init(void) |