now really fixed hang in dvi_on()

This commit is contained in:
Markus Fröschle
2012-10-31 20:35:39 +00:00
parent f671219408
commit 91e0e27e4a

View File

@@ -632,8 +632,8 @@ void dvi_on(void) {
MCF_I2C_I2CR = 0x80; // stop MCF_I2C_I2CR = 0x80; // stop
dummyByte = MCF_I2C_I2DR; // dummy read dummyByte = MCF_I2C_I2DR; // dummy read
num_tries++;
} while (receivedByte != 0xbf && num_tries++ < 10); } while ((receivedByte != 0xbf) && (num_tries < 10));
if (num_tries >= 10) { if (num_tries >= 10) {
xprintf("FAILED!\r\n"); xprintf("FAILED!\r\n");
@@ -813,7 +813,7 @@ void initialize_hardware(void) {
} while (src < end); } while (src < end);
/* we have copied a code area, so flush the caches */ /* we have copied a code area, so flush the caches */
flush_and_invalidate_caches(); //flush_and_invalidate_caches();
/* jump into the BaS in RAM */ /* jump into the BaS in RAM */
extern void BaS(void); extern void BaS(void);