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
This commit is contained in:
Rob Purchase 2008-04-20 21:20:16 +00:00
parent ac1b30ef73
commit a333e489d2
2 changed files with 11 additions and 1 deletions

View file

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

View file

@ -59,7 +59,7 @@
#define HAVE_TOUCHPAD
/* define this if you have a real-time clock */
//#define CONFIG_RTC RTC_TCC780X
#define CONFIG_RTC RTC_PCF50606
/* define this if you have RTC RAM available for settings */
//#define HAVE_RTC_RAM