comparison packages/redboot/current/src/io.c @ 147:d397fc472bcf

Merge from eCos master repository on 2001-01-05-06:43:02-GMT
author jlarmour
date Fri, 05 Jan 2001 17:12:36 +0000
parents 6b5f480c6929
children 52c99470ec11
comparison
equal deleted inserted replaced
146:bd918119cf0b 147:d397fc472bcf
21 // The Original Code is eCos - Embedded Configurable Operating System, 21 // The Original Code is eCos - Embedded Configurable Operating System,
22 // released September 30, 1998. 22 // released September 30, 1998.
23 // 23 //
24 // The Initial Developer of the Original Code is Red Hat. 24 // The Initial Developer of the Original Code is Red Hat.
25 // Portions created by Red Hat are 25 // Portions created by Red Hat are
26 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. 26 // Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
27 // All Rights Reserved. 27 // All Rights Reserved.
28 // ------------------------------------------- 28 // -------------------------------------------
29 // 29 //
30 //####COPYRIGHTEND#### 30 //####COPYRIGHTEND####
31 //========================================================================== 31 //==========================================================================
179 if (script && *script) { 179 if (script && *script) {
180 c = *script++; 180 c = *script++;
181 } else 181 } else
182 #endif 182 #endif
183 if ((timeout > 0) && (ptr == buf)) { 183 if ((timeout > 0) && (ptr == buf)) {
184 mon_set_read_char_timeout(50); 184 mon_set_read_char_timeout(timeout);
185 while (timeout > 0) { 185 while (timeout > 0) {
186 res = mon_read_char_with_timeout(&c); 186 res = mon_read_char_with_timeout(&c);
187 if (res) { 187 if (res) {
188 // Got a character 188 // Got a character
189 break; 189 break;