summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-12-04 13:05:56 +0000
committerDave Chapman <dave@dchapman.com>2005-12-04 13:05:56 +0000
commit5009c9c1b82493421b6cec0fdf8b4f54ec4ff02c (patch)
tree8a0d770854730bc01561e0e8418b123f27ccb09c /apps/settings.c
parent11b2ade5c80d6bcd95f65ac1e3aed9dbf59690c5 (diff)
downloadrockbox-5009c9c1b82493421b6cec0fdf8b4f54ec4ff02c.tar.gz
rockbox-5009c9c1b82493421b6cec0fdf8b4f54ec4ff02c.zip
Split the HAVE_RTC define into HAVE_RTC, HAVE_RTC_RAM and CONFIG_RTC - in preparation for targets (H300, iPod) which have a clock (HAVE_RTC) but no general purpose RAM available for settings data (HAVE_RTC_RAM). CONFIG_RTC is used to specify the low-level driver required.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8144 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 49423ab629..edcef4a271 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -574,7 +574,7 @@ static void init_config_buffer( void )
574static int save_config_buffer( void ) 574static int save_config_buffer( void )
575{ 575{
576 unsigned short chksum; 576 unsigned short chksum;
577#ifdef HAVE_RTC 577#ifdef HAVE_RTC_RAM
578 unsigned int i; 578 unsigned int i;
579#endif 579#endif
580 580
@@ -583,7 +583,7 @@ static int save_config_buffer( void )
583 config_block[ RTC_BLOCK_SIZE - 2 ] = chksum >> 8; 583 config_block[ RTC_BLOCK_SIZE - 2 ] = chksum >> 8;
584 config_block[ RTC_BLOCK_SIZE - 1 ] = chksum & 0xff; 584 config_block[ RTC_BLOCK_SIZE - 1 ] = chksum & 0xff;
585 585
586#ifdef HAVE_RTC 586#ifdef HAVE_RTC_RAM
587 /* FIXME: okay, it _would_ be cleaner and faster to implement rtc_write so 587 /* FIXME: okay, it _would_ be cleaner and faster to implement rtc_write so
588 that it would write a number of bytes at a time since the RTC chip 588 that it would write a number of bytes at a time since the RTC chip
589 supports that, but this will have to do for now 8-) */ 589 supports that, but this will have to do for now 8-) */
@@ -637,7 +637,7 @@ static int load_config_buffer(int which)
637 } 637 }
638 } 638 }
639 639
640#ifdef HAVE_RTC 640#ifdef HAVE_RTC_RAM
641 if(!correct) 641 if(!correct)
642 { 642 {
643 /* If the disk sector was incorrect, reinit the buffer */ 643 /* If the disk sector was incorrect, reinit the buffer */