diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-04-20 21:20:16 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-04-20 21:20:16 +0000 |
commit | a333e489d2e984b87f7a33f33b9411292e04f489 (patch) | |
tree | 2754e5a574b5fa3fdb263e0f2d90b05afd4b94d0 /firmware/drivers | |
parent | ac1b30ef7351fdda552dede1cd08add823ca602c (diff) |
Enable RTC for Cowon D2. Time readout works, but date is currently junk.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17200 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/pcf50606.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/drivers/pcf50606.c b/firmware/drivers/pcf50606.c index a93b94399e..d28fc00e7d 100644 --- a/firmware/drivers/pcf50606.c +++ b/firmware/drivers/pcf50606.c @@ -27,6 +27,16 @@ int pcf50606_write(int address, unsigned char val) return i2c_write(PCF50606_ADDR, data, 2); } +int pcf50606_write_multiple(int address, const unsigned char* buf, int count) +{ + int i; + + for (i = 0; i < count; i++) + pcf50606_write(address + i, buf[i]); + + return 0; +} + int pcf50606_read(int address) { unsigned char val = -1; |