URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Show entire file |
Details |
Blame |
View Log
Rev 39 |
Rev 529 |
Line 445... |
Line 445... |
if (!FTC_DeviceOpened(lpDeviceName, dwLocationID, pftHandle))
|
if (!FTC_DeviceOpened(lpDeviceName, dwLocationID, pftHandle))
|
{
|
{
|
|
|
// To open a device in Linux the FT_OPEN_BY_DESCRIPTION has to be used. Rene
|
// To open a device in Linux the FT_OPEN_BY_DESCRIPTION has to be used. Rene
|
Status = FT_OpenEx((PVOID)lpDeviceName, FT_OPEN_BY_DESCRIPTION, &ftHandle);
|
Status = FT_OpenEx((PVOID)lpDeviceName, FT_OPEN_BY_DESCRIPTION, &ftHandle);
|
|
|
|
#ifdef DEBUG_USB_DRVR_FUNCS
|
|
printf("FT_OpenEx status: %d\n", (int)Status);
|
|
#endif
|
|
|
|
//Status = FT_OpenEx((PVOID)lpDeviceName, FT_OPEN_BY_SERIAL_NUMBER, &ftHandle);
|
// Linux das not return the LocationID
|
// Linux das not return the LocationID
|
// Status = FT_OpenEx((PVOID)dwLocationID, FT_OPEN_BY_LOCATION, &ftHandle);
|
// Status = FT_OpenEx((PVOID)dwLocationID, FT_OPEN_BY_LOCATION, &ftHandle);
|
|
|
if (Status == FTC_SUCCESS)
|
if (Status == FTC_SUCCESS)
|
{
|
{
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.