Hi,

I'm implementing support for an UART over JTAG module present in the
OpenRISC debug interface. It's a device which looks like an UART on
the SoC Wishbone bus but which transfers data via JTAG.

I have created a new telnet sever for that and it works fine.

My problem is how the polling function is called. I'm using:

target_register_timer_callback(&jsp_poll_read, 1, 1, jsp_service);

however, due to socket_select bloking for 100ms in server_loop [1] it
does not poll every 1ms.

I could rewrite the server_loop to include a "fast_poll" handler.

I could also use a polling thread in my jsp_server. I guess if I use
thread functions, I would need to add those in src/helper and create
proper wrapper to make things work under Linux a Windows.

Any other idea ?

Franck.

[1] 
https://github.com/fjullien/openOCD/blob/usb-blaster2/src/server/server.c#L384

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to