summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-08-09 12:04:13 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-08-09 12:04:13 +0000
commite1eb91b976621f03fe7082e5290f47d09f6d7b2e (patch)
treeeca734c2a193dc8f933b784a72969ccc3b9101ea /firmware/drivers
parent0f87f8fd366b0869c001a7d4e8ca6b2e27065e7b (diff)
downloadrockbox-e1eb91b976621f03fe7082e5290f47d09f6d7b2e.zip
rockbox-e1eb91b976621f03fe7082e5290f47d09f6d7b2e.tar.gz
rockbox-e1eb91b976621f03fe7082e5290f47d09f6d7b2e.tar.bz2
rockbox-e1eb91b976621f03fe7082e5290f47d09f6d7b2e.tar.xz
Bootloader support to search firmware also from flash. Bootloader <->
Rockbox communication when Rockbox has been flashed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10499 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/eeprom_24cxx.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/firmware/drivers/eeprom_24cxx.c b/firmware/drivers/eeprom_24cxx.c
index 75521ce..03e5a3d 100644
--- a/firmware/drivers/eeprom_24cxx.c
+++ b/firmware/drivers/eeprom_24cxx.c
@@ -82,10 +82,6 @@ static void sw_i2c_start(void)
static void sw_i2c_stop(void)
{
- // SCL_LO;
- // DELAY;
- // SDA_LO;
- // DELAY;
SCL_HI;
DELAY;
SDA_HI;
@@ -294,7 +290,7 @@ int eeprom_24cxx_read_byte(unsigned int address, char *c)
if (ret < 0)
{
/* keep between {} as logf is whitespace in normal builds */
- logf("EEPROM Fail: %d/%d", ret, address);
+ logf("EEPROM rFail: %d/%d", ret, address);
}
} while (ret < 0 && count--);
@@ -325,7 +321,7 @@ int eeprom_24cxx_write_byte(unsigned int address, char c)
if (ret < 0)
{
/* keep between {} as logf is whitespace in normal builds */
- logf("EEPROM Fail: %d/%d", ret, address);
+ logf("EEPROM wFail: %d/%d", ret, address);
}
} while (ret < 0 && count--) ;
@@ -357,7 +353,7 @@ int eeprom_24cxx_read(unsigned char address, void *dest, int length)
int eeprom_24cxx_write(unsigned char address, const void *src, int length)
{
const char *buf = (const char *)src;
- int count = 10;
+ int count = 5;
int i;
bool ok;