Re: [U-Boot] [PATCH] common/xyzModem.c: Fix delay timeout calculation

2016-09-20 Thread Andrew F. Davis
On 08/26/2016 08:43 AM, Stefan Roese wrote: > Hi Andrew, > > On 26.08.2016 15:40, Andrew F. Davis wrote: >> On 08/26/2016 12:18 AM, Stefan Roese wrote: >>> On 25.08.2016 20:43, Andrew F. Davis wrote: When waiting for input in CYGACC_COMM_IF_GETC_TIMEOUT we delay 2 seconds by incrementing

Re: [U-Boot] [PATCH] common/xyzModem.c: Fix delay timeout calculation

2016-08-26 Thread Stefan Roese
Hi Andrew, On 26.08.2016 15:40, Andrew F. Davis wrote: On 08/26/2016 12:18 AM, Stefan Roese wrote: On 25.08.2016 20:43, Andrew F. Davis wrote: When waiting for input in CYGACC_COMM_IF_GETC_TIMEOUT we delay 2 seconds by incrementing and checking a counter variable every 20 uSeconds. The overhea

Re: [U-Boot] [PATCH] common/xyzModem.c: Fix delay timeout calculation

2016-08-26 Thread Andrew F. Davis
On 08/26/2016 12:18 AM, Stefan Roese wrote: > On 25.08.2016 20:43, Andrew F. Davis wrote: >> When waiting for input in CYGACC_COMM_IF_GETC_TIMEOUT we delay 2 >> seconds by incrementing and checking a counter variable every 20 >> uSeconds. The overhead in the loop calling tstc() millions of times >>

Re: [U-Boot] [PATCH] common/xyzModem.c: Fix delay timeout calculation

2016-08-25 Thread Stefan Roese
On 25.08.2016 20:43, Andrew F. Davis wrote: When waiting for input in CYGACC_COMM_IF_GETC_TIMEOUT we delay 2 seconds by incrementing and checking a counter variable every 20 uSeconds. The overhead in the loop calling tstc() millions of times causes the timeout to be closer to 20 seconds. Delay lo