diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-02-28 21:55:11 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-02-28 21:55:11 +0000 |
commit | 8fd6d658a1caeddc0a84dd69ffe45739bd466e74 (patch) | |
tree | 91f79d4d40d898a303998710a18ae62d8b8c7082 /firmware/drivers/pcf50605.c | |
parent | ab66955664f8987d064247dc6d585b5618745d29 (diff) | |
download | rockbox-8fd6d658a1caeddc0a84dd69ffe45739bd466e74.tar.gz rockbox-8fd6d658a1caeddc0a84dd69ffe45739bd466e74.zip |
Add wake on alarm support for Ipods. Rename HAVE_ALARM_MOD to HAVE_ALARM_RTC since it's not always a mod. Make Ipod PCF driver keep other flags in OOCC1 that have been set instead of overwriting them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12522 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/pcf50605.c')
-rw-r--r-- | firmware/drivers/pcf50605.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/pcf50605.c b/firmware/drivers/pcf50605.c index 0610f41aec..cf4ea9fecb 100644 --- a/firmware/drivers/pcf50605.c +++ b/firmware/drivers/pcf50605.c | |||
@@ -89,10 +89,9 @@ int pcf50605_write(int address, unsigned char val) | |||
89 | 89 | ||
90 | int pcf50605_write_multiple(int address, const unsigned char* buf, int count) | 90 | int pcf50605_write_multiple(int address, const unsigned char* buf, int count) |
91 | { | 91 | { |
92 | /* TODO */ | 92 | int i; |
93 | (void)address; | 93 | for (i = 0; i < count; i++) |
94 | (void)buf; | 94 | pp_i2c_send(0x8, address + i, buf[i]); |
95 | (void)count; | ||
96 | return 0; | 95 | return 0; |
97 | } | 96 | } |
98 | 97 | ||
@@ -102,7 +101,8 @@ int pcf50605_write_multiple(int address, const unsigned char* buf, int count) | |||
102 | power on your iPod again. */ | 101 | power on your iPod again. */ |
103 | void pcf50605_standby_mode(void) | 102 | void pcf50605_standby_mode(void) |
104 | { | 103 | { |
105 | pcf50605_write(OOCC1, GOSTDBY | CHGWAK | EXTONWAK); | 104 | const char mask = pcf50605_read(OOCC1) | GOSTDBY | CHGWAK | EXTONWAK; |
105 | pcf50605_write(OOCC1, mask); | ||
106 | } | 106 | } |
107 | 107 | ||
108 | void pcf50605_init(void) | 108 | void pcf50605_init(void) |