OpenCores
URL https://opencores.org/ocsvn/adv_debug_sys/adv_debug_sys/trunk

Subversion Repositories adv_debug_sys

[/] [adv_debug_sys/] [trunk/] [Software/] [adv_jtag_bridge/] [cable_xpc_dlc9.c] - Diff between revs 32 and 55

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 32 Rev 55
Line 19... Line 19...
#include <stdio.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/types.h>
#include <unistd.h>  // for usleep()
#include <unistd.h>  // for usleep()
#include <stdlib.h>  // for sleep()
#include <stdlib.h>  // for sleep()
 
 
 
 
#include "usb.h"  // libusb header
#include "usb.h"  // libusb header
#include "cable_common.h"
 
 
#include "cable_xpc_dlc9.h"
#include "errcodes.h"
#include "errcodes.h"
 
 
 
jtag_cable_t dlc9_cable_driver = {
 
    .name ="xpc_usb" ,
 
    .inout_func = cable_xpcusb_inout,
 
    .out_func = cable_xpcusb_out,
 
    .init_func = cable_xpcusb_init,
 
    .opt_func = cable_xpcusb_opt,
 
    .bit_out_func = cable_common_write_bit,
 
    .bit_inout_func = cable_xpcusb_read_write_bit,
 
    .stream_out_func = cable_common_write_stream,
 
    .stream_inout_func = cable_common_read_stream,
 
    .flush_func = NULL,
 
    .opts = "",
 
    .help = "no options\n",
 
   };
 
 
#define USB_TIMEOUT 500
#define USB_TIMEOUT 500
 
 
// Note that this is based on the UrJTAG driver for the XPC-USB,
// Note that this is based on the UrJTAG driver for the XPC-USB,
// which was 'experimental' at the time.
// which was 'experimental' at the time.
// It only supports bit-bang mode, and therefore will not be fast.
// It only supports bit-bang mode, and therefore will not be fast.
Line 411... Line 426...
{
{
    fprintf(stderr, "Unknown parameter '%c'\n", c);
    fprintf(stderr, "Unknown parameter '%c'\n", c);
    return APP_ERR_BAD_PARAM;
    return APP_ERR_BAD_PARAM;
}
}
 
 
 
jtag_cable_t *cable_xpcusb_get_driver(void)
 
{
 
  return &dlc9_cable_driver;
 
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.