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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or_debug_proxy/] [src/] [win_usb_driver_calls.c] - Diff between revs 39 and 47

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

Rev 39 Rev 47
Line 326... Line 326...
FT2232_USB_JTAG_CloseDevice()
FT2232_USB_JTAG_CloseDevice()
{
{
  return (jtagClose)(ftHandle);
  return (jtagClose)(ftHandle);
}
}
 
 
 
void
 
reinit_usb_jtag(void)
 
{
 
  FTC_STATUS Status = FTC_SUCCESS;
 
  if (DEBUG_USB_DRVR_FUNCS) printf("win_usb_driver_calls: reset_usb_jtag() - ");
 
  Status = (jtagInitDevice)(ftHandle, 0);
 
  if (DEBUG_USB_DRVR_FUNCS) printf("return Status: %d\n", (int) Status);
 
}
 
 
// Set clock frequency
// Set clock frequency
// Frequency = 12Mhz/((1+divisor)*2), 
// Frequency = 12Mhz/((1+divisor)*2), 
// divisor=1000 => Freq=5995Hz~=6kHz, divisor=500=>Freq=12kHz
// divisor=1000 => Freq=5995Hz~=6kHz, divisor=500=>Freq=12kHz
#define USB_JTAG_CLK_DIVIDER 0
#define USB_JTAG_CLK_DIVIDER 0

powered by: WebSVN 2.1.0

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