Hello Filip :-)

Is polling possible? That is if it is possible to tell whether interface
already finished commandd execution? Why did you choose 100us? If there are
command that can take longer than 100us you will have the same problem
again. Furthermore you will slow down execution of faster commands that
way. Polling seems to be the best solution in that case and you will always
get the result as soon as it is possible :-)

Best regards,
Tomek

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
28 sty 2013 15:17, "Filip Dulic" <[email protected]> napisaƂ(a):

> Hi, I have a small patch to the openOCD source code, I'd like to add. It
> regards the Bus Pirate jtag driver, located in
> openocd-0.6.1/src/jtag/drivers/buspirate.c
> Can you instruct me on how I should go about doing this.
>
> the patch is simplt adding two usleep(100) calls... This will ensure the
> bus pirate recives and acts upon the change speed command...
>
>
> edit line 787 inside function
>
>     static void buspirate_jtag_set_speed(int fd, char speed)
>     {
>     //...some things
>     usleep(100);//add this line of sleep
>     buspirate_serial_setspeed(fd, speed);
>     //...some more things
>     usleep(100);//add this line of some more sleep
>     }
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> OpenOCD-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openocd-devel
>
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to