ULINK driver: port from libusb-0.1 to libusb-1.0 API

The ULINK driver now uses libusb-1.0 calls (synchronous device I/O) directly
(not the common layer provided by libusb1_common.c)

Successfully tested with ULINK probe and STM32F103 (debug, erase and write
flash).

Change-Id: Ic037a3582db85e49a8cc1ec0dd36f629e4757929
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
Reviewed-on: http://openocd.zylin.com/1459
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Martin Schmölzer
2013-06-27 19:26:19 +02:00
committed by Spencer Oliver
parent 8faa419fad
commit f684252b25
2 changed files with 60 additions and 44 deletions

View File

@@ -1177,7 +1177,7 @@ fi
# check if some driver requires libusb-0.1
need_usb0=no
if test $build_vsllink = yes -o $build_usbprog = yes -o \
$build_rlink = yes -o $build_ulink = yes -o $build_armjtagew = yes; then
$build_rlink = yes -o $build_armjtagew = yes; then
need_usb0=yes
fi
@@ -1191,7 +1191,7 @@ fi
# check if some driver requires libusb-1.x
need_usb_ng=no
if test $build_ftdi = yes -o $build_hladapter_icdi = yes -o \
$build_hladapter_stlink = yes; then
$build_hladapter_stlink = yes -o $build_ulink = yes; then
need_usb_ng=yes
fi