summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-01-31 17:10:01 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-01-31 17:10:01 +0000
commit83c831deae024a0b696b4232da2f009d7ef889f6 (patch)
tree7a5aeb16d28c7066eb03577561e614f9794bc339 /firmware
parente79ba15115efe56a72e20cfcdf94af1bf3f8bcb7 (diff)
downloadrockbox-83c831deae024a0b696b4232da2f009d7ef889f6.tar.gz
rockbox-83c831deae024a0b696b4232da2f009d7ef889f6.tar.bz2
rockbox-83c831deae024a0b696b4232da2f009d7ef889f6.zip
Add power off for the Sansa. Thanks to Antonius Hellmann for figuring out how using the Sansa emulator in FS #6524.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12165 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/power-e200.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/power-e200.c b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
index 42aadf66c0..8c40e3b0ac 100644
--- a/firmware/target/arm/sandisk/sansa-e200/power-e200.c
+++ b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
@@ -19,6 +19,7 @@
#include <stdbool.h>
#include "cpu.h"
+#include "i2c-pp.h"
void power_init(void)
{
@@ -26,6 +27,7 @@ void power_init(void)
void power_off(void)
{
+ pp_i2c_send(0x46, 0x20, 0x20);
}
bool charger_inserted(void)