1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Barry Wardell 2007-01-31 17:10:01 +00:00
parent e79ba15115
commit 83c831deae

View file

@ -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)