drivers: Rename 'libusb1_common' to 'libusb_helper'
The name 'common' does not make sense anymore. While at it, remove some unnecessary #includes. Change-Id: If9798a5cce179438d89428a598d8ca05c8e5f20c Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/5434 Tested-by: jenkins Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
This commit is contained in:
parent
93c6bf2cce
commit
51dd4ce6bb
|
@ -25,7 +25,6 @@
|
||||||
#include <transport/transport.h>
|
#include <transport/transport.h>
|
||||||
#include <target/target.h>
|
#include <target/target.h>
|
||||||
#include <jtag/aice/aice_transport.h>
|
#include <jtag/aice/aice_transport.h>
|
||||||
#include <jtag/drivers/libusb_common.h>
|
|
||||||
#include "aice_usb.h"
|
#include "aice_usb.h"
|
||||||
|
|
||||||
#define AICE_KHZ_TO_SPEED_MAP_SIZE 16
|
#define AICE_KHZ_TO_SPEED_MAP_SIZE 16
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <jtag/drivers/libusb_common.h>
|
#include <jtag/drivers/libusb_helper.h>
|
||||||
#include <helper/log.h>
|
#include <helper/log.h>
|
||||||
#include <helper/time_support.h>
|
#include <helper/time_support.h>
|
||||||
#include <target/target.h>
|
#include <target/target.h>
|
||||||
|
|
|
@ -22,7 +22,7 @@ DRIVERFILES += %D%/driver.c
|
||||||
DRIVERFILES += %D%/jtag_usb_common.c
|
DRIVERFILES += %D%/jtag_usb_common.c
|
||||||
|
|
||||||
if USE_LIBUSB1
|
if USE_LIBUSB1
|
||||||
DRIVERFILES += %D%/libusb1_common.c
|
DRIVERFILES += %D%/libusb_helper.c
|
||||||
%C%_libocdjtagdrivers_la_CPPFLAGS += $(LIBUSB1_CFLAGS)
|
%C%_libocdjtagdrivers_la_CPPFLAGS += $(LIBUSB1_CFLAGS)
|
||||||
%C%_libocdjtagdrivers_la_LIBADD += $(LIBUSB1_LIBS)
|
%C%_libocdjtagdrivers_la_LIBADD += $(LIBUSB1_LIBS)
|
||||||
endif
|
endif
|
||||||
|
@ -168,8 +168,7 @@ DRIVERHEADERS = \
|
||||||
%D%/bitbang.h \
|
%D%/bitbang.h \
|
||||||
%D%/bitq.h \
|
%D%/bitq.h \
|
||||||
%D%/jtag_usb_common.h \
|
%D%/jtag_usb_common.h \
|
||||||
%D%/libusb1_common.h \
|
%D%/libusb_helper.h \
|
||||||
%D%/libusb_common.h \
|
|
||||||
%D%/minidriver_imp.h \
|
%D%/minidriver_imp.h \
|
||||||
%D%/mpsse.h \
|
%D%/mpsse.h \
|
||||||
%D%/rlink.h \
|
%D%/rlink.h \
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <jtag/interface.h>
|
#include <jtag/interface.h>
|
||||||
#include <jtag/commands.h>
|
#include <jtag/commands.h>
|
||||||
#include <helper/time_support.h>
|
#include <helper/time_support.h>
|
||||||
#include "libusb1_common.h"
|
#include "libusb_helper.h"
|
||||||
|
|
||||||
/* system includes */
|
/* system includes */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
#include <jtag/swd.h>
|
#include <jtag/swd.h>
|
||||||
#include <jtag/commands.h>
|
#include <jtag/commands.h>
|
||||||
|
|
||||||
#include "libusb_common.h"
|
#include "libusb_helper.h"
|
||||||
|
|
||||||
#define VID 0x04b4
|
#define VID 0x04b4
|
||||||
#define PID 0xf139
|
#define PID 0xf139
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
/***************************************************************************
|
|
||||||
* Copyright (C) 2011 by Mauro Gamba <maurillo71@gmail.com> *
|
|
||||||
* *
|
|
||||||
* This program is free software; you can redistribute it and/or modify *
|
|
||||||
* it under the terms of the GNU General Public License as published by *
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or *
|
|
||||||
* (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program is distributed in the hope that it will be useful, *
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
||||||
* GNU General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License *
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H
|
|
||||||
#define OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBUSB1
|
|
||||||
#include "libusb1_common.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H */
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
#include <jtag/drivers/jtag_usb_common.h>
|
#include <jtag/drivers/jtag_usb_common.h>
|
||||||
#include "libusb1_common.h"
|
#include "libusb_helper.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
/*
|
/*
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H
|
#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB_HELPER_H
|
||||||
#define OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H
|
#define OPENOCD_JTAG_DRIVERS_LIBUSB_HELPER_H
|
||||||
|
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
|
|
||||||
|
@ -55,4 +55,4 @@ int jtag_libusb_choose_interface(struct libusb_device_handle *devh,
|
||||||
int bclass, int subclass, int protocol, int trans_type);
|
int bclass, int subclass, int protocol, int trans_type);
|
||||||
int jtag_libusb_get_pid(struct libusb_device *dev, uint16_t *pid);
|
int jtag_libusb_get_pid(struct libusb_device *dev, uint16_t *pid);
|
||||||
|
|
||||||
#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H */
|
#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB_HELPER_H */
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#include <jtag/interface.h>
|
#include <jtag/interface.h>
|
||||||
#include <jtag/commands.h>
|
#include <jtag/commands.h>
|
||||||
#include "libusb_common.h"
|
#include "libusb_helper.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
#include <jtag/interface.h>
|
#include <jtag/interface.h>
|
||||||
#include <jtag/commands.h>
|
#include <jtag/commands.h>
|
||||||
#include "libusb_common.h"
|
#include "libusb_helper.h"
|
||||||
|
|
||||||
static enum {
|
static enum {
|
||||||
OPENJTAG_VARIANT_STANDARD,
|
OPENJTAG_VARIANT_STANDARD,
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <helper/binarybuffer.h>
|
#include <helper/binarybuffer.h>
|
||||||
#include <helper/command.h>
|
#include <helper/command.h>
|
||||||
#include <jtag/interface.h>
|
#include <jtag/interface.h>
|
||||||
#include "libusb_common.h"
|
#include "libusb_helper.h"
|
||||||
|
|
||||||
struct sequence {
|
struct sequence {
|
||||||
int len;
|
int len;
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#include <target/cortex_m.h>
|
#include <target/cortex_m.h>
|
||||||
|
|
||||||
#include "libusb_common.h"
|
#include "libusb_helper.h"
|
||||||
|
|
||||||
#ifdef HAVE_LIBUSB1
|
#ifdef HAVE_LIBUSB1
|
||||||
#define USE_LIBUSB_ASYNCIO
|
#define USE_LIBUSB_ASYNCIO
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#endif
|
#endif
|
||||||
#include <jtag/interface.h>
|
#include <jtag/interface.h>
|
||||||
#include <jtag/commands.h>
|
#include <jtag/commands.h>
|
||||||
#include <libusb_common.h>
|
#include <libusb_helper.h>
|
||||||
#include <target/image.h>
|
#include <target/image.h>
|
||||||
|
|
||||||
#include "ublast_access.h"
|
#include "ublast_access.h"
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
#ifndef OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H
|
#ifndef OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H
|
||||||
#define OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H
|
#define OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H
|
||||||
|
|
||||||
#include <libusb_common.h>
|
|
||||||
|
|
||||||
/* Low level flags */
|
/* Low level flags */
|
||||||
#define COPY_TDO_BUFFER (1 << 0)
|
#define COPY_TDO_BUFFER (1 << 0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue