Date: Wed, 15 Nov 2006 22:33:09 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 110067 for review Message-ID: <200611152233.kAFMX9eb097293@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110067 Change 110067 by imp@imp_lighthouse on 2006/11/15 22:32:11 Minor printf hacks, plus delay a bit before blasting the bits to the iic. Affected files ... .. //depot/projects/arm/src/sys/boot/arm/at91/boot0iic/main.c#13 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/at91/boot0iic/main.c#13 (text) ==== @@ -32,14 +32,18 @@ main(void) { char *addr = (char *)SDRAM_BASE + (1 << 20); /* Load to base + 1MB */ - int len; + int len, sec; printf("\nSend data to be written into EEPROM\n"); while ((len = xmodem_rx(addr)) == -1) continue; - InitEEPROM(); + sec = GetSeconds() + 1; + while (sec >= GetSeconds()) + continue; printf("\nWriting EEPROM from 0x%x to addr 0, 0x%x bytes\n", addr, len); + InitEEPROM(); + printf("init done\n"); WriteEEPROM(0, addr, len); printf("\nWrote %d bytes. Press reset\n", len); return (1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611152233.kAFMX9eb097293>