diff options
author | Michael Sparmann <theseven@rockbox.org> | 2009-10-11 18:20:56 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2009-10-11 18:20:56 +0000 |
commit | b729a7d75ec5b2fb73aa67c8f986e2793f8efcaf (patch) | |
tree | 8cb993512eff44090b8db093c985ee3ecb9a0f28 /firmware/target/arm/s5l8700/ipodnano2g/rtc-nano2g.c | |
parent | 4ecc5a1e9babe84d815fcf77328a18b86f6edda1 (diff) |
iPod Nano 2G PMU rework, added backlight brightness setting and USB charging speed setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23114 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s5l8700/ipodnano2g/rtc-nano2g.c')
-rw-r--r-- | firmware/target/arm/s5l8700/ipodnano2g/rtc-nano2g.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/rtc-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/rtc-nano2g.c index bad9581d8f..39cecc5291 100644 --- a/firmware/target/arm/s5l8700/ipodnano2g/rtc-nano2g.c +++ b/firmware/target/arm/s5l8700/ipodnano2g/rtc-nano2g.c @@ -33,7 +33,7 @@ int rtc_read_datetime(struct tm *tm) unsigned int i; unsigned char buf[7]; - pmu_read_multiple(0x59, sizeof(buf), buf); + pmu_read_rtc(buf); for (i = 0; i < sizeof(buf); i++) buf[i] = BCD2DEC(buf[i]); @@ -65,7 +65,7 @@ int rtc_write_datetime(const struct tm *tm) for (i = 0; i < sizeof(buf); i++) buf[i] = DEC2BCD(buf[i]); - pmu_write_multiple(0x59, sizeof(buf), buf); + pmu_write_rtc(buf); return 0; } |