Re: [U-Boot] [PATCH 1/3] common: add possibility for readline_into_buffer timeout

2012-01-15 Thread Heiko Schocher
Hello Mike, Mike Frysinger wrote: > On Sunday 15 January 2012 02:53:40 Heiko Schocher wrote: >> --- a/common/main.c >> +++ b/common/main.c >> >> +if ((first) && (timeout)) { > > those inner parens make no sense Yep, fixed. >> +ulong start = get_timer(0); >> +

Re: [U-Boot] [PATCH 1/3] common: add possibility for readline_into_buffer timeout

2012-01-15 Thread Mike Frysinger
On Sunday 15 January 2012 02:53:40 Heiko Schocher wrote: > --- a/common/main.c > +++ b/common/main.c > > + if ((first) && (timeout)) { those inner parens make no sense > + ulong start = get_timer(0); > + ulong delay = timeout * CONFIG_SYS_HZ; w

[U-Boot] [PATCH 1/3] common: add possibility for readline_into_buffer timeout

2012-01-14 Thread Heiko Schocher
add possibility to add a timeout when reading a line into a buffer. Signed-off-by: Heiko Schocher --- common/cmd_nvedit.c |2 +- common/main.c | 21 + common/menu.c |3 ++- include/common.h|3 ++- 4 files changed, 22 insertions(+), 7 deletions(-)