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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or_debug_proxy/] [src/] [linux_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 68... Line 68...
#include "usb_functions.h"
#include "usb_functions.h"
#include "or_debug_proxy.h"
#include "or_debug_proxy.h"
 
 
#include "FT2232cMpsseJtag.h"
#include "FT2232cMpsseJtag.h"
 
 
 
 
static FT2232cMpsseJtag *pFT2232cMpsseJtag = NULL;
static FT2232cMpsseJtag *pFT2232cMpsseJtag = NULL;
 
 
// Global USB JTAG device handle
// Global USB JTAG device handle
FTC_HANDLE ftHandle;
FTC_HANDLE ftHandle;
 
 
Line 157... Line 158...
{
{
  return pFT2232cMpsseJtag->JTAG_CloseDevice(ftHandle);
  return pFT2232cMpsseJtag->JTAG_CloseDevice(ftHandle);
}
}
 
 
 
 
 
void reinit_usb_jtag(void)
 
{
 
  FTC_STATUS Status = FTC_SUCCESS;
 
  if (DEBUG_USB_DRVR_FUNCS) printf("linux_usb_driver_calls: reset_usb_jtag() - ");
 
  Status = pFT2232cMpsseJtag->JTAG_InitDevice(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.