summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-08-15 22:54:06 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-08-15 22:54:06 +0000
commitc4a59a290b81cae137f8b3c2b709c9c565701eb9 (patch)
tree9d54832f14b8fe365e427152011b62026f61e898 /bootloader
parent98c9f959e53536a0b63d0376fad198ef883c5c03 (diff)
downloadrockbox-c4a59a290b81cae137f8b3c2b709c9c565701eb9.tar.gz
rockbox-c4a59a290b81cae137f8b3c2b709c9c565701eb9.tar.bz2
rockbox-c4a59a290b81cae137f8b3c2b709c9c565701eb9.zip
eeprom driver for the h3x0 series, cleaned up the h1x0 series driver a bit, added debug entry for h3x0 that allows to write to the eeprom
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10597 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bootloader/main.c b/bootloader/main.c
index 0b058272f1..7c2b1257a9 100644
--- a/bootloader/main.c
+++ b/bootloader/main.c
@@ -357,7 +357,7 @@ void main(void)
power_off();
}
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
firmware_settings.initialized = false;
#endif
if (detect_flashed_rockbox())
@@ -365,7 +365,7 @@ void main(void)
bool load_from_flash;
load_from_flash = !rec_button;
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
if (eeprom_settings_init())
{
/* If bootloader version has not been reset, disk might
@@ -389,7 +389,7 @@ void main(void)
lcd_update();
if (i == 0)
{
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
eeprom_settings_store();
#endif
start_firmware();
@@ -457,7 +457,7 @@ void main(void)
sleep(HZ);
#endif
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
if (firmware_settings.initialized)
{
firmware_settings.disk_clean = false;
@@ -503,7 +503,7 @@ void main(void)
printf("Result: %d", i);
lcd_update();
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
if (firmware_settings.initialized)
eeprom_settings_store();
#endif