forked from len0rd/rockbox
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
This commit is contained in:
parent
98c9f959e5
commit
c4a59a290b
14 changed files with 132 additions and 50 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue