Change the second parameter of the ser_open method from "baud" into a
"union pinfo", so the USB parameters can be passed without hacks.



git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1276 81a1dc3b-b13d-400b-aceb-764788c761c2
In usbdev_recv_frame(), fix a bug where a new recv request was issued
even though all desired data had aldready been received.



git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1277 81a1dc3b-b13d-400b-aceb-764788c761c2
Merge branch 'master' into avr109
Implement the Atmel EDBG/CMSIS-DAP driver protocol for JTAGICE3
(running firmware 3.x) and XplainedPro boards.


git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1278 81a1dc3b-b13d-400b-aceb-764788c761c2
In usbdev_open(), replace all calls to exit(1) by return -1.



git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1279 81a1dc3b-b13d-400b-aceb-764788c761c2
If there's no USB handle, bail out from all functions immediately.



git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1280 81a1dc3b-b13d-400b-aceb-764788c761c2
usbdev_close() returns nothing.



git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1281 81a1dc3b-b13d-400b-aceb-764788c761c2
If the device is not open, don't try closing it.



git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1282 81a1dc3b-b13d-400b-aceb-764788c761c2
Turn the usbpid parameter of the programmer into a list of PIDs.  Make
the JTAGICE3 programmer handle a list of PIDs, by trying each of them
in sequence.  Use a single, central jtag3_open_common() function to
handle the common code of all jtag3_open_* functions.  Centralize all
USB VID/PID definitions in usbdevs.h.



git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1283 81a1dc3b-b13d-400b-aceb-764788c761c2
For EDBG protocol, always use 512-byte block I/O.  The lower layers
will split this according to the EP's maxsize.  This makes it work
over USB 1.1 connections (albeit very slowly, due to the interrupt
transfers used).


git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1284 81a1dc3b-b13d-400b-aceb-764788c761c2
Documentation updates for EDBG.


git-svn-id: http://svn.savannah.nongnu.org/svn/avrdude/trunk@1285 81a1dc3b-b13d-400b-aceb-764788c761c2
Merge branch 'master' into avr109