Re: [Openocd-development] PATCH: ep93xx.c speed up.

2008-12-10 Thread Hiroshi Ito
> > From: Rick Altherr <[EMAIL PROTECTED]> > >>> +static void output_data(void) > >>> +{ > >>> + int i; > >>> + *gpio_data_register = output_value ^ INVERT_BITS; > >>> + for ( i = 0; i < 10; i++ ) > >>> + ; > >>> } > >>> > >> > >> A for loop like that can't reliably be used as a delay loop. > >

Re: [Openocd-development] PATCH: ep93xx.c speed up.

2008-12-05 Thread Rick Altherr
On Dec 5, 2008, at 1:58 AM, Hiroshi Ito wrote: From: "Øyvind Harboe" <[EMAIL PROTECTED]> I was not able to apply this patch. Please create patch against svn trunk and post again. Your first patch applied fine, so do it in the same manner. Also add yourself to the copyright at the top of ep93x

Re: [Openocd-development] PATCH: ep93xx.c speed up.

2008-12-05 Thread Hiroshi Ito
From: "Øyvind Harboe" <[EMAIL PROTECTED]> > I was not able to apply this patch. Please create patch > against svn trunk and post again. Your first patch > applied fine, so do it in the same manner. > > Also add yourself to the copyright at the top of ep93xx.c Sorry for late. I have been offlined

Re: [Openocd-development] PATCH: ep93xx.c speed up.

2008-12-01 Thread Rick Altherr
On Dec 2, 2008, at 2:48 PM, Hiroshi Ito wrote: +static void output_data(void) +{ + int i; + *gpio_data_register = output_value ^ INVERT_BITS; + for ( i = 0; i < 10; i++ ) + ; } A for loop like that can't reliably be used as a delay loop. First, the speed of th

Re: [Openocd-development] PATCH: ep93xx.c speed up.

2008-12-01 Thread Øyvind Harboe
I was not able to apply this patch. Please create patch against svn trunk and post again. Your first patch applied fine, so do it in the same manner. Also add yourself to the copyright at the top of ep93xx.c Thanks! -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTA

[Openocd-development] PATCH: ep93xx.c speed up.

2008-12-01 Thread Hiroshi Ito
I'm running openocd on EP9307(arm925t) CPU, as a HOST. and target is EP9307 and ARM926t with EP9307 GPIO. this patch is, 1. speed up to usable speed. nanosleep is too slow on my machine. (linux is running 10mS timer, and I compiled openocd with uClibc.) 2. signal logic can be inverted with co