summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-05-02 23:25:55 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-05-02 23:25:55 +0000
commitfe2319372abd6b1f96bdc3ca45e5f6fa3165d6ed (patch)
tree0b8c5e2543615640981b14a14de7bd651665b629 /firmware/drivers/rtc
parentd5f7dab2308859d98837f76f3b2374645130e082 (diff)
downloadrockbox-fe2319372abd6b1f96bdc3ca45e5f6fa3165d6ed.zip
rockbox-fe2319372abd6b1f96bdc3ca45e5f6fa3165d6ed.tar.gz
rockbox-fe2319372abd6b1f96bdc3ca45e5f6fa3165d6ed.tar.bz2
rockbox-fe2319372abd6b1f96bdc3ca45e5f6fa3165d6ed.tar.xz
M:Robe 500 - Fix some of the Keymaps, touchscreen improvements to decrease inacurate reads, add support for dynamic frequency (was running at 87.5 MHz, now it runs at 175 MHz when boosted), disable clock to unneded modules (decreased power by 20 mA), LCD turnoff now works without graphic glitches, battery ADC read now returns scaled voltage, define backlight fading
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20846 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/rtc')
-rw-r--r--firmware/drivers/rtc/rtc_rx5x348ab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/rtc/rtc_rx5x348ab.c b/firmware/drivers/rtc/rtc_rx5x348ab.c
index 286cd77..2b4e17c 100644
--- a/firmware/drivers/rtc/rtc_rx5x348ab.c
+++ b/firmware/drivers/rtc/rtc_rx5x348ab.c
@@ -36,7 +36,7 @@ void rtc_init(void)
int rtc_read_datetime(unsigned char* buf)
{
char command = ADDR_READ|ADDR_BURST; /* burst read from the start of the time/date reg */
- spi_block_transfer(SPI_target_RX5X348AB,
+ spi_block_transfer(SPI_target_RX5X348AB, true,
&command, 1, buf, 7);
return 1;
}
@@ -48,7 +48,7 @@ int rtc_write_datetime(unsigned char* buf)
data[0] = command;
for (i=1;i<8;i++)
data[i] = buf[i-1];
- spi_block_transfer(SPI_target_RX5X348AB,
+ spi_block_transfer(SPI_target_RX5X348AB, true,
data, 8, NULL, 0);
return 1;
}