repairing... just repairing...
This commit is contained in:
16
autobuilder
16
autobuilder
@@ -25,24 +25,30 @@ echo " --------------------------" #fancy banner!
|
||||
echo " Autobuilder for TinI/O 0.1"
|
||||
echo " --------------------------"
|
||||
echo " Verifying main directory..."
|
||||
[ -d cylib ] && [ -d tinio ] && proceed=1 #check if we're in the right dir
|
||||
[ -d configutility ] && [ -d tinio ] && proceed=1 #check if we're in the right dir
|
||||
proceed #error check
|
||||
echo " DONE!"
|
||||
echo " Entering the library directory..."
|
||||
cd cylib/build && proceed=1 #cd to the lib dir
|
||||
cd cylib && proceed=1 #cd to the lib dir
|
||||
proceed #error check
|
||||
echo " DONE!"
|
||||
echo " Compiling and installing the library..."
|
||||
cmake .. && make && sudo make install && proceed=1 #compiles the lib
|
||||
#according to the lib docs
|
||||
make && proceed=1 #compiles the lib according to the lib docs
|
||||
proceed
|
||||
echo " DONE!"
|
||||
echo " Library installation complete."
|
||||
echo " Going back..."
|
||||
cd ../.. && proceed=1 #goes from cylib/build to cylib then to main dir
|
||||
cd .. && proceed=1 #to main dir
|
||||
proceed
|
||||
echo " DONE!"
|
||||
sleep 1 # sleep for 1 sec to let the user see the output
|
||||
echo " Entering the TinI/O build directory"
|
||||
cd tinio && proceed=1
|
||||
echo " DONE!"
|
||||
proceed
|
||||
echo " Compiling TinI/O..."
|
||||
cd tinio && make && make install && proceed=1
|
||||
proceed
|
||||
echo " DONE!"
|
||||
echo " Compiling the flasher tool"
|
||||
cd ../tool && make && proceed=1
|
||||
|
||||
36
configutility/README.txt
Normal file
36
configutility/README.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
========================================================================================
|
||||
Cypress Semiconductor Corporation
|
||||
CyUSB Serial library.
|
||||
=========================================================================================
|
||||
Pre-requisite:
|
||||
1. libusb-1.0.9 is required for compilation and functioning of the APIs in the library.
|
||||
2. GNU Make and the GCC tool-chain are used for the build process.
|
||||
|
||||
Installation steps:
|
||||
|
||||
1.cd to the main directory where the library source files are extracted and goto ./linux/library
|
||||
|
||||
2.Type 'sudo make'.
|
||||
|
||||
2.This will generate shared library libcyusbserial.so.1 and its soft link libcyusbserial.so.
|
||||
Both of them will be copied/installed to /usr/local/lib.
|
||||
|
||||
3.Go to ./linux/testUtility (I2C/SPI test utility program) and type 'sudo make'.
|
||||
This will generate CyUSBSerialTestUtility binary (Refer to README in testUtility folder).
|
||||
|
||||
4.User can launch the application and test the communication with Cypress USB-Serial DVk in vendor mode.
|
||||
|
||||
Changing USB device node permission:
|
||||
|
||||
By default the USB device node created in linux do not have read/write permission
|
||||
for normal user. In order to make the USB device node accessable, copy 90-cyusb.rules
|
||||
which is inside the library folder of release package to /etc/udev/rules.d folder (Default VID mentioned is Cypress VID
|
||||
which is 0x4B4, if VID is changed then update it in ATTR{idVendor} section of rules file).
|
||||
|
||||
*** IMPORTANT:
|
||||
Some distribution of linux have libusb (older version) as part of their package. Uninstall
|
||||
the older version and update it with libusb-1.0.9.
|
||||
|
||||
**Note:
|
||||
Refer to ./common/doc/CyUSBSerial API documentation.pdf for description of all
|
||||
the vendor mode APIs. The header file of the library is in ./common/header/CyUSBSerial.h.
|
||||
447
configutility/common/header/CyUSBBootloader.h
Normal file
447
configutility/common/header/CyUSBBootloader.h
Normal file
@@ -0,0 +1,447 @@
|
||||
/*
|
||||
## Cypress USB Serial Library header file (CyUSBSerial.h)
|
||||
## ===========================
|
||||
##
|
||||
## Copyright Cypress Semiconductor Corporation, 2012-2013,
|
||||
## All Rights Reserved
|
||||
## UNPUBLISHED, LICENSED SOFTWARE.
|
||||
##
|
||||
## CONFIDENTIAL AND PROPRIETARY INFORMATION
|
||||
## WHICH IS THE PROPERTY OF CYPRESS.
|
||||
##
|
||||
## Use of this file is governed
|
||||
## by the license agreement included in the file
|
||||
##
|
||||
## <install>/license/license.txt
|
||||
##
|
||||
## where <install> is the Cypress software
|
||||
## installation root directory path.
|
||||
##
|
||||
## ===========================
|
||||
*/
|
||||
|
||||
#ifndef _INCLUDED_CYUSBBOOTLOADER_H_
|
||||
#define _INCLUDED_CYUSBBOOTLOADER_H_
|
||||
|
||||
/*This is to export windows API*/
|
||||
#ifdef CYWINEXPORT
|
||||
#undef CYWINEXPORT
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
|
||||
#ifdef CYUSBSERIAL_EXPORTS
|
||||
#define CYWINEXPORT extern "C" __declspec(dllexport)
|
||||
#define WINCALLCONVEN
|
||||
#else
|
||||
#define CYWINEXPORT extern "C" __declspec(dllimport)
|
||||
#define WINCALLCONVEN
|
||||
#endif
|
||||
#else /*Linux and MAC*/
|
||||
#define CYWINEXPORT
|
||||
#define WINCALLCONVEN
|
||||
#ifndef BOOL
|
||||
typedef bool BOOL;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#include "CyUSBSerial.h"
|
||||
|
||||
/* Summary
|
||||
Enumeration defining return status of USB serial library APIs
|
||||
|
||||
Description
|
||||
The enumeration CY_RETURN_STATUS holds the different return status of all the
|
||||
APIs supported by USB Serial library.
|
||||
*/
|
||||
/*API Failed because the SPI/UART status monitor thread already exists*/
|
||||
/*
|
||||
Summary
|
||||
Structure to hold Boot mode data buffer information.
|
||||
|
||||
Description
|
||||
This strucuture is used by boot mode data transaction API to perform read, write
|
||||
operations.
|
||||
|
||||
Before using a variable of this strucutre users need to initialize various members appropriately.
|
||||
buffer - Need to be initialized to pre-allocated memory only, and user is
|
||||
expected to deallocate the memory in his application.
|
||||
length - Contains total length the buffer to be used while performing
|
||||
read/write operations.
|
||||
bytesReturned - Specifies the number of bytes actually read/written.
|
||||
address - Address from where the data need to written/read
|
||||
|
||||
See Also
|
||||
CyReadFlash
|
||||
CyProgFlash
|
||||
CyVerifyFlash
|
||||
CyReadMemory
|
||||
CyWriteMemory
|
||||
|
||||
CY_BOOTLOADER_VERSION
|
||||
*/
|
||||
typedef struct _CY_BOOTLD_BUFFER {
|
||||
|
||||
UCHAR *buffer; /*Address of the buffer*/
|
||||
UINT32 length; /*total length to be read/written */
|
||||
UINT32 *bytesReturned; /*Total length of bytes that was written/read*/
|
||||
UINT32 address; /*Address from where data needs to be written/read in device*/
|
||||
|
||||
} CY_BOOTLD_BUFFER,*PCY_BOOTLD_BUFFER;
|
||||
|
||||
/*
|
||||
Summary
|
||||
This structure is used to hold Boot loader version.
|
||||
|
||||
Description
|
||||
This data type holds the information of version of the bootloader in device. It has major version,
|
||||
minor version and patch number.
|
||||
|
||||
See Also
|
||||
CY_BOOTLD_BUFFER
|
||||
*/
|
||||
typedef struct _CY_BOOTLOADER_VERSION {
|
||||
|
||||
UCHAR majorVersion; /*Major version of BootLoader*/
|
||||
UCHAR minorVersion; /*Minor version of the BootLoader*/
|
||||
UINT16 patchNumber; /*Patch Number of the BootLoader*/
|
||||
|
||||
} CY_BOOTLOADER_VERSION;
|
||||
|
||||
|
||||
/*************************************************************************************/
|
||||
/****************************BOOTLOADER API'S*****************************************/
|
||||
/*************************************************************************************/
|
||||
|
||||
/*@@BOOTLoader API
|
||||
|
||||
These APIs provide an interface for configuring the device when it is in BOOT mode.
|
||||
|
||||
The API's under this group gives user to option to configure the device when the device is in BOOT
|
||||
mode. The APIs include support for device configuration, SCB level configuration, USB interface
|
||||
configuration, checksum, firmware download.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API retrieves the BootLoader version.
|
||||
|
||||
Description
|
||||
This API gets the bootloader version of the USB Serial device.
|
||||
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyGetSiliconID
|
||||
|
||||
CY_BOOTLOADER_VERSION
|
||||
*/
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyGetBootLoaderVersion (
|
||||
CY_HANDLE handle, /*Valid device handle*/
|
||||
CY_BOOTLOADER_VERSION *bootLoaderVersion /*Boot Loader version.*/
|
||||
);
|
||||
/*
|
||||
Summary
|
||||
This API retrieves the silicon ID.
|
||||
|
||||
Description
|
||||
This API gets the silicon ID of the USB Serial device into the argument siliconID.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyGetBootLoaderVersion
|
||||
|
||||
*/
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyGetSiliconID (
|
||||
CY_HANDLE handle, /*Valid device handle*/
|
||||
UINT32 *siliconID /*Boot Loader version.*/
|
||||
);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used to change the device operational mode from device firmware to bootloader.
|
||||
|
||||
Description
|
||||
This API changes the device operational mode from device firmware to bootloader or
|
||||
Manufacturing mode.
|
||||
|
||||
Call the API GetSignature to identify the current operational mode. This API should be called only
|
||||
when the device is in firmware mode.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyGetSignature
|
||||
|
||||
*/
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyJumpToMfgMode (
|
||||
CY_HANDLE handle);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used to read device configuration
|
||||
|
||||
Description
|
||||
This API reads the device configuration from the device configuration table. It fills the device
|
||||
configuration as a series of bytes in the argument deviceConfig
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyWriteDeviceConfig
|
||||
*/
|
||||
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyReadDeviceConfig (
|
||||
CY_HANDLE handle, /* Valid device handle*/
|
||||
UCHAR *deviceConfig /* Device configuration value.*/
|
||||
);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used to update the device configuration table.
|
||||
|
||||
Description;
|
||||
This API updates the device configuration in the configuration table of device. The device
|
||||
configuration must be supplied as an array of bytes.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyReadDeviceConfig
|
||||
|
||||
*/
|
||||
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyWriteDeviceConfig (
|
||||
CY_HANDLE handle, /*Valid Device handle*/
|
||||
UCHAR *deviceConfig /*Device configuration value */
|
||||
);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used to read the content of flash from specified address.
|
||||
|
||||
Description
|
||||
The readBuffer structure must be filled and with address to be read from, appropriate buffer
|
||||
and number of bytes to be read.
|
||||
|
||||
The actual bytes read will be available in bytesReturned member of CY_BOOTLD_BUFFER.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CY_BOOTLD_BUFFER
|
||||
CyProgFlash
|
||||
CyVerifyFlash
|
||||
*/
|
||||
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyReadFlash (
|
||||
CY_HANDLE handle, /*Valid device handle*/
|
||||
CY_BOOTLD_BUFFER *readBuffer, /*Buffer pointer containing buffer address, length and address of flash*/
|
||||
UINT32 timeout /*API timeout value*/
|
||||
);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used to program the flash at specified address.
|
||||
|
||||
Description
|
||||
The writeBuffer structure must be filled and with address to be written to, appropriate buffer location
|
||||
and number of bytes to be written.
|
||||
|
||||
The actual bytes written will be available in bytesReturned member of CY_BOOTLD_BUFFER.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CY_BOOTLD_BUFFER
|
||||
CyReadFlash
|
||||
CyVerifyFlash
|
||||
*/
|
||||
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyProgFlash (
|
||||
CY_HANDLE handle, /*Valid device handle*/
|
||||
CY_BOOTLD_BUFFER *writeBuffer, /*Buffer pointer containing the address of buffer pointer, length and address of flash*/
|
||||
UINT32 timeout /*API timeout value*/
|
||||
);
|
||||
/*
|
||||
Summary
|
||||
This API can be used to read the memory content of SRAM from specified address.
|
||||
|
||||
Description
|
||||
This API reads the content of flash in USB Serial device. The argument readBuffer need to be
|
||||
initialized with address, number of bytes to be read and buffer location before invoking
|
||||
this API.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CY_BOOTLD_BUFFER
|
||||
CyWriteMemory
|
||||
|
||||
*/
|
||||
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyReadMemory (
|
||||
CY_HANDLE handle, /*Valid handle to communicate with device*/
|
||||
CY_BOOTLD_BUFFER *readBuffer, /*Bootloader read buffer details*/
|
||||
UINT32 timeout /*API timeout value*/
|
||||
);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used to write content to SRAM at specified address.
|
||||
|
||||
Description
|
||||
This API writes the buffer content to SRAM. The argument writeBuffer need to be initialized with
|
||||
target address, number of bytes to be written and buffer location before invoking this API.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CY_BOOTLD_BUFFER
|
||||
CyReadMemory
|
||||
*/
|
||||
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyWriteMemory (
|
||||
CY_HANDLE handle, /*Valid handle to communicate with device*/
|
||||
CY_BOOTLD_BUFFER *writeBuffer, /*Bootloader write buffer details*/
|
||||
UINT32 timeout /*API timeout value*/
|
||||
);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used calculate the checksum of the firmware loaded and compares it with the checksum in
|
||||
device configuration table.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyUpdateChecksum
|
||||
*/
|
||||
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyValidateChecksum (
|
||||
CY_HANDLE handle /*Valid handle to communicate with device*/
|
||||
);
|
||||
/*
|
||||
Summary
|
||||
This API can be used to read boot configuration.
|
||||
|
||||
Description
|
||||
This API reads the boot configuration from the boot configuration table of device. The bootConfig
|
||||
need to be parsed to obtain actual configuration values.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyWriteBootConfig
|
||||
|
||||
*/
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyReadBootConfig (
|
||||
CY_HANDLE handle, /*Valid handle to communicate with device*/
|
||||
UCHAR *bootConfig /*Current Boot configuration value read back*/
|
||||
);
|
||||
/*
|
||||
Summary
|
||||
This API updates the device boot configuration table.
|
||||
|
||||
Description;
|
||||
This API updates the boot configuration in the boot configuration table of device.
|
||||
The bootConfig is pointer to an array of bytes contain the configuration.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyReadBootConfig
|
||||
*/
|
||||
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyWriteBootConfig (
|
||||
CY_HANDLE handle, /*Valid handle to communicate with device*/
|
||||
UCHAR *bootConfig /*Boot configuration value to be updated*/
|
||||
);
|
||||
/*
|
||||
Summary
|
||||
This API can be used to download firmware on to USB Serial device.
|
||||
|
||||
Description;
|
||||
This API downloads the firmware specified in filePath on to flash of the USB Serial device.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyReadBootConfig
|
||||
CyWriteBootConfig
|
||||
CyReadFlash
|
||||
CyProgFlash
|
||||
CyReadMemory
|
||||
CyWriteMemory
|
||||
*/
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyDownloadFirmware (
|
||||
CY_HANDLE handle, /*Valid handle to communicate with device*/
|
||||
CHAR *filePath /*Path of Firmware file*/
|
||||
);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used enable flash configuration on USB Serial device.
|
||||
|
||||
Description;
|
||||
This API configures the the firmware and allows user to enable/diable flash changes.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyReadBootConfig
|
||||
CyWriteBootConfig
|
||||
CyReadFlash
|
||||
CyProgFlash
|
||||
CyReadMemory
|
||||
CyWriteMemory
|
||||
*/
|
||||
CYWINEXPORT CY_RETURN_STATUS WINCALLCONVEN CyFlashConfigEnable (
|
||||
CY_HANDLE handle, /*Valid handle to communicate with device*/
|
||||
BOOL enable /*Set to TRUE to enable flash configuration
|
||||
FALSE to disable flash configuration */
|
||||
);
|
||||
|
||||
/*
|
||||
Summary
|
||||
This API can be used to obtain the Silicon Serial No.
|
||||
|
||||
Description;
|
||||
This API can be used to obtain the Silicon Serial No.
|
||||
|
||||
Return Value
|
||||
CY_SUCCESS on success else error codes as defined in the enumeration CY_RETURN_STATUS.
|
||||
|
||||
See Also
|
||||
CyReadBootConfig
|
||||
CyWriteBootConfig
|
||||
CyReadFlash
|
||||
CyProgFlash
|
||||
CyReadMemory
|
||||
CyWriteMemory
|
||||
*/
|
||||
CYWINEXPORT CY_RETURN_STATUS CyGetSiliconSerialID (
|
||||
CY_HANDLE handle, /*Valid device handle*/
|
||||
UCHAR buffer[8] /*Buffer to contain 8 bytes of data.*/
|
||||
);
|
||||
|
||||
#endif /* _INCLUDED_CYUSBBOOTLOADER_H_ */
|
||||
1845
configutility/common/header/CyUSBSerial.h
Normal file
1845
configutility/common/header/CyUSBSerial.h
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5
configutility/linux/library/90-cyusb.rules
Normal file
5
configutility/linux/library/90-cyusb.rules
Normal file
@@ -0,0 +1,5 @@
|
||||
# Cypress USB driver for FX2 and FX3 (C) Cypress Semiconductor Corporation / ATR-LABS
|
||||
# Rules written by V. Radhakrishnan ( rk@atr-labs.com )
|
||||
# Cypress USB vendor ID = 0x04b4
|
||||
KERNEL=="*", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ACTION=="add", ATTR{idVendor}=="04b4", MODE="666"
|
||||
KERNEL=="*", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ACTION=="remove", TAG=="cyusb_dev"
|
||||
219
configutility/linux/library/CyUSBCommon.h
Normal file
219
configutility/linux/library/CyUSBCommon.h
Normal file
@@ -0,0 +1,219 @@
|
||||
/*
|
||||
* Common header file of Cypress USB Serial
|
||||
* Copyright (C) 2013 Cypress Semiconductor
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdbool.h>
|
||||
#include <pthread.h>
|
||||
#include <libusb-1.0/libusb.h>
|
||||
#include "../../common/header/CyUSBSerial.h"
|
||||
#pragma pack(1)
|
||||
typedef struct CY_DEVICE {
|
||||
|
||||
unsigned char inEndpoint;
|
||||
unsigned char outEndpoint;
|
||||
unsigned char interruptEndpoint;
|
||||
unsigned char interfaceNum;
|
||||
bool i2cCancelEvent;
|
||||
bool spiCancelEvent;
|
||||
bool uartCancelEvent;
|
||||
bool rtsValue;
|
||||
bool dtrValue;
|
||||
unsigned short numEndpoints;
|
||||
CY_FLOW_CONTROL_MODES uartFlowControlMode;
|
||||
struct libusb_transfer *spiTransfer;
|
||||
struct libusb_transfer *uartTransfer;
|
||||
libusb_device_handle *devHandle;
|
||||
pthread_t spiThreadId;
|
||||
pthread_t uartThreadId;
|
||||
pthread_mutex_t readLock;
|
||||
pthread_mutex_t writeLock;
|
||||
pthread_mutex_t notificationLock;
|
||||
CY_DEVICE_TYPE deviceType;
|
||||
|
||||
}CY_DEVICE,*PCY_DEVICE;
|
||||
#pragma pack()
|
||||
|
||||
CY_RETURN_STATUS CyResetPipe (CY_HANDLE handl, UINT8);
|
||||
#define CY_DEBUG_PRINT_INFO(...) //User need to enable this
|
||||
#define CY_DEBUG_PRINT_ERROR(...) //printf
|
||||
#define DUMP_DATA 1
|
||||
#ifdef DUMP_DATA
|
||||
#define CY_DUMP_DATA(INPUT,LEN)\
|
||||
{\
|
||||
int i = 0, len = LEN;\
|
||||
while ((len)) {\
|
||||
printf ("%x ", (INPUT)[i++]);\
|
||||
len--;\
|
||||
}\
|
||||
printf ("\n");\
|
||||
}
|
||||
#else
|
||||
#define CY_DUMP_DATA (INPUT, LEN) do { }while (0);
|
||||
#endif
|
||||
#define CY_USB_SERIAL_TIMEOUT 5000
|
||||
#define CY_EVENT_NOTIFICATION_TIMEOUT 0 //This will make the transfer infinite
|
||||
|
||||
#define CY_VENDOR_REQUEST_DEVICE_TO_HOST 0xC0
|
||||
#define CY_VENDOR_REQUEST_HOST_TO_DEVICE 0x40
|
||||
|
||||
#define CY_CLASS_INTERFACE_REQUEST_DEVICE_TO_HOST 0XA1
|
||||
#define CY_CLASS_INTERFACE_REQUEST_HOST_TO_DEVICE 0x21
|
||||
//I2C related macros
|
||||
#define CY_SCB_INDEX_POS 15
|
||||
#define CY_I2C_CONFIG_LENGTH 16
|
||||
#define CY_I2C_WRITE_COMMAND_POS 3
|
||||
#define CY_I2C_WRITE_COMMAND_LEN_POS 4
|
||||
#define CY_I2C_GET_STATUS_LEN 3
|
||||
#define CY_I2C_MODE_WRITE 1
|
||||
#define CY_I2C_MODE_READ 0
|
||||
#define CY_I2C_ERROR_BIT (1)
|
||||
#define CY_I2C_ARBITRATION_ERROR_BIT (1 << 1)
|
||||
#define CY_I2C_NAK_ERROR_BIT (1 << 2)
|
||||
#define CY_I2C_BUS_ERROR_BIT (1 << 3)
|
||||
#define CY_I2C_STOP_BIT_ERROR (1 << 4)
|
||||
#define CY_I2C_BUS_BUSY_ERROR (1 << 5)
|
||||
#define CY_I2C_ENABLE_PRECISE_TIMING 1
|
||||
#define CY_I2C_EVENT_NOTIFICATION_LEN 3
|
||||
//SPI related Macros
|
||||
#define CY_SPI_CONFIG_LEN 16
|
||||
#define CY_SPI_EVENT_NOTIFICATION_LEN 2
|
||||
#define CY_SPI_READ_BIT (1)
|
||||
#define CY_SPI_WRITE_BIT (1 << 1)
|
||||
#define CY_SPI_SCB_INDEX_BIT (1 << 15)
|
||||
#define CY_SPI_GET_STATUS_LEN 4
|
||||
#define CY_SPI_UNDERFLOW_ERROR (1)
|
||||
#define CY_SPI_BUS_ERROR (1 << 1)
|
||||
//Vendor UART related macros
|
||||
#define CY_UART_SET_FLOW_CONTROL_CMD 0x60
|
||||
#define CY_UART_SEND_BREAK_CMD 0x17
|
||||
#define CY_UART_CONFIG_LEN 16
|
||||
#define CY_SET_LINE_CONTROL_STATE_CMD 0x22
|
||||
#define CY_UART_EVENT_NOTIFICATION_LEN 10
|
||||
|
||||
#define CY_UART_SERIAL_STATE_CARRIER_DETECT 1
|
||||
#define CY_UART_SERIAL_STATE_TRANSMISSION_CARRIER (1 << 1)
|
||||
#define CY_UART_SERIAL_STATE_BREAK_DETECTION (1<< 2)
|
||||
#define CY_UART_SERIAL_STATE_RING_SIGNAL_DETECTION (1 << 3)
|
||||
#define CY_UART_SERIAL_STATE_FRAMING_ERROR (1 << 4)
|
||||
#define CY_UART_SERIAL_STATE_PARITY_ERROR (1 << 5)
|
||||
#define CY_UART_SERIAL_STATUE_OVERRUN (1 << 6)
|
||||
//Bootloader related macros
|
||||
#define CY_BOOT_CONFIG_SIZE 64
|
||||
#define CY_DEVICE_CONFIG_SIZE 512
|
||||
#define CY_FIRMWARE_BREAKUP_SIZE 4096
|
||||
#define CY_GET_SILICON_ID_LEN 4
|
||||
#define CY_GET_FIRMWARE_VERSION_LEN 8
|
||||
#define CY_GET_SIGNATURE_LEN 4
|
||||
//PHDC related macros
|
||||
#define CY_PHDC_SET_FEATURE 0X03
|
||||
#define CY_PHDC_CLR_FEATURE 0X01
|
||||
#define CY_PHDC_GET_DATA_STATUS 0x00
|
||||
|
||||
typedef enum CY_VENDOR_CMDS
|
||||
{
|
||||
CY_GET_VERSION_CMD = 0xB0, /* Get the version of the boot-loader.
|
||||
value = 0, index = 0, length = 4;
|
||||
data_in = 32 bit version. */
|
||||
|
||||
CY_GET_SIGNATURE_CMD = 0xBD, /*Get the signature of the firmware
|
||||
It is suppose to be 'CYUS' for normal firmware
|
||||
and 'CYBL' for Bootloader.*/
|
||||
CY_UART_GET_CONFIG_CMD = 0xC0, /* Retreive the 16 byte UART configuration information.
|
||||
MS bit of value indicates the SCB index.
|
||||
length = 16, data_in = 16 byte configuration. */
|
||||
CY_UART_SET_CONFIG_CMD, /* Update the 16 byte UART configuration information.
|
||||
MS bit of value indicates the SCB index.
|
||||
length = 16, data_out = 16 byte configuration information. */
|
||||
CY_SPI_GET_CONFIG_CMD, /* Retreive the 16 byte SPI configuration information.
|
||||
MS bit of value indicates the SCB index.
|
||||
length = 16, data_in = 16 byte configuration. */
|
||||
CY_SPI_SET_CONFIG_CMD, /* Update the 16 byte SPI configuration information.
|
||||
MS bit of value indicates the SCB index.
|
||||
length = 16, data_out = 16 byte configuration information. */
|
||||
CY_I2C_GET_CONFIG_CMD, /* Retreive the 16 byte I2C configuration information.
|
||||
MS bit of value indicates the SCB index.
|
||||
length = 16, data_in = 16 byte configuration. */
|
||||
CY_I2C_SET_CONFIG_CMD = 0xC5, /* Update the 16 byte I2C configuration information.
|
||||
MS bit of value indicates the SCB index.
|
||||
length = 16, data_out = 16 byte configuration information. */
|
||||
CY_I2C_WRITE_CMD, /* Perform I2C write operation.
|
||||
value = bit0 - start, bit1 - stop, bit3 - start on idle,
|
||||
bits[14:8] - slave address, bit15 - scbIndex. length = 0. The
|
||||
data is provided over the bulk endpoints. */
|
||||
CY_I2C_READ_CMD, /* Perform I2C read operation.
|
||||
value = bit0 - start, bit1 - stop, bit2 - Nak last byte,
|
||||
bit3 - start on idle, bits[14:8] - slave address, bit15 - scbIndex,
|
||||
length = 0. The data is provided over the bulk endpoints. */
|
||||
CY_I2C_GET_STATUS_CMD, /* Retreive the I2C bus status.
|
||||
value = bit0 - 0: TX 1: RX, bit15 - scbIndex, length = 3,
|
||||
data_in = byte0: bit0 - flag, bit1 - bus_state, bit2 - SDA state,
|
||||
bit3 - TX underflow, bit4 - arbitration error, bit5 - NAK
|
||||
bit6 - bus error,
|
||||
byte[2:1] Data count remaining. */
|
||||
CY_I2C_RESET_CMD, /* The command cleans up the I2C state machine and frees the bus.
|
||||
value = bit0 - 0: TX path, 1: RX path; bit15 - scbIndex,
|
||||
length = 0. */
|
||||
CY_SPI_READ_WRITE_CMD = 0xCA, /* The command starts a read / write operation at SPI.
|
||||
value = bit 0 - RX enable, bit 1 - TX enable, bit 15 - scbIndex;
|
||||
index = length of transfer. */
|
||||
CY_SPI_RESET_CMD, /* The command resets the SPI pipes and allows it to receive new
|
||||
request.
|
||||
value = bit 15 - scbIndex */
|
||||
CY_SPI_GET_STATUS_CMD, /* The command returns the current transfer status. The count will match
|
||||
the TX pipe status at SPI end. For completion of read, read all data
|
||||
at the USB end signifies the end of transfer.
|
||||
value = bit 15 - scbIndex */
|
||||
CY_JTAG_ENABLE_CMD = 0xD0, /* Enable JTAG module */
|
||||
CY_JTAG_DISABLE_CMD, /* Disable JTAG module */
|
||||
CY_JTAG_READ_CMD, /* JTAG read vendor command */
|
||||
CY_JTAG_WRITE_CMD, /* JTAG write vendor command */
|
||||
CY_GPIO_GET_CONFIG_CMD = 0xD8, /* Get the GPIO configuration: */
|
||||
CY_GPIO_SET_CONFIG_CMD, /* Set the GPIO configuration */
|
||||
CY_GPIO_GET_VALUE_CMD, /* Get GPIO value: */
|
||||
CY_GPIO_SET_VALUE_CMD, /* Set the GPIO value:*/
|
||||
CY_PROG_USER_FLASH_CMD = 0xE0, /*Program user flash area. The total space available is 512 bytes.
|
||||
This can be accessed by the user from USB. The flash area
|
||||
address offset is from 0x0000 to 0x00200 and can be written to
|
||||
page wise (128 byte).*/
|
||||
CY_READ_USER_FLASH_CMD, /*Read user flash area. The total space available is 512 bytes.
|
||||
This can be accessed by the user from USB. The flash area
|
||||
address offset is from 0x0000 to 0x00200 and can be written to
|
||||
page wise (128 byte).*/
|
||||
CY_DEVICE_RESET_CMD = 0xE3, /*Performs a device reset from firmware*/
|
||||
|
||||
} CY_VENDOR_CMDS;
|
||||
|
||||
//JTAG related Macros
|
||||
#define CY_JTAG_OUT_EP 0x04
|
||||
#define CY_JTAG_IN_EP 0x85
|
||||
|
||||
//GPIO related Macros
|
||||
#define CY_GPIO_GET_LEN 2
|
||||
#define CY_GPIO_SET_LEN 1
|
||||
|
||||
//PHDC related macros
|
||||
#define CY_PHDC_GET_STATUS_LEN 2
|
||||
#define CY_PHDC_CLR_FEATURE_WVALUE 0x1
|
||||
#define CY_PHDC_SET_FEATURE_WVALUE 0x0101
|
||||
|
||||
20
configutility/linux/library/Makefile
Normal file
20
configutility/linux/library/Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
all:
|
||||
gcc -fPIC -g -Wall -o libcyusb.o -c cyusb.c -I ../../common/header
|
||||
gcc -fPIC -g -Wall -o libcyuart.o -c cyuart.c -I ../../common/header
|
||||
gcc -fPIC -g -Wall -o libcyi2c.o -c cyi2c.c -I ../../common/header
|
||||
gcc -fPIC -g -Wall -o libcyspi.o -c cyspi.c -I ../../common/header
|
||||
gcc -fPIC -g -Wall -o libcyphdc.o -c cyphdc.c -I ../../common/header
|
||||
gcc -fPIC -g -Wall -o libcyjtag.o -c cyjtag.c -I ../../common/header
|
||||
gcc -fPIC -g -Wall -o libcymisc.o -c cymisc.c -I ../../common/header
|
||||
gcc -fPIC -g -Wall -o libcyboot.o -c cyboot.c -I ../../common/header
|
||||
|
||||
gcc -shared -g -Wl,-soname,libcyusbserial.so -o libcyusbserial.so.1 libcyusb.o libcyuart.o libcyi2c.o libcyspi.o libcyphdc.o libcyjtag.o libcymisc.o libcyboot.o -l usb-1.0
|
||||
cp libcyusbserial.so.1 /usr/local/lib
|
||||
ln -sf /usr/local/lib/libcyusbserial.so.1 /usr/local/lib/libcyusbserial.so
|
||||
ldconfig
|
||||
rm -f libcyusb.o libcyuart.o libcyspi.o libcyi2c.o libcyphdc.o libcyjtag.o libcymisc.o libcyboot.o
|
||||
clean:
|
||||
rm -f libcyusbserial.so libcyusbserial.so.1
|
||||
help:
|
||||
@echo 'make would compile and create the library and create a link'
|
||||
@echo 'make clean would remove the library and the soft link to the library (soname)'
|
||||
668
configutility/linux/library/cyboot.c
Normal file
668
configutility/linux/library/cyboot.c
Normal file
@@ -0,0 +1,668 @@
|
||||
#include "CyUSBCommon.h"
|
||||
#include "CyUSBBootloader.h"
|
||||
/*
|
||||
CyReadFlash will read the content of flash from the
|
||||
specified address
|
||||
*/
|
||||
|
||||
UINT32 fmVersion;
|
||||
UINT32 fmChecksum;
|
||||
UINT32 firmwareSize = 0;
|
||||
UINT32 firmwareEntry;
|
||||
UINT32 firmwareStart;
|
||||
typedef enum CY_BOOT_VENDOR_CMDS
|
||||
{
|
||||
CY_CMD_GET_VERSION = 0xB0, /* Get the version of the boot-loader.
|
||||
value = 0, index = 0, length = 4;
|
||||
data_in = 32 bit version. */
|
||||
CY_BOOT_CMD_GET_SILICON_ID= 0xB1, /* Get the silicon ID for the device.
|
||||
value = 0, index = 0, length = 4;
|
||||
data_in = 32 bit silicon id. */
|
||||
CY_BOOT_CMD_READ_FLASH, /* Read flash content:
|
||||
value = MS word of address,
|
||||
index = LS word of address(4 byte aligned),
|
||||
length = length of read (4 byte multiple);
|
||||
data_in = requested data from flash. */
|
||||
CY_BOOT_CMD_PROG_FLASH, /* Program data into flash:
|
||||
value = MS word of address,
|
||||
index = LS word of address(128 byte aligned),
|
||||
length = length of write (128 byte multiple);
|
||||
data_out = data to be written to flash. */
|
||||
CY_BOOT_CMD_RESERVED_0, /* Reserved*/
|
||||
CY_BOOT_CMD_READ_CONFIG = 0xB5, /* Read the device configuration table:
|
||||
value = 0, index = 0, length = 512;
|
||||
data_in = device configuration table. */
|
||||
CY_BOOT_CMD_PROG_CONFIG = 0xB6, /* Program the device configuration table:
|
||||
value = 0, index = 0, length = 512;
|
||||
data_out = device configuration table. */
|
||||
CY_BOOT_CMD_READ_BOOT_CONFIG, /* Read the boot-loader configuration table;
|
||||
value = 0, index = 0, length = 256;
|
||||
data_in = boot-loader configuration table. */
|
||||
CY_BOOT_CMD_PROG_BOOT_CONFIG, /* Program the boot-loader configuration table;
|
||||
value = 0, index = 0, length = 256;
|
||||
data_out = boot-loader configuration table. */
|
||||
CY_BOOT_CMD_RESERVED_1, /* RESERVED */
|
||||
CY_BOOT_CMD_VALIDATE_CHECKSUM = 0xBA,/* Calculate checksum and compare against the
|
||||
content of the device configuration table. */
|
||||
CY_BOOT_CMD_READ_MEM, /* Read from the SRAM memory:
|
||||
index = LS word of address(4 byte aligned),
|
||||
length = length of read (4 byte multiple);
|
||||
data_in = requested data from SRAM. */
|
||||
CY_BOOT_CMD_WRITE_MEM, /* Program data into SRAM memory:
|
||||
value = MS word of address,
|
||||
index = LS word of address(4 byte aligned),
|
||||
length = length of write (4 byte multiple);
|
||||
data_out = data to be written to SRAM. */
|
||||
CY_VENDOR_GET_SIGNATURE, /*Get the signature of the firmware
|
||||
It is suppose to be 'CYUS' for normal firmware
|
||||
and 'CYBL' for Bootloader.*/
|
||||
CY_BOOT_CMD_MFG_JUMP, /*Jump to bootloader mode*/
|
||||
|
||||
CY_VENDOR_ENTER_MFG_MODE = 0xE2 /* Enter the configuration mode. This needs to be invoked to enter
|
||||
the manufacturing mode. If this is not set, then the device shall
|
||||
not allow any of the configuration requests (B0 to BF) to go through.
|
||||
Value = ~"CY" = 0xA6BC, index = ~"OF" = 0xB9B0: for disable,
|
||||
Value = ~"CY" = 0xA6BC, ~"ON" = 0xB1B0: for enable,
|
||||
Length = 0. */
|
||||
|
||||
} CY_BOOT_VENDOR_CMDS;
|
||||
|
||||
#define CY_DEVICE_CONFIG_SIZE 512
|
||||
#define CY_GET_SILICON_ID_LEN 4
|
||||
#define CY_USB_SERIAL_TIMEOUT 0
|
||||
|
||||
CY_RETURN_STATUS CyReadFlash (
|
||||
CY_HANDLE handle,
|
||||
PCY_BOOTLD_BUFFER readBuffer,
|
||||
UINT32 ioTimeout
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (readBuffer == NULL || readBuffer->buffer == NULL || readBuffer->length == 0)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
bmRequestType = CY_VENDOR_REQUEST_DEVICE_TO_HOST;
|
||||
bmRequest = CY_BOOT_CMD_READ_FLASH;
|
||||
wValue = ((readBuffer->address & 0xFFFF0000 ) >> 16);
|
||||
wIndex = (readBuffer->address & 0x0000FFFF );
|
||||
|
||||
wLength = (readBuffer->length);
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, readBuffer->buffer, wLength, ioTimeout);
|
||||
if (rStatus > 0){
|
||||
*(readBuffer->bytesReturned) = rStatus;
|
||||
CY_DEBUG_PRINT_ERROR ("CY:The Length is %d\n", rStatus);
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Device Timed out.. \n");
|
||||
*(readBuffer->bytesReturned) = 0;
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error in process the request.. libusb error is %d \n", rStatus);
|
||||
*(readBuffer->bytesReturned) = 0;
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
CyProgFlash will write the content of flash from the
|
||||
specified address
|
||||
*/
|
||||
CY_RETURN_STATUS CyProgFlash (
|
||||
CY_HANDLE handle,
|
||||
PCY_BOOTLD_BUFFER writeBuffer,
|
||||
UINT32 ioTimeout
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (writeBuffer == NULL || writeBuffer->buffer == NULL || writeBuffer->length == 0)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_BOOT_CMD_PROG_FLASH;
|
||||
wValue = ((writeBuffer->address & 0xFFFF0000 ) >> 16);
|
||||
wIndex = (writeBuffer->address & 0x0000FFFF );
|
||||
|
||||
wLength = (writeBuffer->length);
|
||||
CY_DEBUG_PRINT_INFO ("CY:The Length is %d , Value is %d and index is %d\n", wLength, wValue, wIndex);
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, writeBuffer->buffer, wLength, ioTimeout);
|
||||
if (rStatus > 0){
|
||||
*(writeBuffer->bytesReturned) = rStatus;
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Device Timed out.. \n");
|
||||
*(writeBuffer->bytesReturned) = 0;
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error in process the request..libusb error is %d \n", rStatus);
|
||||
*(writeBuffer->bytesReturned) = 0;
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/* CyReadMemory will read the content of SRAM from the
|
||||
specified address
|
||||
*/
|
||||
CY_RETURN_STATUS CyReadMemory (
|
||||
CY_HANDLE handle,
|
||||
PCY_BOOTLD_BUFFER readBuffer,
|
||||
UINT32 ioTimeout
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (readBuffer == NULL || readBuffer->buffer == NULL || readBuffer->length == 0)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_DEVICE_TO_HOST;
|
||||
bmRequest = CY_BOOT_CMD_READ_MEM;
|
||||
wValue = ((readBuffer->address & 0xFFFF0000 ) >> 16);
|
||||
wIndex = (readBuffer->address & 0x0000FFFF );
|
||||
wLength = (readBuffer->length);
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, readBuffer->buffer, wLength, ioTimeout);
|
||||
if (rStatus > 0){
|
||||
*(readBuffer->bytesReturned) = rStatus;
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Device Timed out.. \n");
|
||||
*(readBuffer->bytesReturned) = 0;
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error in processing the request.. libusb error is %d \n", rStatus);
|
||||
*(readBuffer->bytesReturned) = 0;
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
CyWriteMemory will write the content to specified address
|
||||
in SRAM
|
||||
*/
|
||||
CY_RETURN_STATUS CyWriteMemory (
|
||||
CY_HANDLE handle,
|
||||
PCY_BOOTLD_BUFFER writeBuffer,
|
||||
UINT32 ioTimeout
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (writeBuffer == NULL || writeBuffer->buffer == NULL || writeBuffer->length == 0)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_BOOT_CMD_WRITE_MEM;
|
||||
wValue = ((writeBuffer->address & 0xFFFF0000 ) >> 16);
|
||||
wIndex = (writeBuffer->address & 0x0000FFFF );
|
||||
wLength = (writeBuffer->length);
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, writeBuffer->buffer, wLength, ioTimeout);
|
||||
if (rStatus > 0){
|
||||
*(writeBuffer->bytesReturned) = rStatus;
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Device Timed out.. \n");
|
||||
*(writeBuffer->bytesReturned) = 0;
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error in process the request..libusb error is %d \n", rStatus);
|
||||
*(writeBuffer->bytesReturned) = 0;
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
This function will update the checksum value in device configuration table.
|
||||
*/
|
||||
CY_RETURN_STATUS CyValidateChecksum (
|
||||
CY_HANDLE handle
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus, ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_BOOT_CMD_VALIDATE_CHECKSUM;
|
||||
wValue = 0x00;
|
||||
wIndex = 0x00;
|
||||
wLength = 0;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus >= 0){
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Validate Checksum Failed..libusb error is %d \n", rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
CyReadBootConfig will read the entire boot configuration table
|
||||
*/
|
||||
CY_RETURN_STATUS CyReadBootConfig (
|
||||
CY_HANDLE handle,
|
||||
UINT8 *bootConfig
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus, ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (bootConfig == NULL)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_DEVICE_TO_HOST;
|
||||
bmRequest = CY_BOOT_CMD_READ_BOOT_CONFIG;
|
||||
wValue = 0x00;
|
||||
wIndex = 0x00;
|
||||
wLength = CY_BOOT_CONFIG_SIZE;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, bootConfig, wLength, ioTimeout);
|
||||
if (rStatus == CY_BOOT_CONFIG_SIZE){
|
||||
CY_DEBUG_PRINT_INFO ("CY:Successfully read Boot loader configuration ... \n");
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: There was a Time out error in Reading Boot config .. \n");
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else{
|
||||
CY_DEBUG_PRINT_ERROR ("CY: There was an error in Reading Boot config... libusb error is %d \n", rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
CyWriteBootConfig will write the entire boot configuration table
|
||||
*/
|
||||
CY_RETURN_STATUS CyWriteBootConfig (
|
||||
CY_HANDLE handle,
|
||||
UINT8 *bootConfig
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus, ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (bootConfig == NULL)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_BOOT_CMD_PROG_BOOT_CONFIG;
|
||||
wValue = 0x00;
|
||||
wIndex = 0x00;
|
||||
wLength = CY_BOOT_CONFIG_SIZE;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, bootConfig, wLength, ioTimeout);
|
||||
|
||||
if (rStatus == CY_BOOT_CONFIG_SIZE){
|
||||
CY_DEBUG_PRINT_INFO ("CY:Successfully wrote boot configuration \n");
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: There was a Time out error in Writing Boot config .. \n");
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else{
|
||||
CY_DEBUG_PRINT_ERROR ("CY: There was an error in Writing Boot config ..libusb error is %d \n", rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
This Api will download the firmware on to Cy USB serial device
|
||||
*/
|
||||
CY_RETURN_STATUS CyDownloadFirmware (
|
||||
CY_HANDLE handle,
|
||||
CHAR *filePath
|
||||
)
|
||||
{
|
||||
UINT32 fd, bytesRead, totalLength, bytesRemaining, ioTimeout = CY_USB_SERIAL_TIMEOUT, rStatus;
|
||||
UINT32 address, *tempAdd;
|
||||
UINT32 checkStart = 0;
|
||||
UCHAR buffer[CY_FIRMWARE_BREAKUP_SIZE];
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (filePath == NULL)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
fd = open (filePath, O_RDONLY);
|
||||
if (fd < 0){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error in Opening the File ... \n");
|
||||
return CY_ERROR_DOWNLOAD_FAILED;
|
||||
}
|
||||
bytesRead = read (fd, buffer, 4);
|
||||
if (bytesRead != 4){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in Read Length ... \n");
|
||||
close (fd);
|
||||
return CY_ERROR_INVALID_FIRMWARE;
|
||||
}
|
||||
if (strncmp ((char*)buffer, "CYUS", 4)){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Not a valid image,no valid signature .... \n");
|
||||
close (fd);
|
||||
return CY_ERROR_FIRMWARE_INVALID_SIGNATURE;
|
||||
}
|
||||
// Read off the Version before reading the length of the section
|
||||
bytesRead = read (fd, buffer, 4);
|
||||
if (bytesRead != 4){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in Reading firmware version... \n");
|
||||
close (fd);
|
||||
return CY_ERROR_INVALID_FIRMWARE;
|
||||
}
|
||||
tempAdd = (UINT32 *)buffer;
|
||||
fmVersion = *tempAdd;
|
||||
CY_DEBUG_PRINT_ERROR ("CY:The firmware version is %d \n", fmVersion);
|
||||
while (1){
|
||||
bytesRead = read (fd, buffer, 4);
|
||||
if (bytesRead != 4){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in reading firmware Length ... \n");
|
||||
close (fd);
|
||||
return CY_ERROR_DOWNLOAD_FAILED;;
|
||||
|
||||
}
|
||||
tempAdd = (UINT32 *)buffer;
|
||||
totalLength = (totalLength * 4);
|
||||
firmwareSize = firmwareSize + totalLength;
|
||||
bytesRead = read(fd, buffer, 4);
|
||||
if (bytesRead != 4){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in reading Address ... \n");
|
||||
close (fd);
|
||||
return CY_ERROR_DOWNLOAD_FAILED;
|
||||
}
|
||||
tempAdd = (UINT32 *)buffer;
|
||||
address = *tempAdd;
|
||||
bytesRemaining = totalLength;
|
||||
if (checkStart == 0){
|
||||
// Get the Firmware Start Address so that
|
||||
// it is updated in the device configuration table
|
||||
firmwareStart = address;
|
||||
CY_DEBUG_PRINT_INFO ("CY: The firmware start address is %x \n", firmwareStart);
|
||||
checkStart++;
|
||||
}
|
||||
if (bytesRemaining == 0){
|
||||
break;
|
||||
}
|
||||
else {
|
||||
while (bytesRemaining >= CY_FIRMWARE_BREAKUP_SIZE) {
|
||||
bytesRead = read(fd, buffer, CY_FIRMWARE_BREAKUP_SIZE);
|
||||
bytesRemaining -= bytesRead;
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_BOOT_CMD_PROG_FLASH;
|
||||
wIndex = (address & 0x0000FFFF);
|
||||
wValue = ((address & 0xFFFF0000) >> 16);
|
||||
wLength = bytesRead;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, buffer, wLength, ioTimeout);
|
||||
if (rStatus <= LIBUSB_SUCCESS){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in programming device %d... \n", rStatus);
|
||||
close (fd);
|
||||
return CY_ERROR_DOWNLOAD_FAILED;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_INFO ("CY:The number of bytes is %d \n",rStatus);
|
||||
}
|
||||
address += CY_FIRMWARE_BREAKUP_SIZE;
|
||||
}
|
||||
if (bytesRemaining != 0){
|
||||
bytesRead = read(fd, buffer, bytesRemaining);
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_BOOT_CMD_PROG_FLASH;
|
||||
wIndex = (address & 0x0000FFFF);
|
||||
wValue = ( (address & 0xFFFF0000) >> 16 );
|
||||
wLength = bytesRead;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, buffer, wLength, ioTimeout);
|
||||
if (rStatus <= LIBUSB_SUCCESS){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in programming device %d... \n", rStatus);
|
||||
close (fd);
|
||||
return CY_ERROR_DOWNLOAD_FAILED;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
CY_DEBUG_PRINT_INFO ("Firmware Size is %d \n", firmwareSize);
|
||||
// Reading firmwareEntry so that it is updated in device configuration
|
||||
// Table.
|
||||
firmwareSize = (firmwareSize / 4);
|
||||
firmwareEntry = address;
|
||||
CY_DEBUG_PRINT_INFO ("CY: Firmare entry %p ...\n", firmwareEntry);
|
||||
bytesRead = read (fd,buffer, 4);
|
||||
tempAdd = (UINT32*)buffer;
|
||||
// Get the firmware checksum.
|
||||
fmChecksum = *tempAdd;
|
||||
CY_DEBUG_PRINT_INFO ("CY:The Checksum value is %x \n",(*tempAdd));
|
||||
close (fd);
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
/*
|
||||
This API is used to Read the Silicon ID
|
||||
*/
|
||||
CY_RETURN_STATUS CyGetSiliconID(
|
||||
CY_HANDLE handle,
|
||||
UINT32 *siliconID
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus, ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (siliconID == NULL)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_DEVICE_TO_HOST;
|
||||
bmRequest = CY_BOOT_CMD_GET_SILICON_ID;
|
||||
wValue = 0x00;
|
||||
wIndex = 0x00;
|
||||
wLength = CY_GET_SILICON_ID_LEN;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, (UINT8 *)siliconID, wLength, ioTimeout);
|
||||
|
||||
if (rStatus > 0){
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: There was a Time out error in Reading SiliconID .. \n");
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else{
|
||||
CY_DEBUG_PRINT_ERROR ("CY: There was an error doing read of silicon ID..Libusb error is %d\n", rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
This API reads the SCB configurations and can be
|
||||
used only at the time of manufacturing and programming
|
||||
the device
|
||||
*/
|
||||
CY_RETURN_STATUS CyReadDeviceConfig (
|
||||
CY_HANDLE handle,
|
||||
UINT8 *deviceConfig
|
||||
)
|
||||
{
|
||||
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT32 rStatus, timeout = CY_USB_SERIAL_TIMEOUT;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (deviceConfig == NULL)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_DEVICE_TO_HOST;
|
||||
bmRequest = CY_BOOT_CMD_READ_CONFIG;
|
||||
wValue = 0x00;
|
||||
wIndex = 0x00;
|
||||
wLength = CY_DEVICE_CONFIG_SIZE;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, deviceConfig, wLength, timeout);
|
||||
if (rStatus == CY_DEVICE_CONFIG_SIZE){
|
||||
CY_DEBUG_PRINT_INFO ("CY:Successfully Read the configuration ... \n");
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else{
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error in reading Device configuration... Libusb error is %d\n", rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
This Api writes the device configuration on to the device table of CY Usb Serial
|
||||
It is used only when the device is in bootloader mode and at the time of configuring the
|
||||
device
|
||||
*/
|
||||
CY_RETURN_STATUS CyWriteDeviceConfig (
|
||||
CY_HANDLE handle,
|
||||
UINT8 *deviceConfig
|
||||
)
|
||||
{
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT32 rStatus, timeout = CY_USB_SERIAL_TIMEOUT;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
if (deviceConfig == NULL)
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_BOOT_CMD_PROG_CONFIG;
|
||||
wValue = 0x00;
|
||||
wIndex = 0x00;
|
||||
|
||||
wLength = CY_DEVICE_CONFIG_SIZE;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, deviceConfig, wLength, timeout);
|
||||
if (rStatus == CY_DEVICE_CONFIG_SIZE){
|
||||
CY_DEBUG_PRINT_INFO ("CY:Successfully wrote the configuration ... \n");
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else{
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in Writing Device config ... Libusb error is %d\n", rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/* Flash config enable will enable reading/writing on flash*/
|
||||
CY_RETURN_STATUS CyFlashConfigEnable (
|
||||
CY_HANDLE handle,
|
||||
BOOL isEnable
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
UINT32 rStatus, ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (isEnable){
|
||||
wValue = 0xA6BC;
|
||||
wIndex = 0xB1B0; //ON
|
||||
}
|
||||
else{
|
||||
wValue = 0xA6B6;
|
||||
wIndex = 0xB9B0; //OFF
|
||||
}
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_VENDOR_ENTER_MFG_MODE;
|
||||
wLength = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, 5000);
|
||||
if (rStatus >= 0){
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: There was a Time out error in Flash config enable .. \n");
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else{
|
||||
CY_DEBUG_PRINT_ERROR ("CY: There was an error in Flash config enable..Libusb error is %d\n", rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,248 +1,247 @@
|
||||
/*
|
||||
* JTAG routines of Cypress USB Serial
|
||||
* Copyright (C) 2013 Cypress Semiconductor
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "CyUSBCommon.h"
|
||||
/*
|
||||
* This API enables the Jtag module
|
||||
*/
|
||||
CY_RETURN_STATUS CyJtagEnable (
|
||||
CY_HANDLE handle
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT16 bmRequestType, bmRequest;
|
||||
int rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT32 ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
|
||||
if (handle == NULL){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid handle.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (device->deviceType != CY_TYPE_JTAG) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error device type is not jtag ... Function is %s \n", __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_JTAG_ENABLE_CMD;
|
||||
wValue = 0x00;
|
||||
wIndex = 0;
|
||||
wLength = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus >= 0){
|
||||
CY_DEBUG_PRINT_INFO ("CY: JTAG enable successfully \n");
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error ..function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function %s ...libusb error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* This API disables the Jtag module
|
||||
*/
|
||||
CY_RETURN_STATUS CyJtagDisable (
|
||||
CY_HANDLE handle
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT16 bmRequestType, bmRequest;
|
||||
int rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT32 ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
|
||||
if (handle == NULL){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid handle.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (device->deviceType != CY_TYPE_JTAG) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error device type is not jtag ... Function is %s \n", __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_JTAG_DISABLE_CMD;
|
||||
wValue = 0x00;
|
||||
wIndex = 0;
|
||||
wLength = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus >= 0){
|
||||
CY_DEBUG_PRINT_INFO ("CY: JTAG disable successfully \n");
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error while enabling JTAG ..\n");
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error while enabling JTAG ...libusb error is %d function is %s!\n", rStatus, __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* This API is used to do jtag write
|
||||
*/
|
||||
CY_RETURN_STATUS CyJtagWrite (
|
||||
CY_HANDLE handle,
|
||||
CY_DATA_BUFFER *writeBuffer,
|
||||
UINT32 ioTimeout
|
||||
)
|
||||
{
|
||||
int rStatus = 0;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT16 bmRequestType, bmRequest;
|
||||
|
||||
if (handle == NULL){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid handle.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
if ((writeBuffer == NULL) || (writeBuffer->buffer == NULL) || (writeBuffer->length == 0)){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid parameter.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (device->deviceType != CY_TYPE_JTAG) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error device type is not jtag ... Function is %s \n", __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_JTAG_WRITE_CMD;
|
||||
wValue = writeBuffer->length;
|
||||
wIndex = 0;
|
||||
wLength = 0;
|
||||
writeBuffer->transferCount = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus < 0){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: JTAG Vendor command failed %d...function is %s \n", rStatus, __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
rStatus = libusb_bulk_transfer (devHandle, CY_JTAG_OUT_EP, writeBuffer->buffer, writeBuffer->length,
|
||||
(int*)&(writeBuffer->transferCount), ioTimeout);
|
||||
if (rStatus == CY_SUCCESS) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Number of bytes written is .... %d \n", writeBuffer->transferCount);
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:TimeOut error ...Function is %s %d\n", __func__, writeBuffer->transferCount);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_PIPE){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Pipe error Function is %s \n", __func__);
|
||||
CyResetPipe (handle, CY_JTAG_OUT_EP);
|
||||
return CY_ERROR_PIPE_HALTED;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_OVERFLOW){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error Buffer Overflow..Function is %s \n", __func__);
|
||||
return CY_ERROR_BUFFER_OVERFLOW;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_NO_DEVICE) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Device Disconnected ....Function is %s \n", __func__);
|
||||
return CY_ERROR_DEVICE_NOT_FOUND;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in Function %s...Libusb Error is %d !\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
This API is used to read JTAG data from device interface
|
||||
*/
|
||||
CY_RETURN_STATUS CyJtagRead (
|
||||
CY_HANDLE handle,
|
||||
CY_DATA_BUFFER *readBuffer,
|
||||
UINT32 ioTimeout
|
||||
)
|
||||
{
|
||||
int rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT16 bmRequestType, bmRequest;
|
||||
|
||||
if (handle == NULL){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid handle.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
if ((readBuffer == NULL) || (readBuffer->buffer == NULL) || (readBuffer->length == 0)){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid parameter.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (device->deviceType != CY_TYPE_JTAG) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error device type is not jtag ... Function is %s \n", __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_JTAG_READ_CMD;
|
||||
wValue = readBuffer->length;
|
||||
wIndex = 0;
|
||||
wLength = 0;
|
||||
|
||||
readBuffer->transferCount = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus < 0){
|
||||
CY_DEBUG_PRINT_INFO ("CY: JTAG Vendor Command failed %d.. Function is %s \n", rStatus, __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
rStatus = libusb_bulk_transfer (devHandle, CY_JTAG_IN_EP, readBuffer->buffer, readBuffer->length,
|
||||
(int*)&(readBuffer->transferCount), ioTimeout);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Number of bytes read is .... %d \n", readBuffer->transferCount);
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:TimeOut error ...Function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_PIPE){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Pipe error Function is %s \n", __func__);
|
||||
CyResetPipe (handle, CY_JTAG_IN_EP);
|
||||
return CY_ERROR_PIPE_HALTED;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_OVERFLOW){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error Buffer Overflow..Function is %s \n", __func__);
|
||||
return CY_ERROR_BUFFER_OVERFLOW;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_NO_DEVICE) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Device Disconnected ....Function is %s \n", __func__);
|
||||
return CY_ERROR_DEVICE_NOT_FOUND;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function is %s ...Libusb Error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* JTAG routines of Cypress USB Serial
|
||||
* Copyright (C) 2013 Cypress Semiconductor
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "CyUSBCommon.h"
|
||||
/*
|
||||
* This API enables the Jtag module
|
||||
*/
|
||||
CY_RETURN_STATUS CyJtagEnable (
|
||||
CY_HANDLE handle
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT16 bmRequestType, bmRequest;
|
||||
int rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT32 ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
|
||||
if (handle == NULL){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid handle.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (device->deviceType != CY_TYPE_JTAG) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error device type is not jtag ... Function is %s \n", __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_JTAG_ENABLE_CMD;
|
||||
wValue = 0x00;
|
||||
wIndex = 0;
|
||||
wLength = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus >= 0){
|
||||
CY_DEBUG_PRINT_INFO ("CY: JTAG enable successfully \n");
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error ..function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function %s ...libusb error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* This API disables the Jtag module
|
||||
*/
|
||||
CY_RETURN_STATUS CyJtagDisable (
|
||||
CY_HANDLE handle
|
||||
)
|
||||
{
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT16 bmRequestType, bmRequest;
|
||||
int rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT32 ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
|
||||
if (handle == NULL){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid handle.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (device->deviceType != CY_TYPE_JTAG) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error device type is not jtag ... Function is %s \n", __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_JTAG_DISABLE_CMD;
|
||||
wValue = 0x00;
|
||||
wIndex = 0;
|
||||
wLength = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus >= 0){
|
||||
CY_DEBUG_PRINT_INFO ("CY: JTAG disable successfully \n");
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error while enabling JTAG ..\n");
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error while enabling JTAG ...libusb error is %d function is %s!\n", rStatus, __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* This API is used to do jtag write
|
||||
*/
|
||||
CY_RETURN_STATUS CyJtagWrite (
|
||||
CY_HANDLE handle,
|
||||
CY_DATA_BUFFER *writeBuffer,
|
||||
UINT32 ioTimeout
|
||||
)
|
||||
{
|
||||
int rStatus = 0;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT16 bmRequestType, bmRequest;
|
||||
|
||||
if (handle == NULL){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid handle.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
if ((writeBuffer == NULL) || (writeBuffer->buffer == NULL) || (writeBuffer->length == 0)){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid parameter.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (device->deviceType != CY_TYPE_JTAG) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error device type is not jtag ... Function is %s \n", __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_JTAG_WRITE_CMD;
|
||||
wValue = writeBuffer->length;
|
||||
wIndex = 0;
|
||||
wLength = 0;
|
||||
writeBuffer->transferCount = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus < 0){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: JTAG Vendor command failed %d...function is %s \n", rStatus, __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
rStatus = libusb_bulk_transfer (devHandle, CY_JTAG_OUT_EP, writeBuffer->buffer, writeBuffer->length,
|
||||
(int*)&(writeBuffer->transferCount), ioTimeout);
|
||||
if ((rStatus == CY_SUCCESS)) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Number of bytes written is .... %d \n", writeBuffer->transferCount);
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:TimeOut error ...Function is %s %d\n", __func__, writeBuffer->transferCount);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_PIPE){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Pipe error Function is %s \n", __func__);
|
||||
CyResetPipe (handle, CY_JTAG_OUT_EP);
|
||||
return CY_ERROR_PIPE_HALTED;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_OVERFLOW){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error Buffer Overflow..Function is %s \n", __func__);
|
||||
return CY_ERROR_BUFFER_OVERFLOW;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_NO_DEVICE) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Device Disconnected ....Function is %s \n", __func__);
|
||||
return CY_ERROR_DEVICE_NOT_FOUND;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in Function %s...Libusb Error is %d !\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
This API is used to read JTAG data from device interface
|
||||
*/
|
||||
CY_RETURN_STATUS CyJtagRead (
|
||||
CY_HANDLE handle,
|
||||
CY_DATA_BUFFER *readBuffer,
|
||||
UINT32 ioTimeout
|
||||
)
|
||||
{
|
||||
int rStatus;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT16 bmRequestType, bmRequest;
|
||||
|
||||
bmRequestType = CY_VENDOR_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_JTAG_READ_CMD;
|
||||
wValue = readBuffer->length;
|
||||
wIndex = 0;
|
||||
wLength = 0;
|
||||
|
||||
if (handle == NULL){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid handle.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
if ((readBuffer == NULL) || (readBuffer->buffer == NULL) || (readBuffer->length == 0)){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error invalid parameter.. Function is %s \n", __func__);
|
||||
return CY_ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
if (device->deviceType != CY_TYPE_JTAG) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error device type is not jtag ... Function is %s \n", __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
readBuffer->transferCount = 0;
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus < 0){
|
||||
CY_DEBUG_PRINT_INFO ("CY: JTAG Vendor Command failed %d.. Function is %s \n", rStatus, __func__);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
rStatus = libusb_bulk_transfer (devHandle, CY_JTAG_IN_EP, readBuffer->buffer, readBuffer->length,
|
||||
(int*)&(readBuffer->transferCount), ioTimeout);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Number of bytes read is .... %d \n", readBuffer->transferCount);
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:TimeOut error ...Function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_PIPE){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Pipe error Function is %s \n", __func__);
|
||||
CyResetPipe (handle, CY_JTAG_IN_EP);
|
||||
return CY_ERROR_PIPE_HALTED;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_OVERFLOW){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Error Buffer Overflow..Function is %s \n", __func__);
|
||||
return CY_ERROR_BUFFER_OVERFLOW;
|
||||
}
|
||||
else if (rStatus == LIBUSB_ERROR_NO_DEVICE) {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Device Disconnected ....Function is %s \n", __func__);
|
||||
return CY_ERROR_DEVICE_NOT_FOUND;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function is %s ...Libusb Error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,130 +1,130 @@
|
||||
/*
|
||||
* PHDC routines of Cypress USB Serial
|
||||
* Copyright (C) 2013 Cypress Semiconductor
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
#include "CyUSBCommon.h"
|
||||
/*
|
||||
PHDC clear feature
|
||||
*/
|
||||
CY_RETURN_STATUS CyPhdcClrFeature (CY_HANDLE handle)
|
||||
{
|
||||
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
int rStatus;
|
||||
UINT32 ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_CLASS_INTERFACE_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_PHDC_CLR_FEATURE;
|
||||
wValue = CY_PHDC_CLR_FEATURE_WVALUE;
|
||||
wIndex = device->interfaceNum;
|
||||
wLength = 0;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus == 0)
|
||||
return CY_SUCCESS;
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error ..function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function %s ...libusb error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
/*
|
||||
PHDC set feature
|
||||
*/
|
||||
CY_RETURN_STATUS CyPhdcSetFeature (CY_HANDLE handle)
|
||||
{
|
||||
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
int rStatus, ioTimeout = CY_USB_SERIAL_TIMEOUT ;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_CLASS_INTERFACE_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_PHDC_SET_FEATURE;
|
||||
wValue = CY_PHDC_SET_FEATURE_WVALUE;
|
||||
wIndex = device->interfaceNum;
|
||||
wLength = 0;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus == 0)
|
||||
return CY_SUCCESS;
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error ..function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function %s ...libusb error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
PHDC clear feature
|
||||
*/
|
||||
CY_RETURN_STATUS CyPhdcGetStatus (CY_HANDLE handle, UINT16 *dataStatus)
|
||||
{
|
||||
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
int rStatus;
|
||||
UINT32 ioTimeout = CY_USB_SERIAL_TIMEOUT ;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_CLASS_INTERFACE_REQUEST_DEVICE_TO_HOST;
|
||||
bmRequest = CY_PHDC_GET_DATA_STATUS;
|
||||
wValue = 0x00;
|
||||
wIndex = device->interfaceNum;
|
||||
wLength = CY_PHDC_GET_STATUS_LEN;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, (unsigned char*)dataStatus, wLength, ioTimeout);
|
||||
if (rStatus > 0)
|
||||
return CY_SUCCESS;
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error ..function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function %s ...libusb error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* PHDC routines of Cypress USB Serial
|
||||
* Copyright (C) 2013 Cypress Semiconductor
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
#include "CyUSBCommon.h"
|
||||
/*
|
||||
PHDC clear feature
|
||||
*/
|
||||
CY_RETURN_STATUS CyPhdcClrFeature (CY_HANDLE handle)
|
||||
{
|
||||
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
int rStatus;
|
||||
UINT32 ioTimeout = CY_USB_SERIAL_TIMEOUT;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_CLASS_INTERFACE_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_PHDC_CLR_FEATURE;
|
||||
wValue = CY_PHDC_CLR_FEATURE_WVALUE;
|
||||
wIndex = device->interfaceNum;
|
||||
wLength = 0;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus == 0)
|
||||
return CY_SUCCESS;
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error ..function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function %s ...libusb error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
return CY_SUCCESS;
|
||||
}
|
||||
/*
|
||||
PHDC set feature
|
||||
*/
|
||||
CY_RETURN_STATUS CyPhdcSetFeature (CY_HANDLE handle)
|
||||
{
|
||||
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
int rStatus, ioTimeout = CY_USB_SERIAL_TIMEOUT ;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_CLASS_INTERFACE_REQUEST_HOST_TO_DEVICE;
|
||||
bmRequest = CY_PHDC_SET_FEATURE;
|
||||
wValue = CY_PHDC_SET_FEATURE_WVALUE;
|
||||
wIndex = device->interfaceNum;
|
||||
wLength = 0;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, NULL, wLength, ioTimeout);
|
||||
if (rStatus == 0)
|
||||
return CY_SUCCESS;
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error ..function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function %s ...libusb error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
/*
|
||||
PHDC clear feature
|
||||
*/
|
||||
CY_RETURN_STATUS CyPhdcGetStatus (CY_HANDLE handle, UINT16 *dataStatus)
|
||||
{
|
||||
|
||||
UINT16 wValue, wIndex, wLength;
|
||||
UINT8 bmRequestType, bmRequest;
|
||||
int rStatus;
|
||||
UINT32 ioTimeout = CY_USB_SERIAL_TIMEOUT ;
|
||||
CY_DEVICE *device;
|
||||
libusb_device_handle *devHandle;
|
||||
|
||||
if (handle == NULL)
|
||||
return CY_ERROR_INVALID_HANDLE;
|
||||
device = (CY_DEVICE *)handle;
|
||||
devHandle = device->devHandle;
|
||||
|
||||
bmRequestType = CY_CLASS_INTERFACE_REQUEST_DEVICE_TO_HOST;
|
||||
bmRequest = CY_PHDC_GET_DATA_STATUS;
|
||||
wValue = 0x00;
|
||||
wIndex = device->interfaceNum;
|
||||
wLength = CY_PHDC_GET_STATUS_LEN;
|
||||
|
||||
rStatus = libusb_control_transfer (devHandle, bmRequestType, bmRequest,
|
||||
wValue, wIndex, (unsigned char*)dataStatus, wLength, ioTimeout);
|
||||
if (rStatus > 0)
|
||||
return CY_SUCCESS;
|
||||
else if (rStatus == LIBUSB_ERROR_TIMEOUT){
|
||||
CY_DEBUG_PRINT_ERROR ("CY:Time out error ..function is %s \n", __func__);
|
||||
return CY_ERROR_IO_TIMEOUT;
|
||||
}
|
||||
else {
|
||||
CY_DEBUG_PRINT_ERROR ("CY: Error in function %s ...libusb error is %d!\n", __func__, rStatus);
|
||||
return CY_ERROR_REQUEST_FAILED;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1
configutility/linux/library/libcyusbserial.so
Normal file
1
configutility/linux/library/libcyusbserial.so
Normal file
@@ -0,0 +1 @@
|
||||
libcyusbserial.so.1
|
||||
BIN
configutility/linux/library/libcyusbserial.so.1
Executable file
BIN
configutility/linux/library/libcyusbserial.so.1
Executable file
Binary file not shown.
5
configutility/linux/testUtility/90-cyusb.rules
Normal file
5
configutility/linux/testUtility/90-cyusb.rules
Normal file
@@ -0,0 +1,5 @@
|
||||
# Cypress USB driver for FX2 and FX3 (C) Cypress Semiconductor Corporation / ATR-LABS
|
||||
# Rules written by V. Radhakrishnan ( rk@atr-labs.com )
|
||||
# Cypress USB vendor ID = 0x04b4
|
||||
KERNEL=="*", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ACTION=="add", ATTR{idVendor}=="04b4", MODE="666", TAG="cyusb_dev", RUN+="/usr/bin/CyUSBSerial.sh A"
|
||||
KERNEL=="*", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ACTION=="remove", TAG=="cyusb_dev", RUN+="/usr/bin/CyUSBSerial.sh R"
|
||||
@@ -30,8 +30,8 @@
|
||||
#include <pthread.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "include/CyUSBSerial.h"
|
||||
#include "include/CyUSBBootloader.h"
|
||||
#include "../../common/header/CyUSBSerial.h"
|
||||
#include "../../common/header/CyUSBBootloader.h"
|
||||
|
||||
#define CY_MAX_DEVICES 30
|
||||
#define CY_MAX_INTERFACES 4
|
||||
@@ -41,7 +41,7 @@ typedef struct _CY_DEVICE_STRUCT {
|
||||
int interfaceFunctionality[CY_MAX_INTERFACES];
|
||||
bool isI2c;
|
||||
bool isSpi;
|
||||
int numInterface;
|
||||
int numInterface;
|
||||
}CY_DEVICE_STRUCT;
|
||||
|
||||
CY_DEVICE_STRUCT *glDevice;
|
||||
@@ -54,7 +54,331 @@ unsigned short pageAddress = -1;
|
||||
short readWriteLength = -1;
|
||||
bool deviceAddedRemoved = false;
|
||||
unsigned char read_buffer[512];
|
||||
int getUserInput()
|
||||
{
|
||||
char userInput[6], x;
|
||||
int output,i = 0;
|
||||
bool isDigit = true;
|
||||
x = getchar();
|
||||
while (x != '\n'){
|
||||
if (i < 5){
|
||||
userInput[i] = x;
|
||||
i++;
|
||||
}
|
||||
if (!isdigit(x))
|
||||
isDigit = false;
|
||||
|
||||
x = getchar();
|
||||
}
|
||||
userInput[i] = '\0';
|
||||
if (isDigit == false)
|
||||
return -1;
|
||||
output = atoi(userInput);
|
||||
return output;
|
||||
}
|
||||
|
||||
|
||||
unsigned int GetCheckSum(unsigned int *buff, unsigned int length)
|
||||
{
|
||||
unsigned int i,val;
|
||||
unsigned int checkSum =0;
|
||||
|
||||
for (i = 0; i < length; i++) // start at 12th byte
|
||||
{
|
||||
checkSum += buff[i];
|
||||
}
|
||||
|
||||
return checkSum;
|
||||
}
|
||||
|
||||
|
||||
void deviceHotPlug () {
|
||||
|
||||
CY_RETURN_STATUS rStatus;
|
||||
deviceAddedRemoved = true;
|
||||
selectedDeviceNum = -1;
|
||||
selectedInterfaceNum = -1;
|
||||
printf ("Device of interest Removed/Added \n");
|
||||
rStatus = CyGetListofDevices (&numDevices);
|
||||
if (rStatus != CY_SUCCESS) {
|
||||
printf ("CY:Error in Getting List of Devices: Error NO:<%d> \n", rStatus);
|
||||
return rStatus;
|
||||
}
|
||||
printListOfDevices (false);
|
||||
}
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
int index = 0, i, j, userInput;
|
||||
int output;
|
||||
int count=0,h=0,cnt;
|
||||
int size_buffer,size_checksum;
|
||||
FILE *fp=NULL;
|
||||
CY_HANDLE handle;
|
||||
unsigned char buff[516];
|
||||
int silicon_id;
|
||||
int tempSelectedDeviceNum, tempSelectedInterfaceNum;
|
||||
CY_RETURN_STATUS rStatus;
|
||||
signal (SIGUSR1, deviceHotPlug);
|
||||
char src_file[100];
|
||||
char id[4];
|
||||
|
||||
memset(buff,0,sizeof(buff));
|
||||
|
||||
|
||||
glDevice = (CY_DEVICE_STRUCT *)malloc (CY_MAX_DEVICES *sizeof (CY_DEVICE_STRUCT));
|
||||
if (glDevice == NULL){
|
||||
printf ("Memory allocation failed ...!! \n");
|
||||
return -1;
|
||||
}
|
||||
rStatus = CyLibraryInit ();
|
||||
if (rStatus != CY_SUCCESS) {
|
||||
printf ("CY:Error in Doing library init Error NO:<%d> \n", rStatus);
|
||||
return rStatus;
|
||||
}
|
||||
rStatus = CyGetListofDevices (&numDevices);
|
||||
if (rStatus != CY_SUCCESS) {
|
||||
printf ("CY:Error in Getting List of Devices: Error NO:<%d> \n", rStatus);
|
||||
return rStatus;
|
||||
}
|
||||
printListOfDevices(true);
|
||||
do {
|
||||
|
||||
printf ("-------------------------------------------------------------------\n");
|
||||
printf ("1: Print list of devices \n");
|
||||
if (selectedDeviceNum != -1 && selectedInterfaceNum != -1){
|
||||
printf ("2: Change device selection--selected device: [Device number %d] : [Interface No %d]",\
|
||||
selectedDeviceNum, selectedInterfaceNum);
|
||||
if (glDevice[selectedDeviceNum].interfaceFunctionality[selectedInterfaceNum] == CY_TYPE_I2C)
|
||||
printf (" : I2C\n");
|
||||
else if (glDevice[selectedDeviceNum].interfaceFunctionality[selectedInterfaceNum] == CY_TYPE_SPI)
|
||||
printf (" : SPI\n");
|
||||
else if (glDevice[selectedDeviceNum].interfaceFunctionality[selectedInterfaceNum] == CY_TYPE_UART)
|
||||
printf ("UART : \n");
|
||||
else
|
||||
printf (" : NA\n");
|
||||
|
||||
}
|
||||
else
|
||||
printf ("2: Select device...No device selected !!\n");
|
||||
|
||||
|
||||
userInput = getUserInput();
|
||||
if (userInput < 1 || userInput > 5){
|
||||
printf ("Wrong selection code ... Enter again \n");
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (userInput){
|
||||
|
||||
case 1:
|
||||
printListOfDevices(true);
|
||||
break;
|
||||
case 2:
|
||||
if (cyDevices == 0) {
|
||||
printf ("No device of interest connected ...!!\n");
|
||||
continue;
|
||||
}
|
||||
printf ("Enter Device number to be selected.. \n");
|
||||
tempSelectedDeviceNum = getUserInput();
|
||||
//printf ("Selected device number is %d \n",tempSelectedDeviceNum);
|
||||
if (tempSelectedDeviceNum >= cyDevices || tempSelectedDeviceNum == -1){
|
||||
printf ("Wrong device selection \n");
|
||||
continue;
|
||||
}
|
||||
printf ("Enter interface number..\n");
|
||||
tempSelectedInterfaceNum = getUserInput();
|
||||
//printf ("Selected device number is %d %d\n",tempSelectedInterfaceNum, glDevice[tempSelectedDeviceNum].numInterface);
|
||||
|
||||
if (tempSelectedInterfaceNum >= glDevice[tempSelectedDeviceNum].numInterface ||
|
||||
tempSelectedInterfaceNum == -1) {
|
||||
printf ("Wrong interface Selection selection \n");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (deviceAddedRemoved == true) {
|
||||
printf ("Device of interest was added/removed .... Print and select from new list\n");
|
||||
continue;
|
||||
}
|
||||
selectedDeviceNum = tempSelectedDeviceNum;
|
||||
selectedInterfaceNum = tempSelectedInterfaceNum;
|
||||
|
||||
|
||||
rStatus = CyOpen (selectedDeviceNum,selectedInterfaceNum , &handle);
|
||||
//printf("return status = %d", rStatus);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
//printf("device opened \n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("fail \n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
// printf("Please enter file to be opened");
|
||||
|
||||
fp = fopen(argv[1],"rb+");
|
||||
// printf("%s", src_file);
|
||||
rStatus = CyFlashConfigEnable(handle,1);
|
||||
|
||||
if (rStatus == CY_SUCCESS){
|
||||
// printf("Flash is configured");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Manufacturing mode of FLASH is not configured");
|
||||
}
|
||||
// printf("status %d",rStatus);
|
||||
|
||||
if(fp == NULL)
|
||||
{
|
||||
printf("\n fopen() Error!!!\n");
|
||||
return 1;
|
||||
}
|
||||
printf("\n File opened successfully\n");
|
||||
if(sizeof(buff) != fread(buff,1,516,fp))
|
||||
{
|
||||
printf("\n fread() failed\n");
|
||||
return 1;
|
||||
}
|
||||
printf("\n Bytes successfully read \n");
|
||||
// printf("reached here");
|
||||
|
||||
// silicon_id = *(unsigned int *)buff;
|
||||
|
||||
rStatus=CyGetSiliconID(handle,&silicon_id);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
// printf(" Correct silicon id");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not correct ID");
|
||||
}
|
||||
|
||||
// printf("silicon id %04x,%d",silicon_id,sizeof(silicon_id));
|
||||
id[0]= (silicon_id);
|
||||
id[1]= ((silicon_id >> 8) & 0xFF);
|
||||
id[2]= ((silicon_id >> 16) & 0xFF);
|
||||
id[3]= ((silicon_id >> 24) & 0xFF);
|
||||
|
||||
|
||||
|
||||
rStatus=CyReadDeviceConfig(handle,&read_buffer);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
// printf(" Got the data");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not done");
|
||||
}
|
||||
|
||||
/*printf (" 0 %02x, %02x \r \n", id[0],read_buffer[0]);
|
||||
printf (" 1 %02x, %02x \r \n", id[1],read_buffer[1]);
|
||||
printf (" 2 %02x, %02x \r \n", id[2],read_buffer[2]);
|
||||
printf (" 3 %02x, %02x\r \n", id[3],read_buffer[3]);*/
|
||||
|
||||
size_buffer = sizeof(read_buffer);
|
||||
//printf("The size is %d, buff %d", size_buffer,sizeof(buff));
|
||||
|
||||
/*for (i = 4; i < 516; i +=16)
|
||||
{
|
||||
printf("\n%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||
buff[i], buff[i+1], buff[i+2], buff[i+3], buff[i+4], buff[i+5], buff[i+6], buff[i+7], buff[i+8],
|
||||
buff[i+9], buff[i+10], buff[i+11], buff[i+12], buff[i+13], buff[i+14], buff[i+15]);
|
||||
}
|
||||
for (i = 0; i < 512; i +=16)
|
||||
{
|
||||
printf("\n%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||
read_buffer[i], read_buffer[i+1], read_buffer[i+2], read_buffer[i+3], read_buffer[i+4], read_buffer[i+5], read_buffer[i+6],
|
||||
read_buffer[i+7], read_buffer[i+8],
|
||||
read_buffer[i+9], read_buffer[i+10], read_buffer[i+11], read_buffer[i+12], read_buffer[i+13], read_buffer[i+14], read_buffer[i+15]);
|
||||
}*/
|
||||
memcpy (&buff[4], read_buffer, 28);
|
||||
|
||||
size_checksum= GetCheckSum((unsigned int *)(&buff[16]), 125);
|
||||
// printf("The checksum size is %d",size_checksum);
|
||||
|
||||
buff[12]= (size_checksum & 0xFF);
|
||||
buff[13]= ((size_checksum >> 8) & 0xFF);
|
||||
buff[14]= ((size_checksum >> 16) & 0xFF);
|
||||
buff[15]= ((size_checksum >> 24) & 0xFF);
|
||||
|
||||
// printf("checksum 0x%08x\n", size_checksum);
|
||||
/* for (i = 4; i < 516; i +=16)
|
||||
{
|
||||
printf("\n%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||
buff[i], buff[i+1], buff[i+2], buff[i+3], buff[i+4], buff[i+5], buff[i+6], buff[i+7], buff[i+8],
|
||||
buff[i+9], buff[i+10], buff[i+11], buff[i+12], buff[i+13], buff[i+14], buff[i+15]);
|
||||
}*/
|
||||
|
||||
// if(((id[0] == ffffffA1) || (id[0] == ffffffA2) || (id[0] == ffffffA3)) && (id[1] == 08))
|
||||
if((silicon_id == 0x08A1) || (silicon_id == 0x08A2) || (silicon_id == 0x08A3))
|
||||
{
|
||||
|
||||
rStatus= CyWriteDeviceConfig(handle,&buff[4]);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
printf(" Programming Flash is done");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not done");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("wrong silicon id");
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
||||
printf("\n File stream closed \n");
|
||||
|
||||
|
||||
|
||||
rStatus= CyClose(handle);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
//printf("Device closed");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not closed");
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
case 3:
|
||||
exitApp = true;
|
||||
CyLibraryExit ();
|
||||
break;
|
||||
}
|
||||
}while (exitApp == false);
|
||||
free (glDevice);
|
||||
}
|
||||
bool isCypressDevice (int deviceNum) {
|
||||
CY_HANDLE handle;
|
||||
unsigned char interfaceNum = 0;
|
||||
unsigned char sig[6];
|
||||
int op;
|
||||
CY_RETURN_STATUS rStatus;
|
||||
rStatus = CyOpen (deviceNum, interfaceNum, &handle);
|
||||
//op= libusb_detach_kernel_driver(handle,0);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
rStatus = CyGetSignature (handle, sig);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
CyClose (handle);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
CyClose (handle);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
void printListOfDevices (bool isPrint)
|
||||
{
|
||||
int index_i = 0, index_j = 0, i, j, countOfDevice = 0, devNum;
|
||||
@@ -62,15 +386,15 @@ void printListOfDevices (bool isPrint)
|
||||
bool set1 = false;
|
||||
|
||||
unsigned char deviceID[CY_MAX_DEVICES];
|
||||
char functionality[64];
|
||||
unsigned char functionality[64];
|
||||
CY_DEVICE_INFO deviceInfo;
|
||||
CY_DEVICE_CLASS deviceClass[CY_MAX_INTERFACES];
|
||||
CY_DEVICE_TYPE deviceType[CY_MAX_INTERFACES];
|
||||
CY_RETURN_STATUS rStatus;
|
||||
|
||||
deviceAddedRemoved = false;
|
||||
CyGetListofDevices ((UINT8 *)&numDevices);
|
||||
//printf ("The number of devices is %d \n", numDevices);
|
||||
deviceAddedRemoved = false;
|
||||
CyGetListofDevices (&numDevices);
|
||||
//printf ("The number of devices is %d \n", numDevices);
|
||||
for (i = 0; i < numDevices; i++){
|
||||
for (j = 0; j< CY_MAX_INTERFACES; j++)
|
||||
glDevice[i].interfaceFunctionality[j] = -1;
|
||||
@@ -111,14 +435,14 @@ void printListOfDevices (bool isPrint)
|
||||
break;
|
||||
default:
|
||||
strcpy (functionality, "NA");
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (deviceInfo.deviceClass[interfaceNum] == CY_CLASS_CDC){
|
||||
strcpy (functionality, "NA");
|
||||
}
|
||||
if (isPrint) {
|
||||
printf ("%d |%x |%x | %d | %s\n", \
|
||||
printf ("%d |%x |%x | %d | %s\n", \
|
||||
index, \
|
||||
deviceInfo.vidPid.vid, \
|
||||
deviceInfo.vidPid.pid, \
|
||||
@@ -138,328 +462,3 @@ void printListOfDevices (bool isPrint)
|
||||
printf("Cydevices %d",cyDevices);
|
||||
}
|
||||
|
||||
void deviceHotPlug () {
|
||||
|
||||
CY_RETURN_STATUS rStatus;
|
||||
deviceAddedRemoved = true;
|
||||
selectedDeviceNum = -1;
|
||||
selectedInterfaceNum = -1;
|
||||
printf ("Device of interest Removed/Added \n");
|
||||
rStatus = CyGetListofDevices ((UINT8 *)&numDevices);
|
||||
if (rStatus != CY_SUCCESS) {
|
||||
printf ("CY:Error in Getting List of Devices: Error NO:<%d> \n", rStatus);
|
||||
return;
|
||||
}
|
||||
printListOfDevices (false);
|
||||
}
|
||||
|
||||
int getUserInput()
|
||||
{
|
||||
char userInput[6], x;
|
||||
int output,i = 0;
|
||||
bool isDigit = true;
|
||||
x = getchar();
|
||||
while (x != '\n'){
|
||||
if (i < 5){
|
||||
userInput[i] = x;
|
||||
i++;
|
||||
}
|
||||
if (!isdigit(x))
|
||||
isDigit = false;
|
||||
|
||||
x = getchar();
|
||||
}
|
||||
userInput[i] = '\0';
|
||||
if (isDigit == false)
|
||||
return -1;
|
||||
output = atoi(userInput);
|
||||
return output;
|
||||
}
|
||||
|
||||
|
||||
unsigned int GetCheckSum(unsigned int *buff, unsigned int length)
|
||||
{
|
||||
unsigned int i,val;
|
||||
unsigned int checkSum =0;
|
||||
|
||||
for (i = 0; i < length; i++) // start at 12th byte
|
||||
{
|
||||
checkSum += buff[i];
|
||||
}
|
||||
|
||||
return checkSum;
|
||||
}
|
||||
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
int index = 0, i, j, userInput;
|
||||
int output;
|
||||
int count=0,h=0,cnt;
|
||||
int size_buffer,size_checksum;
|
||||
FILE *fp=NULL;
|
||||
CY_HANDLE handle;
|
||||
unsigned char buff[516];
|
||||
int silicon_id;
|
||||
int tempSelectedDeviceNum, tempSelectedInterfaceNum;
|
||||
CY_RETURN_STATUS rStatus;
|
||||
//signal (SIGUSR1, deviceHotPlug);
|
||||
char src_file[100];
|
||||
char id[4];
|
||||
|
||||
memset(buff,0,sizeof(buff));
|
||||
|
||||
|
||||
glDevice = (CY_DEVICE_STRUCT *)malloc (CY_MAX_DEVICES *sizeof (CY_DEVICE_STRUCT));
|
||||
if (glDevice == NULL){
|
||||
printf ("Memory allocation failed ...!! \n");
|
||||
return -1;
|
||||
}
|
||||
rStatus = CyLibraryInit ();
|
||||
if (rStatus != CY_SUCCESS) {
|
||||
printf ("CY:Error in Doing library init Error NO:<%d> \n", rStatus);
|
||||
return rStatus;
|
||||
}
|
||||
rStatus = CyGetListofDevices ((UINT8 *)&numDevices);
|
||||
if (rStatus != CY_SUCCESS) {
|
||||
printf ("CY:Error in Getting List of Devices: Error NO:<%d> \n", rStatus);
|
||||
return rStatus;
|
||||
}
|
||||
printListOfDevices(true);
|
||||
do {
|
||||
|
||||
printf ("-------------------------------------------------------------------\n");
|
||||
printf ("1: Print list of devices \n");
|
||||
if (selectedDeviceNum != -1 && selectedInterfaceNum != -1){
|
||||
printf ("2: Change device selection--selected device: [Device number %d] : [Interface No %d]",\
|
||||
selectedDeviceNum, selectedInterfaceNum);
|
||||
if (glDevice[selectedDeviceNum].interfaceFunctionality[selectedInterfaceNum] == CY_TYPE_I2C)
|
||||
printf (" : I2C\n");
|
||||
else if (glDevice[selectedDeviceNum].interfaceFunctionality[selectedInterfaceNum] == CY_TYPE_SPI)
|
||||
printf (" : SPI\n");
|
||||
else if (glDevice[selectedDeviceNum].interfaceFunctionality[selectedInterfaceNum] == CY_TYPE_UART)
|
||||
printf ("UART : \n");
|
||||
else
|
||||
printf (" : NA\n");
|
||||
|
||||
}
|
||||
else
|
||||
printf ("2: Select device...No device selected !!\n");
|
||||
|
||||
|
||||
userInput = getUserInput();
|
||||
if (userInput < 1 || userInput > 5){
|
||||
printf ("Wrong selection code ... Enter again \n");
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (userInput){
|
||||
|
||||
case 1:
|
||||
printListOfDevices(true);
|
||||
break;
|
||||
case 2:
|
||||
if (cyDevices == 0) {
|
||||
printf ("No device of interest connected ...!!\n");
|
||||
continue;
|
||||
}
|
||||
printf ("Enter Device number to be selected.. \n");
|
||||
tempSelectedDeviceNum = getUserInput();
|
||||
//printf ("Selected device number is %d \n",tempSelectedDeviceNum);
|
||||
if (tempSelectedDeviceNum >= cyDevices || tempSelectedDeviceNum == -1){
|
||||
printf ("Wrong device selection \n");
|
||||
continue;
|
||||
}
|
||||
printf ("Enter interface number..\n");
|
||||
tempSelectedInterfaceNum = getUserInput();
|
||||
//printf ("Selected device number is %d %d\n",tempSelectedInterfaceNum, glDevice[tempSelectedDeviceNum].numInterface);
|
||||
|
||||
if (tempSelectedInterfaceNum >= glDevice[tempSelectedDeviceNum].numInterface ||
|
||||
tempSelectedInterfaceNum == -1) {
|
||||
printf ("Wrong interface Selection selection \n");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (deviceAddedRemoved == true) {
|
||||
printf ("Device of interest was added/removed .... Print and select from new list\n");
|
||||
continue;
|
||||
}
|
||||
selectedDeviceNum = tempSelectedDeviceNum;
|
||||
selectedInterfaceNum = tempSelectedInterfaceNum;
|
||||
|
||||
|
||||
rStatus = CyOpen (selectedDeviceNum,selectedInterfaceNum , &handle);
|
||||
//printf("return status = %d", rStatus);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
//printf("device opened \n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("fail \n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
// printf("Please enter file to be opened");
|
||||
|
||||
fp = fopen(argv[1],"rb+");
|
||||
// printf("%s", src_file);
|
||||
rStatus = CyFlashConfigEnable(handle,1);
|
||||
|
||||
if (rStatus == CY_SUCCESS){
|
||||
// printf("Flash is configured");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Manufacturing mode of FLASH is not configured");
|
||||
}
|
||||
// printf("status %d",rStatus);
|
||||
|
||||
if(fp == NULL)
|
||||
{
|
||||
printf("\n fopen() Error!!!\n");
|
||||
return 1;
|
||||
}
|
||||
printf("\n File opened successfully\n");
|
||||
if(sizeof(buff) != fread(buff,1,516,fp))
|
||||
{
|
||||
printf("\n fread() failed\n");
|
||||
return 1;
|
||||
}
|
||||
printf("\n Bytes successfully read \n");
|
||||
// printf("reached here");
|
||||
|
||||
// silicon_id = *(unsigned int *)buff;
|
||||
|
||||
rStatus=CyGetSiliconID(handle,(UINT32 *)&silicon_id);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
// printf(" Correct silicon id");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not correct ID");
|
||||
}
|
||||
|
||||
// printf("silicon id %04x,%d",silicon_id,sizeof(silicon_id));
|
||||
id[0]= (silicon_id);
|
||||
id[1]= ((silicon_id >> 8) & 0xFF);
|
||||
id[2]= ((silicon_id >> 16) & 0xFF);
|
||||
id[3]= ((silicon_id >> 24) & 0xFF);
|
||||
|
||||
|
||||
|
||||
rStatus=CyReadDeviceConfig(handle, (UCHAR *)&read_buffer);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
// printf(" Got the data");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not done");
|
||||
}
|
||||
|
||||
/*printf (" 0 %02x, %02x \r \n", id[0],read_buffer[0]);
|
||||
printf (" 1 %02x, %02x \r \n", id[1],read_buffer[1]);
|
||||
printf (" 2 %02x, %02x \r \n", id[2],read_buffer[2]);
|
||||
printf (" 3 %02x, %02x\r \n", id[3],read_buffer[3]);*/
|
||||
|
||||
size_buffer = sizeof(read_buffer);
|
||||
//printf("The size is %d, buff %d", size_buffer,sizeof(buff));
|
||||
|
||||
/*for (i = 4; i < 516; i +=16)
|
||||
{
|
||||
printf("\n%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||
buff[i], buff[i+1], buff[i+2], buff[i+3], buff[i+4], buff[i+5], buff[i+6], buff[i+7], buff[i+8],
|
||||
buff[i+9], buff[i+10], buff[i+11], buff[i+12], buff[i+13], buff[i+14], buff[i+15]);
|
||||
}
|
||||
for (i = 0; i < 512; i +=16)
|
||||
{
|
||||
printf("\n%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||
read_buffer[i], read_buffer[i+1], read_buffer[i+2], read_buffer[i+3], read_buffer[i+4], read_buffer[i+5], read_buffer[i+6],
|
||||
read_buffer[i+7], read_buffer[i+8],
|
||||
read_buffer[i+9], read_buffer[i+10], read_buffer[i+11], read_buffer[i+12], read_buffer[i+13], read_buffer[i+14], read_buffer[i+15]);
|
||||
}*/
|
||||
memcpy (&buff[4], read_buffer, 28);
|
||||
|
||||
size_checksum= GetCheckSum((unsigned int *)(&buff[16]), 125);
|
||||
// printf("The checksum size is %d",size_checksum);
|
||||
|
||||
buff[12]= (size_checksum & 0xFF);
|
||||
buff[13]= ((size_checksum >> 8) & 0xFF);
|
||||
buff[14]= ((size_checksum >> 16) & 0xFF);
|
||||
buff[15]= ((size_checksum >> 24) & 0xFF);
|
||||
|
||||
// printf("checksum 0x%08x\n", size_checksum);
|
||||
/* for (i = 4; i < 516; i +=16)
|
||||
{
|
||||
printf("\n%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||
buff[i], buff[i+1], buff[i+2], buff[i+3], buff[i+4], buff[i+5], buff[i+6], buff[i+7], buff[i+8],
|
||||
buff[i+9], buff[i+10], buff[i+11], buff[i+12], buff[i+13], buff[i+14], buff[i+15]);
|
||||
}*/
|
||||
|
||||
// if(((id[0] == ffffffA1) || (id[0] == ffffffA2) || (id[0] == ffffffA3)) && (id[1] == 08))
|
||||
if((silicon_id == 0x08A1) || (silicon_id == 0x08A2) || (silicon_id == 0x08A3))
|
||||
{
|
||||
|
||||
rStatus= CyWriteDeviceConfig(handle,&buff[4]);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
printf(" Programming Flash is done");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not done");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("wrong silicon id");
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
||||
printf("\n File stream closed \n");
|
||||
|
||||
|
||||
|
||||
rStatus= CyClose(handle);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
//printf("Device closed");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not closed");
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
case 3:
|
||||
exitApp = true;
|
||||
CyLibraryExit ();
|
||||
break;
|
||||
}
|
||||
}while (exitApp == false);
|
||||
free (glDevice);
|
||||
}
|
||||
bool isCypressDevice (int deviceNum) {
|
||||
CY_HANDLE handle;
|
||||
unsigned char interfaceNum = 0;
|
||||
unsigned char sig[6];
|
||||
int op;
|
||||
CY_RETURN_STATUS rStatus;
|
||||
rStatus = CyOpen (deviceNum, interfaceNum, &handle);
|
||||
//op= libusb_detach_kernel_driver(handle,0);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
rStatus = CyGetSignature (handle, sig);
|
||||
if (rStatus == CY_SUCCESS){
|
||||
CyClose (handle);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
CyClose (handle);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
7
configutility/linux/testUtility/CyUSBSerial.sh
Normal file
7
configutility/linux/testUtility/CyUSBSerial.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
pid=`pidof CyUSBSerialTestUtility`
|
||||
|
||||
if [ "$pid" ]; then
|
||||
kill -s SIGUSR1 $pid
|
||||
fi
|
||||
|
||||
BIN
configutility/linux/testUtility/CyUSBSerialCommandUtility
Executable file
BIN
configutility/linux/testUtility/CyUSBSerialCommandUtility
Executable file
Binary file not shown.
12
configutility/linux/testUtility/Makefile
Normal file
12
configutility/linux/testUtility/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
all:
|
||||
# gcc -g -o CyUSBSerialTestUtility Test_Utility.c -lcyusbserial -w
|
||||
gcc -g -o CyUSBSerialCommandUtility Command_Utility.c -lcyusbserial
|
||||
cp 90-cyusb.rules /etc/udev/rules.d
|
||||
cp CyUSBSerialCommandUtility /usr/bin
|
||||
cp CyUSBSerial.sh /usr/bin
|
||||
chmod 777 /usr/bin/CyUSBSerial.sh
|
||||
clean:
|
||||
rm -f CyUSBSerialCommandUtility
|
||||
help:
|
||||
@echo 'make would compile and create the library and create a link'
|
||||
@echo 'make clean would remove the library and the soft link to the library (soname)'
|
||||
@@ -9,6 +9,37 @@ Cypress CyUSBSerial DVK.
|
||||
The utility writes to I2C/SPI flash devices on the DVK, reads the data back
|
||||
and verifies the data read for integrity.
|
||||
|
||||
Release components:
|
||||
================================================================================
|
||||
1. Test_Utility.c ==> Source file of the command line test utility
|
||||
2. 90-cyusb.rules ==> udev rules for changing the mode of usb device node.
|
||||
3. CyUSBSerial.sh ==> Script file for implementing hotplug feature in linux.
|
||||
4. Makefile ==> make file for compiling and installing the application.
|
||||
================================================================================
|
||||
|
||||
|
||||
Pre-requisites:
|
||||
================================================================================
|
||||
1. libusb-1.0.9 is required for compilation and functioning of the APIs in the
|
||||
USB Serial library.
|
||||
2. The CyUSBSerial library (libcyusbserial.so) should be compiled and installed
|
||||
on the test machine.
|
||||
3. GNU Make and the GCC tool-chain are used for the build process.
|
||||
================================================================================
|
||||
|
||||
Installation steps:
|
||||
================================================================================
|
||||
1. Change to the folder where the utility source files are extracted.
|
||||
2. Invoke 'make' to build compile the utility, and to install the configuration
|
||||
files at the appropriate locations. This should be done from a super-user
|
||||
(sudo) shell, because the configuration files need to be copied into system
|
||||
folders (/usr/local/bin).
|
||||
3. Use the CyUSBSerial command to start the test utility.
|
||||
|
||||
Note:
|
||||
The udev daemon needs to be restarted to reflect the udev rule changes that
|
||||
are installed as part of the make command.
|
||||
================================================================================
|
||||
|
||||
Using the test utility:
|
||||
================================================================================
|
||||
@@ -18,7 +49,7 @@ Using the test utility:
|
||||
|
||||
$ CyUSBSerial
|
||||
----------------------------------------------------------------------
|
||||
Device Number | VID | PID | INTERFACE NUMBER | FUNCTIONALITY
|
||||
Device Number | VID | PID | INTERFACE NUMBER | FUNCTIONALITY
|
||||
----------------------------------------------------------------------
|
||||
0 |4b4 |a | 0 | VENDOR_I2C
|
||||
0 |4b4 |a | 1 | VENDOR_SPI
|
||||
@@ -27,7 +58,7 @@ Using the test utility:
|
||||
|
||||
2. A menu providing the various operations is also printed:
|
||||
----------------------------------------------------------------------
|
||||
1: Print list of devices
|
||||
1: Print list of devices
|
||||
2: Select device...No device selected !!
|
||||
3: Enter I2C/SPI Flash page address and length to write/read.
|
||||
4: Verify data
|
||||
@@ -46,7 +77,7 @@ Using the test utility:
|
||||
|
||||
Once the selections are made, the menu will be updated with the details.
|
||||
----------------------------------------------------------------------
|
||||
1: Print list of devices
|
||||
1: Print list of devices
|
||||
2: Change device selection--selected device: [Device number 0] : [Interface No 1] : SPI
|
||||
3: Enter I2C/SPI Flash page address and length to write/read.
|
||||
4: Verify data
|
||||
@@ -70,7 +101,7 @@ Using the test utility:
|
||||
|
||||
Once the values are selected, the menu is updated with the details as below:
|
||||
-------------------------------------------------------------------
|
||||
1: Print list of devices
|
||||
1: Print list of devices
|
||||
2: Change device selection--selected device: [Device number 0] : [Interface No 1] : SPI
|
||||
3: Change Flash page address and length ...Entered is page address 1234 and length 123
|
||||
4: Verify data
|
||||
@@ -82,18 +113,25 @@ Using the test utility:
|
||||
|
||||
The data pattern written and read back will be displayed as shown below:
|
||||
--------------------------------------------------------------------
|
||||
67 c6 69 73 51 ff 4a ec 29 cd ba ab f2 fb e3 46 7c c2 54 f8 1b e8 e7 8d 76 5a 2e 63 33 9f c9 9a
|
||||
67 c6 69 73 51 ff 4a ec 29 cd ba ab f2 fb e3 46 7c c2 54 f8 1b e8 e7 8d 76 5a 2e 63 33 9f c9 9a
|
||||
--------------------------------------------------------------------
|
||||
Data Read back is:
|
||||
---------------------------------------------------------------------
|
||||
67 c6 69 73 51 ff 4a ec 29 cd ba ab f2 fb e3 46 7c c2 54 f8 1b e8 e7 8d 76 5a 2e 63 33 9f c9 9a
|
||||
67 c6 69 73 51 ff 4a ec 29 cd ba ab f2 fb e3 46 7c c2 54 f8 1b e8 e7 8d 76 5a 2e 63 33 9f c9 9a
|
||||
---------------------------------------------------------------------
|
||||
Data verified successfully
|
||||
Data verified successfully
|
||||
-------------------------------------------------------------------
|
||||
|
||||
6. The utility runs through these menu options until the user selects the
|
||||
exit option (5).
|
||||
|
||||
7. If a new Cypress USB Serial device is attached or an existing device is
|
||||
removed while the utility is running, a notification is printed on the
|
||||
console.
|
||||
|
||||
---------------------------------------
|
||||
Device of interest Removed/Added
|
||||
---------------------------------------
|
||||
================================================================================
|
||||
|
||||
EOF
|
||||
224
configutility/linux/testUtility/jbiexprt.h
Normal file
224
configutility/linux/testUtility/jbiexprt.h
Normal file
@@ -0,0 +1,224 @@
|
||||
/********************************************************************************/
|
||||
/* */
|
||||
/* Module: jbiexprt.h */
|
||||
/* */
|
||||
/* Copyright (C) Altera Corporation 1998-2001 */
|
||||
/* */
|
||||
/* Description: Jam STAPL ByteCode Player Export Header File */
|
||||
/* */
|
||||
/* Revisions: */
|
||||
/* */
|
||||
/********************************************************************************/
|
||||
|
||||
#ifndef INC_JBIEXPRT_H
|
||||
#define INC_JBIEXPRT_H
|
||||
|
||||
/********************************************************************************/
|
||||
/* */
|
||||
/* Return codes from most JBI functions */
|
||||
/* */
|
||||
/********************************************************************************/
|
||||
|
||||
#define JBI_RETURN_TYPE int
|
||||
|
||||
#define JBIC_SUCCESS 0
|
||||
#define JBIC_OUT_OF_MEMORY 1
|
||||
#define JBIC_IO_ERROR 2
|
||||
/* #define JAMC_SYNTAX_ERROR 3 */
|
||||
#define JBIC_UNEXPECTED_END 4
|
||||
#define JBIC_UNDEFINED_SYMBOL 5
|
||||
/* #define JAMC_REDEFINED_SYMBOL 6 */
|
||||
#define JBIC_INTEGER_OVERFLOW 7
|
||||
#define JBIC_DIVIDE_BY_ZERO 8
|
||||
#define JBIC_CRC_ERROR 9
|
||||
#define JBIC_INTERNAL_ERROR 10
|
||||
#define JBIC_BOUNDS_ERROR 11
|
||||
/* #define JAMC_TYPE_MISMATCH 12 */
|
||||
/* #define JAMC_ASSIGN_TO_CONST 13 */
|
||||
/* #define JAMC_NEXT_UNEXPECTED 14 */
|
||||
/* #define JAMC_POP_UNEXPECTED 15 */
|
||||
/* #define JAMC_RETURN_UNEXPECTED 16 */
|
||||
/* #define JAMC_ILLEGAL_SYMBOL 17 */
|
||||
#define JBIC_VECTOR_MAP_FAILED 18
|
||||
#define JBIC_USER_ABORT 19
|
||||
#define JBIC_STACK_OVERFLOW 20
|
||||
#define JBIC_ILLEGAL_OPCODE 21
|
||||
/* #define JAMC_PHASE_ERROR 22 */
|
||||
/* #define JAMC_SCOPE_ERROR 23 */
|
||||
#define JBIC_ACTION_NOT_FOUND 24
|
||||
|
||||
/********************************************************************************/
|
||||
/* */
|
||||
/* Macro Definitions */
|
||||
/* */
|
||||
/********************************************************************************/
|
||||
|
||||
/*
|
||||
* For DOS port, program data is stored in a set of 16K pages, accessed
|
||||
* through a pointer table. For 32-bit version, the buffer is continuous.
|
||||
* The macro GET_BYTE gets a single byte for either case.
|
||||
*/
|
||||
#if PORT==DOS
|
||||
#define PROGRAM_PTR unsigned char **
|
||||
#else
|
||||
#define PROGRAM_PTR unsigned char *
|
||||
#endif
|
||||
|
||||
#if PORT==DOS
|
||||
#define GET_BYTE(x) (jbi_program[(x) >> 14L][(x) & 0x3fffL])
|
||||
#else
|
||||
#define GET_BYTE(x) (program[x])
|
||||
#endif
|
||||
|
||||
#define GET_WORD(x) \
|
||||
(((((unsigned short) GET_BYTE(x)) << 8) & 0xFF00) | \
|
||||
(((unsigned short) GET_BYTE((x)+1)) & 0x00FF))
|
||||
|
||||
#define GET_DWORD(x) \
|
||||
(((((unsigned long) GET_BYTE(x)) << 24L) & 0xFF000000L) | \
|
||||
((((unsigned long) GET_BYTE((x)+1)) << 16L) & 0x00FF0000L) | \
|
||||
((((unsigned long) GET_BYTE((x)+2)) << 8L) & 0x0000FF00L) | \
|
||||
(((unsigned long) GET_BYTE((x)+3)) & 0x000000FFL))
|
||||
|
||||
/********************************************************************************/
|
||||
/* */
|
||||
/* Structured Types */
|
||||
/* */
|
||||
/********************************************************************************/
|
||||
|
||||
typedef struct JBI_PROCINFO_STRUCT
|
||||
{
|
||||
char *name;
|
||||
unsigned char attributes;
|
||||
struct JBI_PROCINFO_STRUCT *next;
|
||||
}
|
||||
JBI_PROCINFO;
|
||||
|
||||
/********************************************************************************/
|
||||
/* */
|
||||
/* Global Data Prototypes */
|
||||
/* */
|
||||
/********************************************************************************/
|
||||
|
||||
#if PORT==DOS
|
||||
extern unsigned char jbi_aca_out_buffer[8192 + 1024];
|
||||
#endif
|
||||
|
||||
extern PROGRAM_PTR jbi_program;
|
||||
|
||||
extern char *jbi_workspace;
|
||||
|
||||
extern long jbi_workspace_size;
|
||||
|
||||
/********************************************************************************/
|
||||
/* */
|
||||
/* Function Prototypes */
|
||||
/* */
|
||||
/********************************************************************************/
|
||||
|
||||
JBI_RETURN_TYPE jbi_execute
|
||||
(
|
||||
PROGRAM_PTR program,
|
||||
long program_size,
|
||||
char *workspace,
|
||||
long workspace_size,
|
||||
char *action,
|
||||
char **init_list,
|
||||
int reset_jtag,
|
||||
long *error_address,
|
||||
int *exit_code,
|
||||
int *format_version
|
||||
);
|
||||
|
||||
JBI_RETURN_TYPE jbi_get_note
|
||||
(
|
||||
PROGRAM_PTR program,
|
||||
long program_size,
|
||||
long *offset,
|
||||
char *key,
|
||||
char *value,
|
||||
int length
|
||||
);
|
||||
|
||||
JBI_RETURN_TYPE jbi_check_crc
|
||||
(
|
||||
PROGRAM_PTR program,
|
||||
long program_size,
|
||||
unsigned short *expected_crc,
|
||||
unsigned short *actual_crc
|
||||
);
|
||||
|
||||
JBI_RETURN_TYPE jbi_get_file_info
|
||||
(
|
||||
PROGRAM_PTR program,
|
||||
long program_size,
|
||||
int *format_version,
|
||||
int *action_count,
|
||||
int *procedure_count
|
||||
);
|
||||
|
||||
JBI_RETURN_TYPE jbi_get_action_info
|
||||
(
|
||||
PROGRAM_PTR program,
|
||||
long program_size,
|
||||
int index,
|
||||
char **name,
|
||||
char **description,
|
||||
JBI_PROCINFO **procedure_list
|
||||
);
|
||||
|
||||
int jbi_jtag_io
|
||||
(
|
||||
int tms,
|
||||
int tdi,
|
||||
int read_tdo
|
||||
);
|
||||
|
||||
void jbi_message
|
||||
(
|
||||
char *message_text
|
||||
);
|
||||
|
||||
void jbi_export_integer
|
||||
(
|
||||
char *key,
|
||||
long value
|
||||
);
|
||||
|
||||
void jbi_export_boolean_array
|
||||
(
|
||||
char *key,
|
||||
unsigned char *data,
|
||||
long count
|
||||
);
|
||||
|
||||
void jbi_delay
|
||||
(
|
||||
long microseconds
|
||||
);
|
||||
|
||||
int jbi_vector_map
|
||||
(
|
||||
int signal_count,
|
||||
char **signals
|
||||
);
|
||||
|
||||
int jbi_vector_io
|
||||
(
|
||||
int signal_count,
|
||||
long *dir_vect,
|
||||
long *data_vect,
|
||||
long *capture_vect
|
||||
);
|
||||
|
||||
void *jbi_malloc
|
||||
(
|
||||
unsigned int size
|
||||
);
|
||||
|
||||
void jbi_free
|
||||
(
|
||||
void *ptr
|
||||
);
|
||||
|
||||
#endif /* INC_JBIEXPRT_H */
|
||||
43
configutility/linux/testUtility/jbiport.h
Normal file
43
configutility/linux/testUtility/jbiport.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/****************************************************************************/
|
||||
/* */
|
||||
/* Module: jbiport.h */
|
||||
/* */
|
||||
/* Copyright (C) Altera Corporation 2000-2001 */
|
||||
/* */
|
||||
/* Description: Defines porting macros */
|
||||
/* */
|
||||
/****************************************************************************/
|
||||
|
||||
#ifndef INC_JBIPORT_H
|
||||
#define INC_JBIPORT_H
|
||||
|
||||
/*
|
||||
* PORT defines the target platform: DOS, WINDOWS, UNIX, or EMBEDDED
|
||||
*
|
||||
* PORT = DOS means a 16-bit DOS console-mode application
|
||||
*
|
||||
* PORT = WINDOWS means a 32-bit WIN32 console-mode application for
|
||||
* Windows 95, 98, 2000, ME or NT. On NT this will use the
|
||||
* DeviceIoControl() API to access the Parallel Port.
|
||||
*
|
||||
* PORT = UNIX means any UNIX system. BitBlaster access is support via
|
||||
* the standard ANSI system calls open(), read(), write().
|
||||
* The ByteBlaster is not supported.
|
||||
*
|
||||
* PORT = EMBEDDED means all DOS, WINDOWS, and UNIX code is excluded.
|
||||
* Remaining code supports 16 and 32-bit compilers.
|
||||
* Additional porting steps may be necessary. See readme
|
||||
* file for more details.
|
||||
*/
|
||||
|
||||
#define DOS 2
|
||||
#define WINDOWS 3
|
||||
#define UNIX 4
|
||||
#define EMBEDDED 5
|
||||
|
||||
#ifndef PORT
|
||||
/* change this line to build a different port */
|
||||
#define PORT EMBEDDED
|
||||
#endif
|
||||
|
||||
#endif /* INC_JBIPORT_H */
|
||||
BIN
cy-config.o
BIN
cy-config.o
Binary file not shown.
@@ -1,142 +0,0 @@
|
||||
cmake_minimum_required(VERSION 2.8.4)
|
||||
|
||||
project(libcyusbserial C)
|
||||
|
||||
set(CMAKE_HELPERS_BINARY_DIR ${PROJECT_SOURCE_DIR}/cmake/helpers)
|
||||
set(CMAKE_HELPERS_SOURCE_DIR ${PROJECT_SOURCE_DIR}/cmake/helpers)
|
||||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules)
|
||||
|
||||
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
|
||||
|
||||
include(FindLibUSB)
|
||||
|
||||
################################################################################
|
||||
# System configuration
|
||||
################################################################################
|
||||
|
||||
# OSX
|
||||
if(APPLE)
|
||||
set(CMAKE_MACOSX_RPATH ON)
|
||||
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
|
||||
if(${isSystemDir} STREQUAL "-1")
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Windows
|
||||
if(WIN32 AND NOT CMAKE_CROSSCOMPILING)
|
||||
find_package(LibPThreadsWin32)
|
||||
if(LIBPTHREADSWIN32_FOUND)
|
||||
set(WIN_RUNTIME_ITEMS ${WIN_RUNTIME_ITEMS}
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/pthreads-win32/COPYING.LIB.txt"
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/pthreadVC2.dll")
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/pthreads-win32/COPYING.LIB.txt"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${LIBPTHREADSWIN32_LIB_COPYING}"
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/pthreads-win32/COPYING.LIB.txt"
|
||||
COMMENT "Copying pthreads-win32 license to output directory..."
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/pthreadVC2.dll"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${LIBPTHREADSWIN32_PATH}/dll/${LIBPTHREADSWIN32_LIBRARY_PATH_SUFFIX}/pthreadVC2.dll"
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/"
|
||||
COMMENT "Copying pthreadVC2.dll to output directory..."
|
||||
)
|
||||
endif(LIBPTHREADSWIN32_FOUND)
|
||||
|
||||
if(LIBUSB_FOUND)
|
||||
set(WIN_RUNTIME_ITEMS ${WIN_RUNTIME_ITEMS}
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/libusb/COPYING"
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/libusb-1.0.dll")
|
||||
|
||||
# The libusb Windows release does not appear to include a COPYING file.
|
||||
# Since it's LGPLv2.1, we'll copy the equivalent license from our
|
||||
# license directory
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/libusb/COPYING.LESSER.txt"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/COPYING.LESSER.txt"
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/libusb/COPYING.LESSER.txt"
|
||||
COMMENT "Copying libusb license to output directory..."
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/libusb-1.0.dll"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${LIBUSB_PATH}/${LIBUSB_LIBRARY_PATH_SUFFIX}/libusb-1.0.dll"
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/"
|
||||
COMMENT "Copying libusb-1.0.dll to output directory..."
|
||||
)
|
||||
endif(LIBUSB_FOUND)
|
||||
|
||||
set(WIN_RUNTIME_ITEMS ${WIN_RUNTIME_ITEMS}
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/libcyusbserial/COPYING.LESSER.txt"
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/libcyusbserial/COPYING.LESSER.txt"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/COPYING.LESSER.txt"
|
||||
"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/licenses/libcyusbserial/COPYING.LESSER.txt"
|
||||
COMMENT "Copying libcyusbserial COPYING.LESSER.txt file to output directory..."
|
||||
)
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}/windows/include)
|
||||
endif(WIN32 AND NOT CMAKE_CROSSCOMPILING)
|
||||
|
||||
################################################################################
|
||||
# GCC and Clang
|
||||
################################################################################
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
|
||||
CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
|
||||
add_definitions(-Wall)
|
||||
add_definitions(-Wextra)
|
||||
add_definitions(-Wno-unused-parameter)
|
||||
|
||||
if(TREAT_WARNINGS_AS_ERRORS)
|
||||
add_definitions(-Werror)
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_definitions(-DDEBUG=1)
|
||||
add_definitions(-O0)
|
||||
endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
|
||||
endif(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
|
||||
CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
|
||||
################################################################################
|
||||
# MS Visual Studio
|
||||
################################################################################
|
||||
if(MSVC)
|
||||
if(TREAT_WARNINGS_AS_ERRORS)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
|
||||
endif()
|
||||
|
||||
# Prior to V12.0 2013, certain C99 headers we use were not supported.
|
||||
# We have to supply our own.
|
||||
if(MSVC_VERSION LESS 1800)
|
||||
set(MSVC_C99_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/windows/include/c99)
|
||||
endif()
|
||||
endif(MSVC)
|
||||
|
||||
################################################################################
|
||||
# Process subdirectories
|
||||
################################################################################
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
add_subdirectory(include)
|
||||
add_subdirectory(lib)
|
||||
|
||||
# Only build the tools on Linux
|
||||
if(NOT WIN32 OR CMAKE_CROSSCOMPILING)
|
||||
add_subdirectory(tools)
|
||||
endif(NOT WIN32 OR CMAKE_CROSSCOMPILING)
|
||||
2437
cylib/Doxyfile
2437
cylib/Doxyfile
File diff suppressed because it is too large
Load Diff
@@ -1,38 +0,0 @@
|
||||
# Cypress Semiconductor Corporation CyUSB Serial Library
|
||||
|
||||
[](https://www.gnu.org/licenses/lgpl-2.1.html)
|
||||
[](https://travis-ci.org/cyrozap/libcyusbserial)
|
||||
[](https://ci.appveyor.com/project/cyrozap/libcyusbserial/branch/master)
|
||||
[](https://scan.coverity.com/projects/cyrozap-libcyusbserial)
|
||||
|
||||
|
||||
## Pre-requisites
|
||||
|
||||
1. libusb 1.0.9 (or higher) is required for compilation and functioning of the
|
||||
APIs in the library.
|
||||
|
||||
2. GNU Make, the GCC toolchain, and CMake are used for the build process.
|
||||
|
||||
|
||||
## Building the library and the test utility
|
||||
|
||||
1. Make a build directory and `cd` to it. Example: `mkdir build && cd build`
|
||||
|
||||
2. Run `cmake` on the source directory and then make. Example:
|
||||
`cmake ../ && make`
|
||||
|
||||
3. Run `sudo make install` to install the header file, libraries, and test
|
||||
utility into `PREFIX` (`/usr/local/` by default).
|
||||
|
||||
4. If you're on Linux, you might need to run `ldconfig` now.
|
||||
|
||||
5. You can now launch the application and communication with the Cypress
|
||||
USB-Serial DVK in vendor mode.
|
||||
|
||||
|
||||
## Note
|
||||
Refer to the [CyUSBSerial API documentation][1] for descriptions of all the
|
||||
vendor mode APIs. The header file of the library is in
|
||||
`./include/CyUSBSerial.h`.
|
||||
|
||||
[1]: http://www.cypress.com/?docID=45725
|
||||
@@ -1,23 +0,0 @@
|
||||
os: Visual Studio 2013
|
||||
|
||||
platform:
|
||||
- x86
|
||||
- x64
|
||||
|
||||
install:
|
||||
- ps: (new-object System.Net.WebClient).Downloadfile("https://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.19/libusb-1.0.19-rc1-win.7z", "$($env:APPVEYOR_BUILD_FOLDER)\\libusb-1.0.19-rc1-win.7z")
|
||||
- cmd: 7z x -y "%APPVEYOR_BUILD_FOLDER%\libusb-1.0.19-rc1-win.7z" -o"C:\Program Files\libusb-1.0.19"
|
||||
- ps: (new-object System.Net.WebClient).Downloadfile("ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip", "$($env:APPVEYOR_BUILD_FOLDER)\\pthreads-w32-2-9-1-release.zip")
|
||||
- cmd: 7z x -y "%APPVEYOR_BUILD_FOLDER%\pthreads-w32-2-9-1-release.zip" -o"%APPVEYOR_BUILD_FOLDER%\pthreads-w32-2-9-1-release"
|
||||
- cmd: mv "%APPVEYOR_BUILD_FOLDER%\pthreads-w32-2-9-1-release\Pre-built.2" "C:\Program Files\pthreads-win32"
|
||||
|
||||
before_build:
|
||||
- cmd: mkdir build
|
||||
- cmd: chdir build
|
||||
|
||||
build_script:
|
||||
- cmd: cmake ..
|
||||
- cmd: cmake --build .
|
||||
|
||||
artifacts:
|
||||
- path: build\lib\Debug\cyusbserial.dll
|
||||
@@ -1,415 +0,0 @@
|
||||
# This is the CMakeCache file.
|
||||
# For build in directory: /root/projekti/CyUSB/release/cylib/build
|
||||
# It was generated by CMake: /usr/bin/cmake
|
||||
# You can edit this file to change values found and used by cmake.
|
||||
# If you do not want to change any of the values, simply exit the editor.
|
||||
# If you do want to change a value, simply edit, save, and exit the editor.
|
||||
# The syntax for the file is as follows:
|
||||
# KEY:TYPE=VALUE
|
||||
# KEY is the name of a variable in the cache.
|
||||
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
|
||||
# VALUE is the current value for the KEY.
|
||||
|
||||
########################
|
||||
# EXTERNAL cache entries
|
||||
########################
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_AR:FILEPATH=/usr/bin/ar
|
||||
|
||||
//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
|
||||
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
|
||||
CMAKE_BUILD_TYPE:STRING=
|
||||
|
||||
//Enable/Disable color output during build.
|
||||
CMAKE_COLOR_MAKEFILE:BOOL=ON
|
||||
|
||||
//C compiler
|
||||
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
|
||||
|
||||
//Flags used by the compiler during all build types.
|
||||
CMAKE_C_FLAGS:STRING=
|
||||
|
||||
//Flags used by the compiler during debug builds.
|
||||
CMAKE_C_FLAGS_DEBUG:STRING=-g
|
||||
|
||||
//Flags used by the compiler during release builds for minimum
|
||||
// size.
|
||||
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
|
||||
|
||||
//Flags used by the compiler during release builds.
|
||||
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
|
||||
|
||||
//Flags used by the compiler during release builds with debug info.
|
||||
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
|
||||
|
||||
//Flags used by the linker.
|
||||
CMAKE_EXE_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during debug builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during release minsize builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during release builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during Release with Debug Info builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Enable/Disable output of compile commands during generation.
|
||||
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
|
||||
|
||||
//user executables (bin)
|
||||
CMAKE_INSTALL_BINDIR:PATH=bin
|
||||
|
||||
//read-only architecture-independent data (DATAROOTDIR)
|
||||
CMAKE_INSTALL_DATADIR:PATH=
|
||||
|
||||
//read-only architecture-independent data root (share)
|
||||
CMAKE_INSTALL_DATAROOTDIR:PATH=share
|
||||
|
||||
//documentation root (DATAROOTDIR/doc/PROJECT_NAME)
|
||||
CMAKE_INSTALL_DOCDIR:PATH=
|
||||
|
||||
//C header files (include)
|
||||
CMAKE_INSTALL_INCLUDEDIR:PATH=include
|
||||
|
||||
//info documentation (DATAROOTDIR/info)
|
||||
CMAKE_INSTALL_INFODIR:PATH=
|
||||
|
||||
//object code libraries (lib)
|
||||
CMAKE_INSTALL_LIBDIR:PATH=lib
|
||||
|
||||
//program executables (libexec)
|
||||
CMAKE_INSTALL_LIBEXECDIR:PATH=libexec
|
||||
|
||||
//locale-dependent data (DATAROOTDIR/locale)
|
||||
CMAKE_INSTALL_LOCALEDIR:PATH=
|
||||
|
||||
//modifiable single-machine data (var)
|
||||
CMAKE_INSTALL_LOCALSTATEDIR:PATH=var
|
||||
|
||||
//man documentation (DATAROOTDIR/man)
|
||||
CMAKE_INSTALL_MANDIR:PATH=
|
||||
|
||||
//C header files for non-gcc (/usr/include)
|
||||
CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include
|
||||
|
||||
//Install path prefix, prepended onto install directories.
|
||||
CMAKE_INSTALL_PREFIX:PATH=/usr/local
|
||||
|
||||
//system admin executables (sbin)
|
||||
CMAKE_INSTALL_SBINDIR:PATH=sbin
|
||||
|
||||
//modifiable architecture-independent data (com)
|
||||
CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com
|
||||
|
||||
//read-only single-machine data (etc)
|
||||
CMAKE_INSTALL_SYSCONFDIR:PATH=etc
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_LINKER:FILEPATH=/usr/bin/ld
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
|
||||
|
||||
//Flags used by the linker during the creation of modules.
|
||||
CMAKE_MODULE_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during debug builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during release minsize builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during release builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during Release with Debug Info builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_NM:FILEPATH=/usr/bin/nm
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_NAME:STATIC=libcyusbserial
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
|
||||
|
||||
//Flags used by the linker during the creation of dll's.
|
||||
CMAKE_SHARED_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during debug builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during release minsize builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during release builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during Release with Debug Info builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//If set, runtime paths are not added when installing shared libraries,
|
||||
// but are added when building.
|
||||
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
|
||||
|
||||
//If set, runtime paths are not added when using shared libraries.
|
||||
CMAKE_SKIP_RPATH:BOOL=NO
|
||||
|
||||
//Flags used by the linker during the creation of static libraries.
|
||||
CMAKE_STATIC_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during debug builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during release minsize builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during release builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during Release with Debug Info builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_STRIP:FILEPATH=/usr/bin/strip
|
||||
|
||||
//If this value is on, makefiles will be generated without the
|
||||
// .SILENT directive, and all commands will be echoed to the console
|
||||
// during the make. This is useful for debugging only. With Visual
|
||||
// Studio IDE projects all commands are done without /nologo.
|
||||
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
|
||||
|
||||
//pkg-config executable
|
||||
PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config
|
||||
|
||||
//Dependencies for the target
|
||||
cyusbserial_LIB_DEPENDS:STATIC=general;-lpthread;general;/usr/local/lib/libusb-1.0.so;
|
||||
|
||||
//Value Computed by CMake
|
||||
libcyusbserial_BINARY_DIR:STATIC=/root/projekti/CyUSB/release/cylib/build
|
||||
|
||||
//Value Computed by CMake
|
||||
libcyusbserial_SOURCE_DIR:STATIC=/root/projekti/CyUSB/release/cylib
|
||||
|
||||
//Path to a library.
|
||||
usb_LIBRARY:FILEPATH=/usr/local/lib/libusb-1.0.so
|
||||
|
||||
|
||||
########################
|
||||
# INTERNAL cache entries
|
||||
########################
|
||||
|
||||
//ADVANCED property for variable: CMAKE_AR
|
||||
CMAKE_AR-ADVANCED:INTERNAL=1
|
||||
//This is the directory where this CMakeCache.txt was created
|
||||
CMAKE_CACHEFILE_DIR:INTERNAL=/root/projekti/CyUSB/release/cylib/build
|
||||
//Major version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
|
||||
//Minor version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MINOR_VERSION:INTERNAL=7
|
||||
//Patch version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_PATCH_VERSION:INTERNAL=2
|
||||
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
|
||||
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Path to CMake executable.
|
||||
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
|
||||
//Path to cpack program executable.
|
||||
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
|
||||
//Path to ctest program executable.
|
||||
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
|
||||
//ADVANCED property for variable: CMAKE_C_COMPILER
|
||||
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS
|
||||
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
|
||||
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
|
||||
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
|
||||
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//Executable file format
|
||||
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
|
||||
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
|
||||
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
|
||||
//Name of external makefile project generator.
|
||||
CMAKE_EXTRA_GENERATOR:INTERNAL=
|
||||
//Name of generator.
|
||||
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
|
||||
//Name of generator platform.
|
||||
CMAKE_GENERATOR_PLATFORM:INTERNAL=
|
||||
//Name of generator toolset.
|
||||
CMAKE_GENERATOR_TOOLSET:INTERNAL=
|
||||
//Have symbol pthread_create
|
||||
CMAKE_HAVE_LIBC_CREATE:INTERNAL=
|
||||
//Have library pthreads
|
||||
CMAKE_HAVE_PTHREADS_CREATE:INTERNAL=
|
||||
//Have library pthread
|
||||
CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1
|
||||
//Have include pthread.h
|
||||
CMAKE_HAVE_PTHREAD_H:INTERNAL=1
|
||||
//Source directory with the top level CMakeLists.txt file for this
|
||||
// project
|
||||
CMAKE_HOME_DIRECTORY:INTERNAL=/root/projekti/CyUSB/release/cylib
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_BINDIR
|
||||
CMAKE_INSTALL_BINDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_DATADIR
|
||||
CMAKE_INSTALL_DATADIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_DATAROOTDIR
|
||||
CMAKE_INSTALL_DATAROOTDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_DOCDIR
|
||||
CMAKE_INSTALL_DOCDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_INCLUDEDIR
|
||||
CMAKE_INSTALL_INCLUDEDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_INFODIR
|
||||
CMAKE_INSTALL_INFODIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_LIBDIR
|
||||
CMAKE_INSTALL_LIBDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_LIBEXECDIR
|
||||
CMAKE_INSTALL_LIBEXECDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_LOCALEDIR
|
||||
CMAKE_INSTALL_LOCALEDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_LOCALSTATEDIR
|
||||
CMAKE_INSTALL_LOCALSTATEDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_MANDIR
|
||||
CMAKE_INSTALL_MANDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_OLDINCLUDEDIR
|
||||
CMAKE_INSTALL_OLDINCLUDEDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_SBINDIR
|
||||
CMAKE_INSTALL_SBINDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_SHAREDSTATEDIR
|
||||
CMAKE_INSTALL_SHAREDSTATEDIR-ADVANCED:INTERNAL=1
|
||||
//Install .so files without execute permission.
|
||||
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_INSTALL_SYSCONFDIR
|
||||
CMAKE_INSTALL_SYSCONFDIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_LINKER
|
||||
CMAKE_LINKER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
|
||||
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
|
||||
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_NM
|
||||
CMAKE_NM-ADVANCED:INTERNAL=1
|
||||
//number of local generators
|
||||
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=4
|
||||
//ADVANCED property for variable: CMAKE_OBJCOPY
|
||||
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_OBJDUMP
|
||||
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RANLIB
|
||||
CMAKE_RANLIB-ADVANCED:INTERNAL=1
|
||||
//Path to CMake installation.
|
||||
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.7
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
|
||||
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
|
||||
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_RPATH
|
||||
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
|
||||
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STRIP
|
||||
CMAKE_STRIP-ADVANCED:INTERNAL=1
|
||||
//uname command
|
||||
CMAKE_UNAME:INTERNAL=/bin/uname
|
||||
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
|
||||
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Details about finding PkgConfig
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig:INTERNAL=[/usr/bin/pkg-config][v0.29()]
|
||||
//Details about finding Threads
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()]
|
||||
//Result of TRY_COMPILE
|
||||
LIBUSB_VERCHECK_COMPILED:INTERNAL=TRUE
|
||||
//Result of TRY_RUN
|
||||
LIBUSB_VERCHECK_RUN_RESULT:INTERNAL=0
|
||||
PKGCONFIG_LIBUSB_CFLAGS:INTERNAL=-I/usr/local/include/libusb-1.0
|
||||
PKGCONFIG_LIBUSB_CFLAGS_I:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_CFLAGS_OTHER:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_FOUND:INTERNAL=1
|
||||
PKGCONFIG_LIBUSB_INCLUDEDIR:INTERNAL=/usr/local/include
|
||||
PKGCONFIG_LIBUSB_INCLUDE_DIRS:INTERNAL=/usr/local/include/libusb-1.0
|
||||
PKGCONFIG_LIBUSB_LDFLAGS:INTERNAL=-L/usr/local/lib;-lusb-1.0
|
||||
PKGCONFIG_LIBUSB_LDFLAGS_OTHER:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_LIBDIR:INTERNAL=/usr/local/lib
|
||||
PKGCONFIG_LIBUSB_LIBRARIES:INTERNAL=usb-1.0
|
||||
PKGCONFIG_LIBUSB_LIBRARY_DIRS:INTERNAL=/usr/local/lib
|
||||
PKGCONFIG_LIBUSB_LIBS:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_LIBS_L:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_LIBS_OTHER:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_LIBS_PATHS:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_PREFIX:INTERNAL=/usr/local
|
||||
PKGCONFIG_LIBUSB_STATIC_CFLAGS:INTERNAL=-I/usr/local/include/libusb-1.0
|
||||
PKGCONFIG_LIBUSB_STATIC_CFLAGS_I:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_STATIC_CFLAGS_OTHER:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_STATIC_INCLUDE_DIRS:INTERNAL=/usr/local/include/libusb-1.0
|
||||
PKGCONFIG_LIBUSB_STATIC_LDFLAGS:INTERNAL=-L/usr/local/lib;-lusb-1.0;-lrt;-pthread
|
||||
PKGCONFIG_LIBUSB_STATIC_LDFLAGS_OTHER:INTERNAL=-pthread
|
||||
PKGCONFIG_LIBUSB_STATIC_LIBDIR:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_STATIC_LIBRARIES:INTERNAL=usb-1.0;rt
|
||||
PKGCONFIG_LIBUSB_STATIC_LIBRARY_DIRS:INTERNAL=/usr/local/lib
|
||||
PKGCONFIG_LIBUSB_STATIC_LIBS:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_STATIC_LIBS_L:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_STATIC_LIBS_OTHER:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_STATIC_LIBS_PATHS:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_VERSION:INTERNAL=1.0.9
|
||||
PKGCONFIG_LIBUSB_libusb-1.0_INCLUDEDIR:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_libusb-1.0_LIBDIR:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_libusb-1.0_PREFIX:INTERNAL=
|
||||
PKGCONFIG_LIBUSB_libusb-1.0_VERSION:INTERNAL=
|
||||
//ADVANCED property for variable: PKG_CONFIG_EXECUTABLE
|
||||
PKG_CONFIG_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
//CMAKE_INSTALL_PREFIX during last run
|
||||
_GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX:INTERNAL=/usr/local
|
||||
__pkg_config_checked_PKGCONFIG_LIBUSB:INTERNAL=1
|
||||
prefix_result:INTERNAL=/usr/local/lib
|
||||
//ADVANCED property for variable: usb_LIBRARY
|
||||
usb_LIBRARY-ADVANCED:INTERNAL=1
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
set(CMAKE_C_COMPILER "/usr/bin/cc")
|
||||
set(CMAKE_C_COMPILER_ARG1 "")
|
||||
set(CMAKE_C_COMPILER_ID "GNU")
|
||||
set(CMAKE_C_COMPILER_VERSION "6.3.0")
|
||||
set(CMAKE_C_COMPILER_WRAPPER "")
|
||||
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11")
|
||||
set(CMAKE_C_COMPILE_FEATURES "c_function_prototypes;c_restrict;c_variadic_macros;c_static_assert")
|
||||
set(CMAKE_C90_COMPILE_FEATURES "c_function_prototypes")
|
||||
set(CMAKE_C99_COMPILE_FEATURES "c_restrict;c_variadic_macros")
|
||||
set(CMAKE_C11_COMPILE_FEATURES "c_static_assert")
|
||||
|
||||
set(CMAKE_C_PLATFORM_ID "Linux")
|
||||
set(CMAKE_C_SIMULATE_ID "")
|
||||
set(CMAKE_C_SIMULATE_VERSION "")
|
||||
|
||||
set(CMAKE_AR "/usr/bin/ar")
|
||||
set(CMAKE_RANLIB "/usr/bin/ranlib")
|
||||
set(CMAKE_LINKER "/usr/bin/ld")
|
||||
set(CMAKE_COMPILER_IS_GNUCC 1)
|
||||
set(CMAKE_C_COMPILER_LOADED 1)
|
||||
set(CMAKE_C_COMPILER_WORKS TRUE)
|
||||
set(CMAKE_C_ABI_COMPILED TRUE)
|
||||
set(CMAKE_COMPILER_IS_MINGW )
|
||||
set(CMAKE_COMPILER_IS_CYGWIN )
|
||||
if(CMAKE_COMPILER_IS_CYGWIN)
|
||||
set(CYGWIN 1)
|
||||
set(UNIX 1)
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_COMPILER_ENV_VAR "CC")
|
||||
|
||||
if(CMAKE_COMPILER_IS_MINGW)
|
||||
set(MINGW 1)
|
||||
endif()
|
||||
set(CMAKE_C_COMPILER_ID_RUN 1)
|
||||
set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
|
||||
set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
set(CMAKE_C_LINKER_PREFERENCE 10)
|
||||
|
||||
# Save compiler ABI information.
|
||||
set(CMAKE_C_SIZEOF_DATA_PTR "8")
|
||||
set(CMAKE_C_COMPILER_ABI "ELF")
|
||||
set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
|
||||
|
||||
if(CMAKE_C_SIZEOF_DATA_PTR)
|
||||
set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_COMPILER_ABI)
|
||||
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_LIBRARY_ARCHITECTURE)
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
|
||||
if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
|
||||
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "c")
|
||||
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/6;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
|
||||
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
|
||||
Binary file not shown.
@@ -1,15 +0,0 @@
|
||||
set(CMAKE_HOST_SYSTEM "Linux-4.9.0-kali2-amd64")
|
||||
set(CMAKE_HOST_SYSTEM_NAME "Linux")
|
||||
set(CMAKE_HOST_SYSTEM_VERSION "4.9.0-kali2-amd64")
|
||||
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
|
||||
|
||||
|
||||
|
||||
set(CMAKE_SYSTEM "Linux-4.9.0-kali2-amd64")
|
||||
set(CMAKE_SYSTEM_NAME "Linux")
|
||||
set(CMAKE_SYSTEM_VERSION "4.9.0-kali2-amd64")
|
||||
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
|
||||
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
|
||||
set(CMAKE_SYSTEM_LOADED 1)
|
||||
@@ -1,561 +0,0 @@
|
||||
#ifdef __cplusplus
|
||||
# error "A C++ compiler has been selected for C."
|
||||
#endif
|
||||
|
||||
#if defined(__18CXX)
|
||||
# define ID_VOID_MAIN
|
||||
#endif
|
||||
#if defined(__CLASSIC_C__)
|
||||
/* cv-qualifiers did not exist in K&R C */
|
||||
# define const
|
||||
# define volatile
|
||||
#endif
|
||||
|
||||
|
||||
/* Version number components: V=Version, R=Revision, P=Patch
|
||||
Version date components: YYYY=Year, MM=Month, DD=Day */
|
||||
|
||||
#if defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
# define COMPILER_ID "Intel"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
/* __INTEL_COMPILER = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
|
||||
# if defined(__INTEL_COMPILER_UPDATE)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
|
||||
# else
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
|
||||
# endif
|
||||
# if defined(__INTEL_COMPILER_BUILD_DATE)
|
||||
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
|
||||
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
||||
# endif
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
|
||||
#elif defined(__PATHCC__)
|
||||
# define COMPILER_ID "PathScale"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
||||
# if defined(__PATHCC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
|
||||
# define COMPILER_ID "Embarcadero"
|
||||
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
|
||||
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
|
||||
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# define COMPILER_ID "Borland"
|
||||
/* __BORLANDC__ = 0xVRR */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
|
||||
|
||||
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
|
||||
# define COMPILER_ID "Watcom"
|
||||
/* __WATCOMC__ = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# define COMPILER_ID "OpenWatcom"
|
||||
/* __WATCOMC__ = VVRP + 1100 */
|
||||
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SUNPRO_C)
|
||||
# define COMPILER_ID "SunPro"
|
||||
# if __SUNPRO_C >= 0x5100
|
||||
/* __SUNPRO_C = 0xVRRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
|
||||
# else
|
||||
/* __SUNPRO_CC = 0xVRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
|
||||
# endif
|
||||
|
||||
#elif defined(__HP_cc)
|
||||
# define COMPILER_ID "HP"
|
||||
/* __HP_cc = VVRRPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
|
||||
|
||||
#elif defined(__DECC)
|
||||
# define COMPILER_ID "Compaq"
|
||||
/* __DECC_VER = VVRRTPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
|
||||
|
||||
#elif defined(__IBMC__) && defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
/* __IBMC__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
|
||||
|
||||
#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
/* __IBMC__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
|
||||
|
||||
#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
|
||||
# define COMPILER_ID "VisualAge"
|
||||
/* __IBMC__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
||||
# if defined(__PGIC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_CRAYC)
|
||||
# define COMPILER_ID "Cray"
|
||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
|
||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI"
|
||||
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
|
||||
|
||||
#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
|
||||
# define COMPILER_ID "Fujitsu"
|
||||
|
||||
#elif defined(__TINYC__)
|
||||
# define COMPILER_ID "TinyCC"
|
||||
|
||||
#elif defined(__BCC__)
|
||||
# define COMPILER_ID "Bruce"
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
#elif defined(__clang__) && defined(__apple_build_version__)
|
||||
# define COMPILER_ID "AppleClang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
|
||||
|
||||
#elif defined(__clang__)
|
||||
# define COMPILER_ID "Clang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
# define COMPILER_ID "GNU"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# define COMPILER_ID "MSVC"
|
||||
/* _MSC_VER = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# if defined(_MSC_FULL_VER)
|
||||
# if _MSC_VER >= 1400
|
||||
/* _MSC_FULL_VER = VVRRPPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
|
||||
# else
|
||||
/* _MSC_FULL_VER = VVRRPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
|
||||
# endif
|
||||
# endif
|
||||
# if defined(_MSC_BUILD)
|
||||
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
|
||||
# endif
|
||||
|
||||
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||
# define COMPILER_ID "ADSP"
|
||||
#if defined(__VISUALDSPVERSION__)
|
||||
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
|
||||
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
|
||||
#endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
|
||||
# define COMPILER_ID "IAR"
|
||||
|
||||
#elif defined(__ARMCC_VERSION)
|
||||
# define COMPILER_ID "ARMCC"
|
||||
#if __ARMCC_VERSION >= 1000000
|
||||
/* __ARMCC_VERSION = VRRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#else
|
||||
/* __ARMCC_VERSION = VRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#endif
|
||||
|
||||
|
||||
#elif defined(SDCC)
|
||||
# define COMPILER_ID "SDCC"
|
||||
/* SDCC = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(SDCC/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(SDCC % 10)
|
||||
|
||||
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
|
||||
# define COMPILER_ID "MIPSpro"
|
||||
# if defined(_SGI_COMPILER_VERSION)
|
||||
/* _SGI_COMPILER_VERSION = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
|
||||
# else
|
||||
/* _COMPILER_VERSION = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
|
||||
# endif
|
||||
|
||||
|
||||
/* These compilers are either not known or too old to define an
|
||||
identification macro. Try to identify the platform and guess that
|
||||
it is the native compiler. */
|
||||
#elif defined(__sgi)
|
||||
# define COMPILER_ID "MIPSpro"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpua)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#else /* unknown compiler */
|
||||
# define COMPILER_ID ""
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
||||
#ifdef SIMULATE_ID
|
||||
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
||||
#endif
|
||||
|
||||
#ifdef __QNXNTO__
|
||||
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
||||
#endif
|
||||
|
||||
#if defined(__CRAYXE) || defined(__CRAYXC)
|
||||
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_HELPER(X) #X
|
||||
#define STRINGIFY(X) STRINGIFY_HELPER(X)
|
||||
|
||||
/* Identify known platforms by name. */
|
||||
#if defined(__linux) || defined(__linux__) || defined(linux)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
#elif defined(__CYGWIN__)
|
||||
# define PLATFORM_ID "Cygwin"
|
||||
|
||||
#elif defined(__MINGW32__)
|
||||
# define PLATFORM_ID "MinGW"
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
# define PLATFORM_ID "Darwin"
|
||||
|
||||
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||
# define PLATFORM_ID "Windows"
|
||||
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD)
|
||||
# define PLATFORM_ID "FreeBSD"
|
||||
|
||||
#elif defined(__NetBSD__) || defined(__NetBSD)
|
||||
# define PLATFORM_ID "NetBSD"
|
||||
|
||||
#elif defined(__OpenBSD__) || defined(__OPENBSD)
|
||||
# define PLATFORM_ID "OpenBSD"
|
||||
|
||||
#elif defined(__sun) || defined(sun)
|
||||
# define PLATFORM_ID "SunOS"
|
||||
|
||||
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
||||
# define PLATFORM_ID "AIX"
|
||||
|
||||
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
|
||||
# define PLATFORM_ID "IRIX"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
# define PLATFORM_ID "HP-UX"
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
# define PLATFORM_ID "Haiku"
|
||||
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
# define PLATFORM_ID "BeOS"
|
||||
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
# define PLATFORM_ID "QNX"
|
||||
|
||||
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
|
||||
# define PLATFORM_ID "Tru64"
|
||||
|
||||
#elif defined(__riscos) || defined(__riscos__)
|
||||
# define PLATFORM_ID "RISCos"
|
||||
|
||||
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
|
||||
# define PLATFORM_ID "SINIX"
|
||||
|
||||
#elif defined(__UNIX_SV__)
|
||||
# define PLATFORM_ID "UNIX_SV"
|
||||
|
||||
#elif defined(__bsdos__)
|
||||
# define PLATFORM_ID "BSDOS"
|
||||
|
||||
#elif defined(_MPRAS) || defined(MPRAS)
|
||||
# define PLATFORM_ID "MP-RAS"
|
||||
|
||||
#elif defined(__osf) || defined(__osf__)
|
||||
# define PLATFORM_ID "OSF1"
|
||||
|
||||
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
|
||||
# define PLATFORM_ID "SCO_SV"
|
||||
|
||||
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
|
||||
# define PLATFORM_ID "ULTRIX"
|
||||
|
||||
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
|
||||
# define PLATFORM_ID "Xenix"
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(__LINUX__)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
# elif defined(__DOS__)
|
||||
# define PLATFORM_ID "DOS"
|
||||
|
||||
# elif defined(__OS2__)
|
||||
# define PLATFORM_ID "OS2"
|
||||
|
||||
# elif defined(__WINDOWS__)
|
||||
# define PLATFORM_ID "Windows3x"
|
||||
|
||||
# else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
# endif
|
||||
|
||||
#else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
|
||||
#endif
|
||||
|
||||
/* For windows compilers MSVC and Intel we can determine
|
||||
the architecture of the compiler being used. This is because
|
||||
the compilers do not have flags that can change the architecture,
|
||||
but rather depend on which compiler is being used
|
||||
*/
|
||||
#if defined(_WIN32) && defined(_MSC_VER)
|
||||
# if defined(_M_IA64)
|
||||
# define ARCHITECTURE_ID "IA64"
|
||||
|
||||
# elif defined(_M_X64) || defined(_M_AMD64)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# elif defined(_M_ARM)
|
||||
# if _M_ARM == 4
|
||||
# define ARCHITECTURE_ID "ARMV4I"
|
||||
# elif _M_ARM == 5
|
||||
# define ARCHITECTURE_ID "ARMV5I"
|
||||
# else
|
||||
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
|
||||
# endif
|
||||
|
||||
# elif defined(_M_MIPS)
|
||||
# define ARCHITECTURE_ID "MIPS"
|
||||
|
||||
# elif defined(_M_SH)
|
||||
# define ARCHITECTURE_ID "SHx"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(_M_I86)
|
||||
# define ARCHITECTURE_ID "I86"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#else
|
||||
# define ARCHITECTURE_ID
|
||||
#endif
|
||||
|
||||
/* Convert integer to decimal digit literals. */
|
||||
#define DEC(n) \
|
||||
('0' + (((n) / 10000000)%10)), \
|
||||
('0' + (((n) / 1000000)%10)), \
|
||||
('0' + (((n) / 100000)%10)), \
|
||||
('0' + (((n) / 10000)%10)), \
|
||||
('0' + (((n) / 1000)%10)), \
|
||||
('0' + (((n) / 100)%10)), \
|
||||
('0' + (((n) / 10)%10)), \
|
||||
('0' + ((n) % 10))
|
||||
|
||||
/* Convert integer to hex digit literals. */
|
||||
#define HEX(n) \
|
||||
('0' + ((n)>>28 & 0xF)), \
|
||||
('0' + ((n)>>24 & 0xF)), \
|
||||
('0' + ((n)>>20 & 0xF)), \
|
||||
('0' + ((n)>>16 & 0xF)), \
|
||||
('0' + ((n)>>12 & 0xF)), \
|
||||
('0' + ((n)>>8 & 0xF)), \
|
||||
('0' + ((n)>>4 & 0xF)), \
|
||||
('0' + ((n) & 0xF))
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#ifdef COMPILER_VERSION_MAJOR
|
||||
char const info_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
|
||||
COMPILER_VERSION_MAJOR,
|
||||
# ifdef COMPILER_VERSION_MINOR
|
||||
'.', COMPILER_VERSION_MINOR,
|
||||
# ifdef COMPILER_VERSION_PATCH
|
||||
'.', COMPILER_VERSION_PATCH,
|
||||
# ifdef COMPILER_VERSION_TWEAK
|
||||
'.', COMPILER_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
char const info_simulate_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
|
||||
SIMULATE_VERSION_MAJOR,
|
||||
# ifdef SIMULATE_VERSION_MINOR
|
||||
'.', SIMULATE_VERSION_MINOR,
|
||||
# ifdef SIMULATE_VERSION_PATCH
|
||||
'.', SIMULATE_VERSION_PATCH,
|
||||
# ifdef SIMULATE_VERSION_TWEAK
|
||||
'.', SIMULATE_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
|
||||
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
|
||||
|
||||
|
||||
|
||||
|
||||
#if !defined(__STDC__)
|
||||
# if defined(_MSC_VER) && !defined(__clang__)
|
||||
# define C_DIALECT "90"
|
||||
# else
|
||||
# define C_DIALECT
|
||||
# endif
|
||||
#elif __STDC_VERSION__ >= 201000L
|
||||
# define C_DIALECT "11"
|
||||
#elif __STDC_VERSION__ >= 199901L
|
||||
# define C_DIALECT "99"
|
||||
#else
|
||||
# define C_DIALECT "90"
|
||||
#endif
|
||||
const char* info_language_dialect_default =
|
||||
"INFO" ":" "dialect_default[" C_DIALECT "]";
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
#ifdef ID_VOID_MAIN
|
||||
void main() {}
|
||||
#else
|
||||
# if defined(__CLASSIC_C__)
|
||||
int main(argc, argv) int argc; char *argv[];
|
||||
# else
|
||||
int main(int argc, char* argv[])
|
||||
# endif
|
||||
{
|
||||
int require = 0;
|
||||
require += info_compiler[argc];
|
||||
require += info_platform[argc];
|
||||
require += info_arch[argc];
|
||||
#ifdef COMPILER_VERSION_MAJOR
|
||||
require += info_version[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_ID
|
||||
require += info_simulate[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
require += info_simulate_version[argc];
|
||||
#endif
|
||||
#if defined(__CRAYXE) || defined(__CRAYXC)
|
||||
require += info_cray[argc];
|
||||
#endif
|
||||
require += info_language_dialect_default[argc];
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
#endif
|
||||
Binary file not shown.
@@ -1,16 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Relative path conversion top directories.
|
||||
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/root/projekti/CyUSB/release/cylib")
|
||||
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/root/projekti/CyUSB/release/cylib/build")
|
||||
|
||||
# Force unix paths in dependencies.
|
||||
set(CMAKE_FORCE_UNIX_PATHS 1)
|
||||
|
||||
|
||||
# The C and CXX include file regular expressions for this directory.
|
||||
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
||||
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
||||
@@ -1,55 +0,0 @@
|
||||
Determining if the pthread_create exist failed with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_b2324/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_b2324.dir/build.make CMakeFiles/cmTC_b2324.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_b2324.dir/CheckSymbolExists.c.o
|
||||
/usr/bin/cc -I/usr/local/include/libusb-1.0 -o CMakeFiles/cmTC_b2324.dir/CheckSymbolExists.c.o -c /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
|
||||
Linking C executable cmTC_b2324
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b2324.dir/link.txt --verbose=1
|
||||
/usr/bin/cc CMakeFiles/cmTC_b2324.dir/CheckSymbolExists.c.o -o cmTC_b2324 -rdynamic
|
||||
CMakeFiles/cmTC_b2324.dir/CheckSymbolExists.c.o: In function `main':
|
||||
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
|
||||
collect2: error: ld returned 1 exit status
|
||||
CMakeFiles/cmTC_b2324.dir/build.make:97: recipe for target 'cmTC_b2324' failed
|
||||
make[1]: *** [cmTC_b2324] Error 1
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Makefile:126: recipe for target 'cmTC_b2324/fast' failed
|
||||
make: *** [cmTC_b2324/fast] Error 2
|
||||
|
||||
File /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
|
||||
/* */
|
||||
#include <pthread.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
(void)argv;
|
||||
#ifndef pthread_create
|
||||
return ((int*)(&pthread_create))[argc];
|
||||
#else
|
||||
(void)argc;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
Determining if the function pthread_create exists in the pthreads failed with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_f6be8/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_f6be8.dir/build.make CMakeFiles/cmTC_f6be8.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_f6be8.dir/CheckFunctionExists.c.o
|
||||
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_f6be8.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c
|
||||
Linking C executable cmTC_f6be8
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f6be8.dir/link.txt --verbose=1
|
||||
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_f6be8.dir/CheckFunctionExists.c.o -o cmTC_f6be8 -rdynamic -lpthreads
|
||||
/usr/bin/ld: cannot find -lpthreads
|
||||
collect2: error: ld returned 1 exit status
|
||||
CMakeFiles/cmTC_f6be8.dir/build.make:97: recipe for target 'cmTC_f6be8' failed
|
||||
make[1]: *** [cmTC_f6be8] Error 1
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Makefile:126: recipe for target 'cmTC_f6be8/fast' failed
|
||||
make: *** [cmTC_f6be8/fast] Error 2
|
||||
|
||||
|
||||
@@ -1,227 +0,0 @@
|
||||
The system is: Linux - 4.9.0-kali2-amd64 - x86_64
|
||||
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
|
||||
Compiler: /usr/bin/cc
|
||||
Build flags:
|
||||
Id flags:
|
||||
|
||||
The output was:
|
||||
0
|
||||
|
||||
|
||||
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
|
||||
|
||||
The C compiler identification is GNU, found in "/root/projekti/CyUSB/release/cylib/build/CMakeFiles/3.7.2/CompilerIdC/a.out"
|
||||
|
||||
Determining if the C compiler works passed with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_4bf42/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_4bf42.dir/build.make CMakeFiles/cmTC_4bf42.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_4bf42.dir/testCCompiler.c.o
|
||||
/usr/bin/cc -o CMakeFiles/cmTC_4bf42.dir/testCCompiler.c.o -c /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp/testCCompiler.c
|
||||
Linking C executable cmTC_4bf42
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4bf42.dir/link.txt --verbose=1
|
||||
/usr/bin/cc CMakeFiles/cmTC_4bf42.dir/testCCompiler.c.o -o cmTC_4bf42 -rdynamic
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
Detecting C compiler ABI info compiled with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_39aa0/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_39aa0.dir/build.make CMakeFiles/cmTC_39aa0.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o
|
||||
/usr/bin/cc -o CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.7/Modules/CMakeCCompilerABI.c
|
||||
Linking C executable cmTC_39aa0
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_39aa0.dir/link.txt --verbose=1
|
||||
/usr/bin/cc -v CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o -o cmTC_39aa0 -rdynamic
|
||||
Using built-in specs.
|
||||
COLLECT_GCC=/usr/bin/cc
|
||||
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
|
||||
Target: x86_64-linux-gnu
|
||||
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
|
||||
Thread model: posix
|
||||
gcc version 6.3.0 20170205 (Debian 6.3.0-6)
|
||||
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/
|
||||
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../:/lib/:/usr/lib/
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_39aa0' '-rdynamic' '-mtune=generic' '-march=x86-64'
|
||||
/usr/lib/gcc/x86_64-linux-gnu/6/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper -plugin-opt=-fresolution=/tmp/ccYqCjNB.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_39aa0 /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_39aa0' '-rdynamic' '-mtune=generic' '-march=x86-64'
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
Parsed C implicit link information from above output:
|
||||
link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)]
|
||||
ignore line: [Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp]
|
||||
ignore line: []
|
||||
ignore line: [Run Build Command:"/usr/bin/make" "cmTC_39aa0/fast"]
|
||||
ignore line: [/usr/bin/make -f CMakeFiles/cmTC_39aa0.dir/build.make CMakeFiles/cmTC_39aa0.dir/build]
|
||||
ignore line: [make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp']
|
||||
ignore line: [Building C object CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o]
|
||||
ignore line: [/usr/bin/cc -o CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.7/Modules/CMakeCCompilerABI.c]
|
||||
ignore line: [Linking C executable cmTC_39aa0]
|
||||
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_39aa0.dir/link.txt --verbose=1]
|
||||
ignore line: [/usr/bin/cc -v CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o -o cmTC_39aa0 -rdynamic ]
|
||||
ignore line: [Using built-in specs.]
|
||||
ignore line: [COLLECT_GCC=/usr/bin/cc]
|
||||
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper]
|
||||
ignore line: [Target: x86_64-linux-gnu]
|
||||
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
|
||||
ignore line: [Thread model: posix]
|
||||
ignore line: [gcc version 6.3.0 20170205 (Debian 6.3.0-6) ]
|
||||
ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/]
|
||||
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../:/lib/:/usr/lib/]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_39aa0' '-rdynamic' '-mtune=generic' '-march=x86-64']
|
||||
link line: [ /usr/lib/gcc/x86_64-linux-gnu/6/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper -plugin-opt=-fresolution=/tmp/ccYqCjNB.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_39aa0 /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o]
|
||||
arg [/usr/lib/gcc/x86_64-linux-gnu/6/collect2] ==> ignore
|
||||
arg [-plugin] ==> ignore
|
||||
arg [/usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so] ==> ignore
|
||||
arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper] ==> ignore
|
||||
arg [-plugin-opt=-fresolution=/tmp/ccYqCjNB.res] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lc] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
|
||||
arg [--sysroot=/] ==> ignore
|
||||
arg [--build-id] ==> ignore
|
||||
arg [--eh-frame-hdr] ==> ignore
|
||||
arg [-m] ==> ignore
|
||||
arg [elf_x86_64] ==> ignore
|
||||
arg [--hash-style=gnu] ==> ignore
|
||||
arg [-export-dynamic] ==> ignore
|
||||
arg [-dynamic-linker] ==> ignore
|
||||
arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
|
||||
arg [-pie] ==> ignore
|
||||
arg [-o] ==> ignore
|
||||
arg [cmTC_39aa0] ==> ignore
|
||||
arg [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o] ==> ignore
|
||||
arg [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o] ==> ignore
|
||||
arg [/usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o] ==> ignore
|
||||
arg [-L/usr/lib/gcc/x86_64-linux-gnu/6] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/6]
|
||||
arg [-L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu]
|
||||
arg [-L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib]
|
||||
arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
|
||||
arg [-L/lib/../lib] ==> dir [/lib/../lib]
|
||||
arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
|
||||
arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
|
||||
arg [-L/usr/lib/gcc/x86_64-linux-gnu/6/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../..]
|
||||
arg [CMakeFiles/cmTC_39aa0.dir/CMakeCCompilerABI.c.o] ==> ignore
|
||||
arg [-lgcc] ==> lib [gcc]
|
||||
arg [--as-needed] ==> ignore
|
||||
arg [-lgcc_s] ==> lib [gcc_s]
|
||||
arg [--no-as-needed] ==> ignore
|
||||
arg [-lc] ==> lib [c]
|
||||
arg [-lgcc] ==> lib [gcc]
|
||||
arg [--as-needed] ==> ignore
|
||||
arg [-lgcc_s] ==> lib [gcc_s]
|
||||
arg [--no-as-needed] ==> ignore
|
||||
arg [/usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o] ==> ignore
|
||||
arg [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o] ==> ignore
|
||||
remove lib [gcc]
|
||||
remove lib [gcc_s]
|
||||
remove lib [gcc]
|
||||
remove lib [gcc_s]
|
||||
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/6] ==> [/usr/lib/gcc/x86_64-linux-gnu/6]
|
||||
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
|
||||
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib] ==> [/usr/lib]
|
||||
collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
|
||||
collapse library dir [/lib/../lib] ==> [/lib]
|
||||
collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
|
||||
collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
|
||||
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../..] ==> [/usr/lib]
|
||||
implicit libs: [c]
|
||||
implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/6;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
|
||||
implicit fwks: []
|
||||
|
||||
|
||||
|
||||
|
||||
Detecting C [-std=c11] compiler features compiled with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_98c40/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_98c40.dir/build.make CMakeFiles/cmTC_98c40.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_98c40.dir/feature_tests.c.o
|
||||
/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_98c40.dir/feature_tests.c.o -c /root/projekti/CyUSB/release/cylib/build/CMakeFiles/feature_tests.c
|
||||
Linking C executable cmTC_98c40
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_98c40.dir/link.txt --verbose=1
|
||||
/usr/bin/cc CMakeFiles/cmTC_98c40.dir/feature_tests.c.o -o cmTC_98c40 -rdynamic
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
Feature record: C_FEATURE:1c_function_prototypes
|
||||
Feature record: C_FEATURE:1c_restrict
|
||||
Feature record: C_FEATURE:1c_static_assert
|
||||
Feature record: C_FEATURE:1c_variadic_macros
|
||||
|
||||
|
||||
Detecting C [-std=c99] compiler features compiled with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_9784e/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_9784e.dir/build.make CMakeFiles/cmTC_9784e.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_9784e.dir/feature_tests.c.o
|
||||
/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_9784e.dir/feature_tests.c.o -c /root/projekti/CyUSB/release/cylib/build/CMakeFiles/feature_tests.c
|
||||
Linking C executable cmTC_9784e
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9784e.dir/link.txt --verbose=1
|
||||
/usr/bin/cc CMakeFiles/cmTC_9784e.dir/feature_tests.c.o -o cmTC_9784e -rdynamic
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
Feature record: C_FEATURE:1c_function_prototypes
|
||||
Feature record: C_FEATURE:1c_restrict
|
||||
Feature record: C_FEATURE:0c_static_assert
|
||||
Feature record: C_FEATURE:1c_variadic_macros
|
||||
|
||||
|
||||
Detecting C [-std=c90] compiler features compiled with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_a77f2/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_a77f2.dir/build.make CMakeFiles/cmTC_a77f2.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_a77f2.dir/feature_tests.c.o
|
||||
/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_a77f2.dir/feature_tests.c.o -c /root/projekti/CyUSB/release/cylib/build/CMakeFiles/feature_tests.c
|
||||
Linking C executable cmTC_a77f2
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a77f2.dir/link.txt --verbose=1
|
||||
/usr/bin/cc CMakeFiles/cmTC_a77f2.dir/feature_tests.c.o -o cmTC_a77f2 -rdynamic
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
Feature record: C_FEATURE:1c_function_prototypes
|
||||
Feature record: C_FEATURE:0c_restrict
|
||||
Feature record: C_FEATURE:0c_static_assert
|
||||
Feature record: C_FEATURE:0c_variadic_macros
|
||||
Determining if the include file pthread.h exists passed with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_7956f/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_7956f.dir/build.make CMakeFiles/cmTC_7956f.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_7956f.dir/CheckIncludeFile.c.o
|
||||
/usr/bin/cc -I/usr/local/include/libusb-1.0 -o CMakeFiles/cmTC_7956f.dir/CheckIncludeFile.c.o -c /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
|
||||
Linking C executable cmTC_7956f
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7956f.dir/link.txt --verbose=1
|
||||
/usr/bin/cc CMakeFiles/cmTC_7956f.dir/CheckIncludeFile.c.o -o cmTC_7956f -rdynamic
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
Determining if the function pthread_create exists in the pthread passed with the following output:
|
||||
Change Dir: /root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command:"/usr/bin/make" "cmTC_89d9a/fast"
|
||||
/usr/bin/make -f CMakeFiles/cmTC_89d9a.dir/build.make CMakeFiles/cmTC_89d9a.dir/build
|
||||
make[1]: Entering directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
Building C object CMakeFiles/cmTC_89d9a.dir/CheckFunctionExists.c.o
|
||||
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_89d9a.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c
|
||||
Linking C executable cmTC_89d9a
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_89d9a.dir/link.txt --verbose=1
|
||||
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_89d9a.dir/CheckFunctionExists.c.o -o cmTC_89d9a -rdynamic -lpthread
|
||||
make[1]: Leaving directory '/root/projekti/CyUSB/release/cylib/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# The generator used is:
|
||||
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
|
||||
|
||||
# The top level Makefile was generated from the following files:
|
||||
set(CMAKE_MAKEFILE_DEPENDS
|
||||
"CMakeCache.txt"
|
||||
"../CMakeLists.txt"
|
||||
"CMakeFiles/3.7.2/CMakeCCompiler.cmake"
|
||||
"CMakeFiles/3.7.2/CMakeSystem.cmake"
|
||||
"../cmake/helpers/libusb_version.c"
|
||||
"../cmake/modules/FindLibUSB.cmake"
|
||||
"../include/CMakeLists.txt"
|
||||
"../lib/CMakeLists.txt"
|
||||
"../tools/CMakeLists.txt"
|
||||
"/usr/share/cmake-3.7/Modules/CMakeCInformation.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CMakeCommonLanguageInclude.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CMakeGenericSystem.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CMakeLanguageInformation.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CMakeParseArguments.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CMakeSystemSpecificInformation.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CMakeSystemSpecificInitialize.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CheckIncludeFile.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CheckLibraryExists.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/CheckSymbolExists.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/Compiler/GNU-C.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/Compiler/GNU.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/FindPackageMessage.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/FindPkgConfig.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/FindThreads.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/Platform/Linux-GNU-C.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/Platform/Linux-GNU.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/Platform/Linux.cmake"
|
||||
"/usr/share/cmake-3.7/Modules/Platform/UnixPaths.cmake"
|
||||
)
|
||||
|
||||
# The corresponding makefile is:
|
||||
set(CMAKE_MAKEFILE_OUTPUTS
|
||||
"Makefile"
|
||||
"CMakeFiles/cmake.check_cache"
|
||||
)
|
||||
|
||||
# Byproducts of CMake generate step:
|
||||
set(CMAKE_MAKEFILE_PRODUCTS
|
||||
"CMakeFiles/CMakeDirectoryInformation.cmake"
|
||||
"include/CMakeFiles/CMakeDirectoryInformation.cmake"
|
||||
"lib/CMakeFiles/CMakeDirectoryInformation.cmake"
|
||||
"tools/CMakeFiles/CMakeDirectoryInformation.cmake"
|
||||
)
|
||||
|
||||
# Dependency information for all targets:
|
||||
set(CMAKE_DEPEND_INFO_FILES
|
||||
"lib/CMakeFiles/cyusbserial.dir/DependInfo.cmake"
|
||||
"tools/CMakeFiles/cyusbserialtest.dir/DependInfo.cmake"
|
||||
)
|
||||
@@ -1,199 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
|
||||
.PHONY : default_target
|
||||
|
||||
# The main recursive all target
|
||||
all:
|
||||
|
||||
.PHONY : all
|
||||
|
||||
# The main recursive preinstall target
|
||||
preinstall:
|
||||
|
||||
.PHONY : preinstall
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /root/projekti/CyUSB/release/cylib
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /root/projekti/CyUSB/release/cylib/build
|
||||
|
||||
#=============================================================================
|
||||
# Directory level rules for directory include
|
||||
|
||||
# Convenience name for "all" pass in the directory.
|
||||
include/all:
|
||||
|
||||
.PHONY : include/all
|
||||
|
||||
# Convenience name for "clean" pass in the directory.
|
||||
include/clean:
|
||||
|
||||
.PHONY : include/clean
|
||||
|
||||
# Convenience name for "preinstall" pass in the directory.
|
||||
include/preinstall:
|
||||
|
||||
.PHONY : include/preinstall
|
||||
|
||||
#=============================================================================
|
||||
# Directory level rules for directory lib
|
||||
|
||||
# Convenience name for "all" pass in the directory.
|
||||
lib/all: lib/CMakeFiles/cyusbserial.dir/all
|
||||
|
||||
.PHONY : lib/all
|
||||
|
||||
# Convenience name for "clean" pass in the directory.
|
||||
lib/clean: lib/CMakeFiles/cyusbserial.dir/clean
|
||||
|
||||
.PHONY : lib/clean
|
||||
|
||||
# Convenience name for "preinstall" pass in the directory.
|
||||
lib/preinstall:
|
||||
|
||||
.PHONY : lib/preinstall
|
||||
|
||||
#=============================================================================
|
||||
# Target rules for target lib/CMakeFiles/cyusbserial.dir
|
||||
|
||||
# All Build rule for target.
|
||||
lib/CMakeFiles/cyusbserial.dir/all:
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/depend
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/build
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=1,2,3,4,5,6,7,8 "Built target cyusbserial"
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/all
|
||||
|
||||
# Include target in all.
|
||||
all: lib/CMakeFiles/cyusbserial.dir/all
|
||||
|
||||
.PHONY : all
|
||||
|
||||
# Build rule for subdir invocation for target.
|
||||
lib/CMakeFiles/cyusbserial.dir/rule: cmake_check_build_system
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles 8
|
||||
$(MAKE) -f CMakeFiles/Makefile2 lib/CMakeFiles/cyusbserial.dir/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles 0
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
cyusbserial: lib/CMakeFiles/cyusbserial.dir/rule
|
||||
|
||||
.PHONY : cyusbserial
|
||||
|
||||
# clean rule for target.
|
||||
lib/CMakeFiles/cyusbserial.dir/clean:
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/clean
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/clean
|
||||
|
||||
# clean rule for target.
|
||||
clean: lib/CMakeFiles/cyusbserial.dir/clean
|
||||
|
||||
.PHONY : clean
|
||||
|
||||
#=============================================================================
|
||||
# Directory level rules for directory tools
|
||||
|
||||
# Convenience name for "all" pass in the directory.
|
||||
tools/all: tools/CMakeFiles/cyusbserialtest.dir/all
|
||||
|
||||
.PHONY : tools/all
|
||||
|
||||
# Convenience name for "clean" pass in the directory.
|
||||
tools/clean: tools/CMakeFiles/cyusbserialtest.dir/clean
|
||||
|
||||
.PHONY : tools/clean
|
||||
|
||||
# Convenience name for "preinstall" pass in the directory.
|
||||
tools/preinstall:
|
||||
|
||||
.PHONY : tools/preinstall
|
||||
|
||||
#=============================================================================
|
||||
# Target rules for target tools/CMakeFiles/cyusbserialtest.dir
|
||||
|
||||
# All Build rule for target.
|
||||
tools/CMakeFiles/cyusbserialtest.dir/all: lib/CMakeFiles/cyusbserial.dir/all
|
||||
$(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/depend
|
||||
$(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/build
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=9,10 "Built target cyusbserialtest"
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/all
|
||||
|
||||
# Include target in all.
|
||||
all: tools/CMakeFiles/cyusbserialtest.dir/all
|
||||
|
||||
.PHONY : all
|
||||
|
||||
# Build rule for subdir invocation for target.
|
||||
tools/CMakeFiles/cyusbserialtest.dir/rule: cmake_check_build_system
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles 10
|
||||
$(MAKE) -f CMakeFiles/Makefile2 tools/CMakeFiles/cyusbserialtest.dir/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles 0
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
cyusbserialtest: tools/CMakeFiles/cyusbserialtest.dir/rule
|
||||
|
||||
.PHONY : cyusbserialtest
|
||||
|
||||
# clean rule for target.
|
||||
tools/CMakeFiles/cyusbserialtest.dir/clean:
|
||||
$(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/clean
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/clean
|
||||
|
||||
# clean rule for target.
|
||||
clean: tools/CMakeFiles/cyusbserialtest.dir/clean
|
||||
|
||||
.PHONY : clean
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
/root/projekti/CyUSB/release/cylib/build/CMakeFiles/install/strip.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/CMakeFiles/install/local.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/CMakeFiles/edit_cache.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/CMakeFiles/rebuild_cache.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/CMakeFiles/list_install_components.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/CMakeFiles/install.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/include/CMakeFiles/install/strip.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/include/CMakeFiles/install/local.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/include/CMakeFiles/edit_cache.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/include/CMakeFiles/rebuild_cache.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/include/CMakeFiles/list_install_components.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/include/CMakeFiles/install.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/install/strip.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/install/local.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/rebuild_cache.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/edit_cache.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/install.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/list_install_components.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/install/strip.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/install/local.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/install.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/list_install_components.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/cyusbserialtest.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/edit_cache.dir
|
||||
/root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/rebuild_cache.dir
|
||||
@@ -1 +0,0 @@
|
||||
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
|
||||
Binary file not shown.
@@ -1,34 +0,0 @@
|
||||
|
||||
const char features[] = {"\n"
|
||||
"C_FEATURE:"
|
||||
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404
|
||||
"1"
|
||||
#else
|
||||
"0"
|
||||
#endif
|
||||
"c_function_prototypes\n"
|
||||
"C_FEATURE:"
|
||||
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
"1"
|
||||
#else
|
||||
"0"
|
||||
#endif
|
||||
"c_restrict\n"
|
||||
"C_FEATURE:"
|
||||
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
|
||||
"1"
|
||||
#else
|
||||
"0"
|
||||
#endif
|
||||
"c_static_assert\n"
|
||||
"C_FEATURE:"
|
||||
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
"1"
|
||||
#else
|
||||
"0"
|
||||
#endif
|
||||
"c_variadic_macros\n"
|
||||
|
||||
};
|
||||
|
||||
int main(int argc, char** argv) { (void)argv; return features[argc]; }
|
||||
@@ -1 +0,0 @@
|
||||
10
|
||||
@@ -1,210 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /root/projekti/CyUSB/release/cylib
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /root/projekti/CyUSB/release/cylib/build
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles /root/projekti/CyUSB/release/cylib/build/CMakeFiles/progress.marks
|
||||
$(MAKE) -f CMakeFiles/Makefile2 all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
$(MAKE) -f CMakeFiles/Makefile2 clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
$(MAKE) -f CMakeFiles/Makefile2 preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
$(MAKE) -f CMakeFiles/Makefile2 preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
#=============================================================================
|
||||
# Target rules for targets named cyusbserial
|
||||
|
||||
# Build rule for target.
|
||||
cyusbserial: cmake_check_build_system
|
||||
$(MAKE) -f CMakeFiles/Makefile2 cyusbserial
|
||||
.PHONY : cyusbserial
|
||||
|
||||
# fast build rule for target.
|
||||
cyusbserial/fast:
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/build
|
||||
.PHONY : cyusbserial/fast
|
||||
|
||||
#=============================================================================
|
||||
# Target rules for targets named cyusbserialtest
|
||||
|
||||
# Build rule for target.
|
||||
cyusbserialtest: cmake_check_build_system
|
||||
$(MAKE) -f CMakeFiles/Makefile2 cyusbserialtest
|
||||
.PHONY : cyusbserialtest
|
||||
|
||||
# fast build rule for target.
|
||||
cyusbserialtest/fast:
|
||||
$(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/build
|
||||
.PHONY : cyusbserialtest/fast
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... install/strip"
|
||||
@echo "... install/local"
|
||||
@echo "... edit_cache"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... list_install_components"
|
||||
@echo "... install"
|
||||
@echo "... cyusbserial"
|
||||
@echo "... cyusbserialtest"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
# Install script for directory: /root/projekti/CyUSB/release/cylib
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "1")
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_INSTALL_LOCAL_ONLY)
|
||||
# Include the install script for each subdirectory.
|
||||
include("/root/projekti/CyUSB/release/cylib/build/include/cmake_install.cmake")
|
||||
include("/root/projekti/CyUSB/release/cylib/build/lib/cmake_install.cmake")
|
||||
include("/root/projekti/CyUSB/release/cylib/build/tools/cmake_install.cmake")
|
||||
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT)
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
||||
else()
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
||||
endif()
|
||||
|
||||
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
||||
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
||||
file(WRITE "/root/projekti/CyUSB/release/cylib/build/${CMAKE_INSTALL_MANIFEST}"
|
||||
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
||||
@@ -1,16 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Relative path conversion top directories.
|
||||
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/root/projekti/CyUSB/release/cylib")
|
||||
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/root/projekti/CyUSB/release/cylib/build")
|
||||
|
||||
# Force unix paths in dependencies.
|
||||
set(CMAKE_FORCE_UNIX_PATHS 1)
|
||||
|
||||
|
||||
# The C and CXX include file regular expressions for this directory.
|
||||
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
||||
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
||||
@@ -1 +0,0 @@
|
||||
0
|
||||
@@ -1,182 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /root/projekti/CyUSB/release/cylib
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /root/projekti/CyUSB/release/cylib/build
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles /root/projekti/CyUSB/release/cylib/build/include/CMakeFiles/progress.marks
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 include/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 include/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 include/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 include/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... install/strip"
|
||||
@echo "... install/local"
|
||||
@echo "... edit_cache"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... list_install_components"
|
||||
@echo "... install"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Install script for directory: /root/projekti/CyUSB/release/cylib/include
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "1")
|
||||
endif()
|
||||
|
||||
if("${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES "/root/projekti/CyUSB/release/cylib/include/CyUSBSerial.h")
|
||||
endif()
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
/usr/local/include/CyUSBSerial.h
|
||||
/usr/local/lib/libcyusbserial.so.1
|
||||
/usr/local/lib/libcyusbserial.so
|
||||
/usr/local/bin/cyusbserialtest
|
||||
@@ -1,16 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Relative path conversion top directories.
|
||||
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/root/projekti/CyUSB/release/cylib")
|
||||
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/root/projekti/CyUSB/release/cylib/build")
|
||||
|
||||
# Force unix paths in dependencies.
|
||||
set(CMAKE_FORCE_UNIX_PATHS 1)
|
||||
|
||||
|
||||
# The C and CXX include file regular expressions for this directory.
|
||||
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
||||
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
||||
@@ -1,80 +0,0 @@
|
||||
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
|
||||
|
||||
#IncludeRegexScan: ^.*$
|
||||
|
||||
#IncludeRegexComplain: ^$
|
||||
|
||||
#IncludeRegexTransform:
|
||||
|
||||
../include/CyUSBSerial.h
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
stdio.h
|
||||
-
|
||||
io.h
|
||||
-
|
||||
unistd.h
|
||||
-
|
||||
stdlib.h
|
||||
-
|
||||
string.h
|
||||
-
|
||||
errno.h
|
||||
-
|
||||
fcntl.h
|
||||
-
|
||||
stdbool.h
|
||||
-
|
||||
pthread.h
|
||||
-
|
||||
libusb.h
|
||||
-
|
||||
CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBSerial.h
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyi2c.c
|
||||
CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyjtag.c
|
||||
CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/lib/cymisc.c
|
||||
CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyphdc.c
|
||||
CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyspi.c
|
||||
CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
signal.h
|
||||
-
|
||||
sys/time.h
|
||||
-
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyuart.c
|
||||
CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyusb.c
|
||||
CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
|
||||
/usr/local/include/libusb-1.0/libusb.h
|
||||
stdint.h
|
||||
-
|
||||
sys/types.h
|
||||
-
|
||||
time.h
|
||||
-
|
||||
limits.h
|
||||
-
|
||||
sys/time.h
|
||||
-
|
||||
windows.h
|
||||
-
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
# The set of languages for which implicit dependencies are needed:
|
||||
set(CMAKE_DEPENDS_LANGUAGES
|
||||
"C"
|
||||
)
|
||||
# The set of files for implicit dependencies of each language:
|
||||
set(CMAKE_DEPENDS_CHECK_C
|
||||
"/root/projekti/CyUSB/release/cylib/lib/cyi2c.c" "/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o"
|
||||
"/root/projekti/CyUSB/release/cylib/lib/cyjtag.c" "/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o"
|
||||
"/root/projekti/CyUSB/release/cylib/lib/cymisc.c" "/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/cymisc.c.o"
|
||||
"/root/projekti/CyUSB/release/cylib/lib/cyphdc.c" "/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o"
|
||||
"/root/projekti/CyUSB/release/cylib/lib/cyspi.c" "/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/cyspi.c.o"
|
||||
"/root/projekti/CyUSB/release/cylib/lib/cyuart.c" "/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/cyuart.c.o"
|
||||
"/root/projekti/CyUSB/release/cylib/lib/cyusb.c" "/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/cyusb.c.o"
|
||||
)
|
||||
set(CMAKE_C_COMPILER_ID "GNU")
|
||||
|
||||
# The include file search paths:
|
||||
set(CMAKE_C_TARGET_INCLUDE_PATH
|
||||
"../include"
|
||||
"../lib/../include"
|
||||
"/usr/local/include/libusb-1.0"
|
||||
)
|
||||
|
||||
# Pairs of files generated by the same build rule.
|
||||
set(CMAKE_MULTIPLE_OUTPUT_PAIRS
|
||||
"/root/projekti/CyUSB/release/cylib/build/lib/libcyusbserial.so" "/root/projekti/CyUSB/release/cylib/build/lib/libcyusbserial.so.1"
|
||||
)
|
||||
|
||||
|
||||
# Targets to which this target links.
|
||||
set(CMAKE_TARGET_LINKED_INFO_FILES
|
||||
)
|
||||
|
||||
# Fortran module output directory.
|
||||
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
|
||||
@@ -1,280 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Delete rule output on recipe failure.
|
||||
.DELETE_ON_ERROR:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /root/projekti/CyUSB/release/cylib
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /root/projekti/CyUSB/release/cylib/build
|
||||
|
||||
# Include any dependencies generated for this target.
|
||||
include lib/CMakeFiles/cyusbserial.dir/depend.make
|
||||
|
||||
# Include the progress variables for this target.
|
||||
include lib/CMakeFiles/cyusbserial.dir/progress.make
|
||||
|
||||
# Include the compile flags for this target's objects.
|
||||
include lib/CMakeFiles/cyusbserial.dir/flags.make
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o: lib/CMakeFiles/cyusbserial.dir/flags.make
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o: ../lib/cyusb.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object lib/CMakeFiles/cyusbserial.dir/cyusb.c.o"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/cyusbserial.dir/cyusb.c.o -c /root/projekti/CyUSB/release/cylib/lib/cyusb.c
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/cyusbserial.dir/cyusb.c.i"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /root/projekti/CyUSB/release/cylib/lib/cyusb.c > CMakeFiles/cyusbserial.dir/cyusb.c.i
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/cyusbserial.dir/cyusb.c.s"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /root/projekti/CyUSB/release/cylib/lib/cyusb.c -o CMakeFiles/cyusbserial.dir/cyusb.c.s
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o.requires:
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyusb.c.o.requires
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o.provides: lib/CMakeFiles/cyusbserial.dir/cyusb.c.o.requires
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyusb.c.o.provides.build
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyusb.c.o.provides
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o.provides.build: lib/CMakeFiles/cyusbserial.dir/cyusb.c.o
|
||||
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o: lib/CMakeFiles/cyusbserial.dir/flags.make
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o: ../lib/cyuart.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building C object lib/CMakeFiles/cyusbserial.dir/cyuart.c.o"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/cyusbserial.dir/cyuart.c.o -c /root/projekti/CyUSB/release/cylib/lib/cyuart.c
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/cyusbserial.dir/cyuart.c.i"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /root/projekti/CyUSB/release/cylib/lib/cyuart.c > CMakeFiles/cyusbserial.dir/cyuart.c.i
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/cyusbserial.dir/cyuart.c.s"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /root/projekti/CyUSB/release/cylib/lib/cyuart.c -o CMakeFiles/cyusbserial.dir/cyuart.c.s
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o.requires:
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyuart.c.o.requires
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o.provides: lib/CMakeFiles/cyusbserial.dir/cyuart.c.o.requires
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyuart.c.o.provides.build
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyuart.c.o.provides
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o.provides.build: lib/CMakeFiles/cyusbserial.dir/cyuart.c.o
|
||||
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o: lib/CMakeFiles/cyusbserial.dir/flags.make
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o: ../lib/cyi2c.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building C object lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/cyusbserial.dir/cyi2c.c.o -c /root/projekti/CyUSB/release/cylib/lib/cyi2c.c
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/cyusbserial.dir/cyi2c.c.i"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /root/projekti/CyUSB/release/cylib/lib/cyi2c.c > CMakeFiles/cyusbserial.dir/cyi2c.c.i
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/cyusbserial.dir/cyi2c.c.s"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /root/projekti/CyUSB/release/cylib/lib/cyi2c.c -o CMakeFiles/cyusbserial.dir/cyi2c.c.s
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o.requires:
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o.requires
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o.provides: lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o.requires
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o.provides.build
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o.provides
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o.provides.build: lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o
|
||||
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o: lib/CMakeFiles/cyusbserial.dir/flags.make
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o: ../lib/cyspi.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building C object lib/CMakeFiles/cyusbserial.dir/cyspi.c.o"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/cyusbserial.dir/cyspi.c.o -c /root/projekti/CyUSB/release/cylib/lib/cyspi.c
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/cyusbserial.dir/cyspi.c.i"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /root/projekti/CyUSB/release/cylib/lib/cyspi.c > CMakeFiles/cyusbserial.dir/cyspi.c.i
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/cyusbserial.dir/cyspi.c.s"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /root/projekti/CyUSB/release/cylib/lib/cyspi.c -o CMakeFiles/cyusbserial.dir/cyspi.c.s
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o.requires:
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyspi.c.o.requires
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o.provides: lib/CMakeFiles/cyusbserial.dir/cyspi.c.o.requires
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyspi.c.o.provides.build
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyspi.c.o.provides
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o.provides.build: lib/CMakeFiles/cyusbserial.dir/cyspi.c.o
|
||||
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o: lib/CMakeFiles/cyusbserial.dir/flags.make
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o: ../lib/cyphdc.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building C object lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/cyusbserial.dir/cyphdc.c.o -c /root/projekti/CyUSB/release/cylib/lib/cyphdc.c
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/cyusbserial.dir/cyphdc.c.i"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /root/projekti/CyUSB/release/cylib/lib/cyphdc.c > CMakeFiles/cyusbserial.dir/cyphdc.c.i
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/cyusbserial.dir/cyphdc.c.s"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /root/projekti/CyUSB/release/cylib/lib/cyphdc.c -o CMakeFiles/cyusbserial.dir/cyphdc.c.s
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o.requires:
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o.requires
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o.provides: lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o.requires
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o.provides.build
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o.provides
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o.provides.build: lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o
|
||||
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o: lib/CMakeFiles/cyusbserial.dir/flags.make
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o: ../lib/cyjtag.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building C object lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/cyusbserial.dir/cyjtag.c.o -c /root/projekti/CyUSB/release/cylib/lib/cyjtag.c
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/cyusbserial.dir/cyjtag.c.i"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /root/projekti/CyUSB/release/cylib/lib/cyjtag.c > CMakeFiles/cyusbserial.dir/cyjtag.c.i
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/cyusbserial.dir/cyjtag.c.s"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /root/projekti/CyUSB/release/cylib/lib/cyjtag.c -o CMakeFiles/cyusbserial.dir/cyjtag.c.s
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o.requires:
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o.requires
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o.provides: lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o.requires
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o.provides.build
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o.provides
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o.provides.build: lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o
|
||||
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o: lib/CMakeFiles/cyusbserial.dir/flags.make
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o: ../lib/cymisc.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building C object lib/CMakeFiles/cyusbserial.dir/cymisc.c.o"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/cyusbserial.dir/cymisc.c.o -c /root/projekti/CyUSB/release/cylib/lib/cymisc.c
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/cyusbserial.dir/cymisc.c.i"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /root/projekti/CyUSB/release/cylib/lib/cymisc.c > CMakeFiles/cyusbserial.dir/cymisc.c.i
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/cyusbserial.dir/cymisc.c.s"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /root/projekti/CyUSB/release/cylib/lib/cymisc.c -o CMakeFiles/cyusbserial.dir/cymisc.c.s
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o.requires:
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cymisc.c.o.requires
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o.provides: lib/CMakeFiles/cyusbserial.dir/cymisc.c.o.requires
|
||||
$(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cymisc.c.o.provides.build
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/cymisc.c.o.provides
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o.provides.build: lib/CMakeFiles/cyusbserial.dir/cymisc.c.o
|
||||
|
||||
|
||||
# Object files for target cyusbserial
|
||||
cyusbserial_OBJECTS = \
|
||||
"CMakeFiles/cyusbserial.dir/cyusb.c.o" \
|
||||
"CMakeFiles/cyusbserial.dir/cyuart.c.o" \
|
||||
"CMakeFiles/cyusbserial.dir/cyi2c.c.o" \
|
||||
"CMakeFiles/cyusbserial.dir/cyspi.c.o" \
|
||||
"CMakeFiles/cyusbserial.dir/cyphdc.c.o" \
|
||||
"CMakeFiles/cyusbserial.dir/cyjtag.c.o" \
|
||||
"CMakeFiles/cyusbserial.dir/cymisc.c.o"
|
||||
|
||||
# External object files for target cyusbserial
|
||||
cyusbserial_EXTERNAL_OBJECTS =
|
||||
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/cyusb.c.o
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/cyuart.c.o
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/cyspi.c.o
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/cymisc.c.o
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/build.make
|
||||
lib/libcyusbserial.so.1: /usr/local/lib/libusb-1.0.so
|
||||
lib/libcyusbserial.so.1: lib/CMakeFiles/cyusbserial.dir/link.txt
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Linking C shared library libcyusbserial.so"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/cyusbserial.dir/link.txt --verbose=$(VERBOSE)
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && $(CMAKE_COMMAND) -E cmake_symlink_library libcyusbserial.so.1 libcyusbserial.so.1 libcyusbserial.so
|
||||
|
||||
lib/libcyusbserial.so: lib/libcyusbserial.so.1
|
||||
@$(CMAKE_COMMAND) -E touch_nocreate lib/libcyusbserial.so
|
||||
|
||||
# Rule to build all files generated by this target.
|
||||
lib/CMakeFiles/cyusbserial.dir/build: lib/libcyusbserial.so
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/build
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/requires: lib/CMakeFiles/cyusbserial.dir/cyusb.c.o.requires
|
||||
lib/CMakeFiles/cyusbserial.dir/requires: lib/CMakeFiles/cyusbserial.dir/cyuart.c.o.requires
|
||||
lib/CMakeFiles/cyusbserial.dir/requires: lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o.requires
|
||||
lib/CMakeFiles/cyusbserial.dir/requires: lib/CMakeFiles/cyusbserial.dir/cyspi.c.o.requires
|
||||
lib/CMakeFiles/cyusbserial.dir/requires: lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o.requires
|
||||
lib/CMakeFiles/cyusbserial.dir/requires: lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o.requires
|
||||
lib/CMakeFiles/cyusbserial.dir/requires: lib/CMakeFiles/cyusbserial.dir/cymisc.c.o.requires
|
||||
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/requires
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/clean:
|
||||
cd /root/projekti/CyUSB/release/cylib/build/lib && $(CMAKE_COMMAND) -P CMakeFiles/cyusbserial.dir/cmake_clean.cmake
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/clean
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/depend:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /root/projekti/CyUSB/release/cylib /root/projekti/CyUSB/release/cylib/lib /root/projekti/CyUSB/release/cylib/build /root/projekti/CyUSB/release/cylib/build/lib /root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/DependInfo.cmake --color=$(COLOR)
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/depend
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
file(REMOVE_RECURSE
|
||||
"CMakeFiles/cyusbserial.dir/cyusb.c.o"
|
||||
"CMakeFiles/cyusbserial.dir/cyuart.c.o"
|
||||
"CMakeFiles/cyusbserial.dir/cyi2c.c.o"
|
||||
"CMakeFiles/cyusbserial.dir/cyspi.c.o"
|
||||
"CMakeFiles/cyusbserial.dir/cyphdc.c.o"
|
||||
"CMakeFiles/cyusbserial.dir/cyjtag.c.o"
|
||||
"CMakeFiles/cyusbserial.dir/cymisc.c.o"
|
||||
"libcyusbserial.pdb"
|
||||
"libcyusbserial.so"
|
||||
"libcyusbserial.so.1"
|
||||
)
|
||||
|
||||
# Per-language clean rules from dependency scanning.
|
||||
foreach(lang C)
|
||||
include(CMakeFiles/cyusbserial.dir/cmake_clean_${lang}.cmake OPTIONAL)
|
||||
endforeach()
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,38 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o
|
||||
../include/CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyi2c.c
|
||||
/usr/local/include/libusb-1.0/libusb.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o
|
||||
../include/CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyjtag.c
|
||||
/usr/local/include/libusb-1.0/libusb.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o
|
||||
../include/CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/cymisc.c
|
||||
/usr/local/include/libusb-1.0/libusb.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o
|
||||
../include/CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyphdc.c
|
||||
/usr/local/include/libusb-1.0/libusb.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o
|
||||
../include/CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyspi.c
|
||||
/usr/local/include/libusb-1.0/libusb.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o
|
||||
../include/CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyuart.c
|
||||
/usr/local/include/libusb-1.0/libusb.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o
|
||||
../include/CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/CyUSBCommon.h
|
||||
/root/projekti/CyUSB/release/cylib/lib/cyusb.c
|
||||
/usr/local/include/libusb-1.0/libusb.h
|
||||
@@ -1,38 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o: ../include/CyUSBSerial.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o: ../lib/CyUSBCommon.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o: ../lib/cyi2c.c
|
||||
lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o: /usr/local/include/libusb-1.0/libusb.h
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o: ../include/CyUSBSerial.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o: ../lib/CyUSBCommon.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o: ../lib/cyjtag.c
|
||||
lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o: /usr/local/include/libusb-1.0/libusb.h
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o: ../include/CyUSBSerial.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o: ../lib/CyUSBCommon.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o: ../lib/cymisc.c
|
||||
lib/CMakeFiles/cyusbserial.dir/cymisc.c.o: /usr/local/include/libusb-1.0/libusb.h
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o: ../include/CyUSBSerial.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o: ../lib/CyUSBCommon.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o: ../lib/cyphdc.c
|
||||
lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o: /usr/local/include/libusb-1.0/libusb.h
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o: ../include/CyUSBSerial.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o: ../lib/CyUSBCommon.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o: ../lib/cyspi.c
|
||||
lib/CMakeFiles/cyusbserial.dir/cyspi.c.o: /usr/local/include/libusb-1.0/libusb.h
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o: ../include/CyUSBSerial.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o: ../lib/CyUSBCommon.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o: ../lib/cyuart.c
|
||||
lib/CMakeFiles/cyusbserial.dir/cyuart.c.o: /usr/local/include/libusb-1.0/libusb.h
|
||||
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o: ../include/CyUSBSerial.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o: ../lib/CyUSBCommon.h
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o: ../lib/cyusb.c
|
||||
lib/CMakeFiles/cyusbserial.dir/cyusb.c.o: /usr/local/include/libusb-1.0/libusb.h
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# compile C with /usr/bin/cc
|
||||
C_FLAGS = -fPIC -Wall -Wextra -Wno-unused-parameter
|
||||
|
||||
C_DEFINES = -Dcyusbserial_EXPORTS
|
||||
|
||||
C_INCLUDES = -I/root/projekti/CyUSB/release/cylib/include -I/root/projekti/CyUSB/release/cylib/lib/../include -I/usr/local/include/libusb-1.0
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
/usr/bin/cc -fPIC -shared -Wl,-soname,libcyusbserial.so.1 -o libcyusbserial.so.1 CMakeFiles/cyusbserial.dir/cyusb.c.o CMakeFiles/cyusbserial.dir/cyuart.c.o CMakeFiles/cyusbserial.dir/cyi2c.c.o CMakeFiles/cyusbserial.dir/cyspi.c.o CMakeFiles/cyusbserial.dir/cyphdc.c.o CMakeFiles/cyusbserial.dir/cyjtag.c.o CMakeFiles/cyusbserial.dir/cymisc.c.o -Wl,-rpath,/usr/local/lib: -lpthread /usr/local/lib/libusb-1.0.so
|
||||
@@ -1,9 +0,0 @@
|
||||
CMAKE_PROGRESS_1 = 1
|
||||
CMAKE_PROGRESS_2 = 2
|
||||
CMAKE_PROGRESS_3 = 3
|
||||
CMAKE_PROGRESS_4 = 4
|
||||
CMAKE_PROGRESS_5 = 5
|
||||
CMAKE_PROGRESS_6 = 6
|
||||
CMAKE_PROGRESS_7 = 7
|
||||
CMAKE_PROGRESS_8 = 8
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
8
|
||||
@@ -1,408 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /root/projekti/CyUSB/release/cylib
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /root/projekti/CyUSB/release/cylib/build
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles /root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/progress.marks
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 lib/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 lib/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 lib/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 lib/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
lib/CMakeFiles/cyusbserial.dir/rule:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 lib/CMakeFiles/cyusbserial.dir/rule
|
||||
.PHONY : lib/CMakeFiles/cyusbserial.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
cyusbserial: lib/CMakeFiles/cyusbserial.dir/rule
|
||||
|
||||
.PHONY : cyusbserial
|
||||
|
||||
# fast build rule for target.
|
||||
cyusbserial/fast:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/build
|
||||
.PHONY : cyusbserial/fast
|
||||
|
||||
cyi2c.o: cyi2c.c.o
|
||||
|
||||
.PHONY : cyi2c.o
|
||||
|
||||
# target to build an object file
|
||||
cyi2c.c.o:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyi2c.c.o
|
||||
.PHONY : cyi2c.c.o
|
||||
|
||||
cyi2c.i: cyi2c.c.i
|
||||
|
||||
.PHONY : cyi2c.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cyi2c.c.i:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyi2c.c.i
|
||||
.PHONY : cyi2c.c.i
|
||||
|
||||
cyi2c.s: cyi2c.c.s
|
||||
|
||||
.PHONY : cyi2c.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cyi2c.c.s:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyi2c.c.s
|
||||
.PHONY : cyi2c.c.s
|
||||
|
||||
cyjtag.o: cyjtag.c.o
|
||||
|
||||
.PHONY : cyjtag.o
|
||||
|
||||
# target to build an object file
|
||||
cyjtag.c.o:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyjtag.c.o
|
||||
.PHONY : cyjtag.c.o
|
||||
|
||||
cyjtag.i: cyjtag.c.i
|
||||
|
||||
.PHONY : cyjtag.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cyjtag.c.i:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyjtag.c.i
|
||||
.PHONY : cyjtag.c.i
|
||||
|
||||
cyjtag.s: cyjtag.c.s
|
||||
|
||||
.PHONY : cyjtag.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cyjtag.c.s:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyjtag.c.s
|
||||
.PHONY : cyjtag.c.s
|
||||
|
||||
cymisc.o: cymisc.c.o
|
||||
|
||||
.PHONY : cymisc.o
|
||||
|
||||
# target to build an object file
|
||||
cymisc.c.o:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cymisc.c.o
|
||||
.PHONY : cymisc.c.o
|
||||
|
||||
cymisc.i: cymisc.c.i
|
||||
|
||||
.PHONY : cymisc.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cymisc.c.i:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cymisc.c.i
|
||||
.PHONY : cymisc.c.i
|
||||
|
||||
cymisc.s: cymisc.c.s
|
||||
|
||||
.PHONY : cymisc.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cymisc.c.s:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cymisc.c.s
|
||||
.PHONY : cymisc.c.s
|
||||
|
||||
cyphdc.o: cyphdc.c.o
|
||||
|
||||
.PHONY : cyphdc.o
|
||||
|
||||
# target to build an object file
|
||||
cyphdc.c.o:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyphdc.c.o
|
||||
.PHONY : cyphdc.c.o
|
||||
|
||||
cyphdc.i: cyphdc.c.i
|
||||
|
||||
.PHONY : cyphdc.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cyphdc.c.i:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyphdc.c.i
|
||||
.PHONY : cyphdc.c.i
|
||||
|
||||
cyphdc.s: cyphdc.c.s
|
||||
|
||||
.PHONY : cyphdc.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cyphdc.c.s:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyphdc.c.s
|
||||
.PHONY : cyphdc.c.s
|
||||
|
||||
cyspi.o: cyspi.c.o
|
||||
|
||||
.PHONY : cyspi.o
|
||||
|
||||
# target to build an object file
|
||||
cyspi.c.o:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyspi.c.o
|
||||
.PHONY : cyspi.c.o
|
||||
|
||||
cyspi.i: cyspi.c.i
|
||||
|
||||
.PHONY : cyspi.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cyspi.c.i:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyspi.c.i
|
||||
.PHONY : cyspi.c.i
|
||||
|
||||
cyspi.s: cyspi.c.s
|
||||
|
||||
.PHONY : cyspi.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cyspi.c.s:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyspi.c.s
|
||||
.PHONY : cyspi.c.s
|
||||
|
||||
cyuart.o: cyuart.c.o
|
||||
|
||||
.PHONY : cyuart.o
|
||||
|
||||
# target to build an object file
|
||||
cyuart.c.o:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyuart.c.o
|
||||
.PHONY : cyuart.c.o
|
||||
|
||||
cyuart.i: cyuart.c.i
|
||||
|
||||
.PHONY : cyuart.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cyuart.c.i:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyuart.c.i
|
||||
.PHONY : cyuart.c.i
|
||||
|
||||
cyuart.s: cyuart.c.s
|
||||
|
||||
.PHONY : cyuart.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cyuart.c.s:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyuart.c.s
|
||||
.PHONY : cyuart.c.s
|
||||
|
||||
cyusb.o: cyusb.c.o
|
||||
|
||||
.PHONY : cyusb.o
|
||||
|
||||
# target to build an object file
|
||||
cyusb.c.o:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyusb.c.o
|
||||
.PHONY : cyusb.c.o
|
||||
|
||||
cyusb.i: cyusb.c.i
|
||||
|
||||
.PHONY : cyusb.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cyusb.c.i:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyusb.c.i
|
||||
.PHONY : cyusb.c.i
|
||||
|
||||
cyusb.s: cyusb.c.s
|
||||
|
||||
.PHONY : cyusb.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cyusb.c.s:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f lib/CMakeFiles/cyusbserial.dir/build.make lib/CMakeFiles/cyusbserial.dir/cyusb.c.s
|
||||
.PHONY : cyusb.c.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... install/strip"
|
||||
@echo "... install/local"
|
||||
@echo "... cyusbserial"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... edit_cache"
|
||||
@echo "... install"
|
||||
@echo "... list_install_components"
|
||||
@echo "... cyi2c.o"
|
||||
@echo "... cyi2c.i"
|
||||
@echo "... cyi2c.s"
|
||||
@echo "... cyjtag.o"
|
||||
@echo "... cyjtag.i"
|
||||
@echo "... cyjtag.s"
|
||||
@echo "... cymisc.o"
|
||||
@echo "... cymisc.i"
|
||||
@echo "... cymisc.s"
|
||||
@echo "... cyphdc.o"
|
||||
@echo "... cyphdc.i"
|
||||
@echo "... cyphdc.s"
|
||||
@echo "... cyspi.o"
|
||||
@echo "... cyspi.i"
|
||||
@echo "... cyspi.s"
|
||||
@echo "... cyuart.o"
|
||||
@echo "... cyuart.i"
|
||||
@echo "... cyuart.s"
|
||||
@echo "... cyusb.o"
|
||||
@echo "... cyusb.i"
|
||||
@echo "... cyusb.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
# Install script for directory: /root/projekti/CyUSB/release/cylib/lib
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "1")
|
||||
endif()
|
||||
|
||||
if("${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
foreach(file
|
||||
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcyusbserial.so.1"
|
||||
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcyusbserial.so"
|
||||
)
|
||||
if(EXISTS "${file}" AND
|
||||
NOT IS_SYMLINK "${file}")
|
||||
file(RPATH_CHECK
|
||||
FILE "${file}"
|
||||
RPATH "")
|
||||
endif()
|
||||
endforeach()
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES
|
||||
"/root/projekti/CyUSB/release/cylib/build/lib/libcyusbserial.so.1"
|
||||
"/root/projekti/CyUSB/release/cylib/build/lib/libcyusbserial.so"
|
||||
)
|
||||
foreach(file
|
||||
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcyusbserial.so.1"
|
||||
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcyusbserial.so"
|
||||
)
|
||||
if(EXISTS "${file}" AND
|
||||
NOT IS_SYMLINK "${file}")
|
||||
file(RPATH_CHANGE
|
||||
FILE "${file}"
|
||||
OLD_RPATH "/usr/local/lib:"
|
||||
NEW_RPATH "")
|
||||
if(CMAKE_INSTALL_DO_STRIP)
|
||||
execute_process(COMMAND "/usr/bin/strip" "${file}")
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
libcyusbserial.so.1
|
||||
Binary file not shown.
@@ -1,16 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Relative path conversion top directories.
|
||||
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/root/projekti/CyUSB/release/cylib")
|
||||
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/root/projekti/CyUSB/release/cylib/build")
|
||||
|
||||
# Force unix paths in dependencies.
|
||||
set(CMAKE_FORCE_UNIX_PATHS 1)
|
||||
|
||||
|
||||
# The C and CXX include file regular expressions for this directory.
|
||||
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
||||
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
||||
@@ -1,36 +0,0 @@
|
||||
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
|
||||
|
||||
#IncludeRegexScan: ^.*$
|
||||
|
||||
#IncludeRegexComplain: ^$
|
||||
|
||||
#IncludeRegexTransform:
|
||||
|
||||
../include/CyUSBSerial.h
|
||||
|
||||
/root/projekti/CyUSB/release/cylib/tools/cyusbserialtest.c
|
||||
stdio.h
|
||||
-
|
||||
unistd.h
|
||||
-
|
||||
stdlib.h
|
||||
-
|
||||
getopt.h
|
||||
-
|
||||
string.h
|
||||
-
|
||||
signal.h
|
||||
-
|
||||
stdbool.h
|
||||
-
|
||||
unistd.h
|
||||
-
|
||||
sys/time.h
|
||||
-
|
||||
pthread.h
|
||||
-
|
||||
ctype.h
|
||||
-
|
||||
CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/tools/CyUSBSerial.h
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
# The set of languages for which implicit dependencies are needed:
|
||||
set(CMAKE_DEPENDS_LANGUAGES
|
||||
"C"
|
||||
)
|
||||
# The set of files for implicit dependencies of each language:
|
||||
set(CMAKE_DEPENDS_CHECK_C
|
||||
"/root/projekti/CyUSB/release/cylib/tools/cyusbserialtest.c" "/root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o"
|
||||
)
|
||||
set(CMAKE_C_COMPILER_ID "GNU")
|
||||
|
||||
# The include file search paths:
|
||||
set(CMAKE_C_TARGET_INCLUDE_PATH
|
||||
"../include"
|
||||
)
|
||||
|
||||
# Targets to which this target links.
|
||||
set(CMAKE_TARGET_LINKED_INFO_FILES
|
||||
"/root/projekti/CyUSB/release/cylib/build/lib/CMakeFiles/cyusbserial.dir/DependInfo.cmake"
|
||||
)
|
||||
|
||||
# Fortran module output directory.
|
||||
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
|
||||
@@ -1,115 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Delete rule output on recipe failure.
|
||||
.DELETE_ON_ERROR:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /root/projekti/CyUSB/release/cylib
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /root/projekti/CyUSB/release/cylib/build
|
||||
|
||||
# Include any dependencies generated for this target.
|
||||
include tools/CMakeFiles/cyusbserialtest.dir/depend.make
|
||||
|
||||
# Include the progress variables for this target.
|
||||
include tools/CMakeFiles/cyusbserialtest.dir/progress.make
|
||||
|
||||
# Include the compile flags for this target's objects.
|
||||
include tools/CMakeFiles/cyusbserialtest.dir/flags.make
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o: tools/CMakeFiles/cyusbserialtest.dir/flags.make
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o: ../tools/cyusbserialtest.c
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/tools && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o -c /root/projekti/CyUSB/release/cylib/tools/cyusbserialtest.c
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.i"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/tools && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E /root/projekti/CyUSB/release/cylib/tools/cyusbserialtest.c > CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.i
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.s"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/tools && /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S /root/projekti/CyUSB/release/cylib/tools/cyusbserialtest.c -o CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.s
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o.requires:
|
||||
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o.requires
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o.provides: tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o.requires
|
||||
$(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o.provides.build
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o.provides
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o.provides.build: tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o
|
||||
|
||||
|
||||
# Object files for target cyusbserialtest
|
||||
cyusbserialtest_OBJECTS = \
|
||||
"CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o"
|
||||
|
||||
# External object files for target cyusbserialtest
|
||||
cyusbserialtest_EXTERNAL_OBJECTS =
|
||||
|
||||
tools/cyusbserialtest: tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o
|
||||
tools/cyusbserialtest: tools/CMakeFiles/cyusbserialtest.dir/build.make
|
||||
tools/cyusbserialtest: lib/libcyusbserial.so.1
|
||||
tools/cyusbserialtest: /usr/local/lib/libusb-1.0.so
|
||||
tools/cyusbserialtest: tools/CMakeFiles/cyusbserialtest.dir/link.txt
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/root/projekti/CyUSB/release/cylib/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking C executable cyusbserialtest"
|
||||
cd /root/projekti/CyUSB/release/cylib/build/tools && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/cyusbserialtest.dir/link.txt --verbose=$(VERBOSE)
|
||||
|
||||
# Rule to build all files generated by this target.
|
||||
tools/CMakeFiles/cyusbserialtest.dir/build: tools/cyusbserialtest
|
||||
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/build
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/requires: tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o.requires
|
||||
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/requires
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/clean:
|
||||
cd /root/projekti/CyUSB/release/cylib/build/tools && $(CMAKE_COMMAND) -P CMakeFiles/cyusbserialtest.dir/cmake_clean.cmake
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/clean
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/depend:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /root/projekti/CyUSB/release/cylib /root/projekti/CyUSB/release/cylib/tools /root/projekti/CyUSB/release/cylib/build /root/projekti/CyUSB/release/cylib/build/tools /root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/cyusbserialtest.dir/DependInfo.cmake --color=$(COLOR)
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/depend
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
file(REMOVE_RECURSE
|
||||
"CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o"
|
||||
"cyusbserialtest.pdb"
|
||||
"cyusbserialtest"
|
||||
)
|
||||
|
||||
# Per-language clean rules from dependency scanning.
|
||||
foreach(lang C)
|
||||
include(CMakeFiles/cyusbserialtest.dir/cmake_clean_${lang}.cmake OPTIONAL)
|
||||
endforeach()
|
||||
Binary file not shown.
@@ -1,6 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o
|
||||
../include/CyUSBSerial.h
|
||||
/root/projekti/CyUSB/release/cylib/tools/cyusbserialtest.c
|
||||
@@ -1,6 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o: ../include/CyUSBSerial.h
|
||||
tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o: ../tools/cyusbserialtest.c
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# compile C with /usr/bin/cc
|
||||
C_FLAGS = -Wall -Wextra -Wno-unused-parameter
|
||||
|
||||
C_DEFINES =
|
||||
|
||||
C_INCLUDES = -I/root/projekti/CyUSB/release/cylib/include
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
/usr/bin/cc CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o -o cyusbserialtest -Wl,-rpath,/root/projekti/CyUSB/release/cylib/build/lib:/usr/local/lib: -rdynamic ../lib/libcyusbserial.so.1 -lpthread /usr/local/lib/libusb-1.0.so
|
||||
@@ -1,3 +0,0 @@
|
||||
CMAKE_PROGRESS_1 = 9
|
||||
CMAKE_PROGRESS_2 = 10
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
10
|
||||
@@ -1,228 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.7
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /root/projekti/CyUSB/release/cylib
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /root/projekti/CyUSB/release/cylib/build
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles /root/projekti/CyUSB/release/cylib/build/tools/CMakeFiles/progress.marks
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 tools/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /root/projekti/CyUSB/release/cylib/build/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 tools/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 tools/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 tools/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
tools/CMakeFiles/cyusbserialtest.dir/rule:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f CMakeFiles/Makefile2 tools/CMakeFiles/cyusbserialtest.dir/rule
|
||||
.PHONY : tools/CMakeFiles/cyusbserialtest.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
cyusbserialtest: tools/CMakeFiles/cyusbserialtest.dir/rule
|
||||
|
||||
.PHONY : cyusbserialtest
|
||||
|
||||
# fast build rule for target.
|
||||
cyusbserialtest/fast:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/build
|
||||
.PHONY : cyusbserialtest/fast
|
||||
|
||||
cyusbserialtest.o: cyusbserialtest.c.o
|
||||
|
||||
.PHONY : cyusbserialtest.o
|
||||
|
||||
# target to build an object file
|
||||
cyusbserialtest.c.o:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.o
|
||||
.PHONY : cyusbserialtest.c.o
|
||||
|
||||
cyusbserialtest.i: cyusbserialtest.c.i
|
||||
|
||||
.PHONY : cyusbserialtest.i
|
||||
|
||||
# target to preprocess a source file
|
||||
cyusbserialtest.c.i:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.i
|
||||
.PHONY : cyusbserialtest.c.i
|
||||
|
||||
cyusbserialtest.s: cyusbserialtest.c.s
|
||||
|
||||
.PHONY : cyusbserialtest.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
cyusbserialtest.c.s:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(MAKE) -f tools/CMakeFiles/cyusbserialtest.dir/build.make tools/CMakeFiles/cyusbserialtest.dir/cyusbserialtest.c.s
|
||||
.PHONY : cyusbserialtest.c.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... install/strip"
|
||||
@echo "... install/local"
|
||||
@echo "... install"
|
||||
@echo "... list_install_components"
|
||||
@echo "... cyusbserialtest"
|
||||
@echo "... edit_cache"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... cyusbserialtest.o"
|
||||
@echo "... cyusbserialtest.i"
|
||||
@echo "... cyusbserialtest.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /root/projekti/CyUSB/release/cylib/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Install script for directory: /root/projekti/CyUSB/release/cylib/tools
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "1")
|
||||
endif()
|
||||
|
||||
if("${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cyusbserialtest" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cyusbserialtest")
|
||||
file(RPATH_CHECK
|
||||
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cyusbserialtest"
|
||||
RPATH "")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/root/projekti/CyUSB/release/cylib/build/tools/cyusbserialtest")
|
||||
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cyusbserialtest" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cyusbserialtest")
|
||||
file(RPATH_CHANGE
|
||||
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cyusbserialtest"
|
||||
OLD_RPATH "/root/projekti/CyUSB/release/cylib/build/lib:/usr/local/lib:"
|
||||
NEW_RPATH "")
|
||||
if(CMAKE_INSTALL_DO_STRIP)
|
||||
execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cyusbserialtest")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Binary file not shown.
@@ -1,46 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <libusb.h>
|
||||
|
||||
#if WIN32
|
||||
#include <winbase.h>
|
||||
typedef const struct libusb_version * (__stdcall * version_fn)(void);
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int status = 0;
|
||||
const struct libusb_version *ver;
|
||||
|
||||
#if WIN32
|
||||
if (argc > 1) {
|
||||
HINSTANCE dll;
|
||||
version_fn get_version;
|
||||
|
||||
dll = LoadLibraryA(argv[1]);
|
||||
if (!dll) {
|
||||
fprintf(stderr, "Failed to load %s\n", argv[1]);
|
||||
return -1;
|
||||
}
|
||||
|
||||
get_version = (version_fn) GetProcAddress(dll, "libusb_get_version");
|
||||
if (get_version) {
|
||||
ver = get_version();
|
||||
printf("%u.%u.%u\n", ver->major, ver->minor, ver->micro);
|
||||
} else{
|
||||
fprintf(stderr, "Failed to get address of libusb_get_version()\n");
|
||||
status = -1;
|
||||
}
|
||||
FreeLibrary(dll);
|
||||
} else {
|
||||
fprintf(stderr, "Windows usage: %s <libusb.dll>\n", argv[0]);
|
||||
return -1;
|
||||
}
|
||||
#else
|
||||
ver = libusb_get_version();
|
||||
printf("%u.%u.%u\n", ver->major, ver->minor, ver->micro);
|
||||
#endif
|
||||
|
||||
return status;
|
||||
}
|
||||
@@ -1,97 +0,0 @@
|
||||
# This is file is based off of the FindLibUSB.cmake file written by Hendrik Sattler,
|
||||
# from the OpenOBEX project (licensed GPLv2/LGPL). (If this is not correct,
|
||||
# please contact us so we can attribute the author appropriately.)
|
||||
#
|
||||
# https://github.com/zuckschwerdt/openobex/blob/master/CMakeModules/FindLibUSB.cmake
|
||||
# http://dev.zuckschwerdt.org/openobex/
|
||||
#
|
||||
# Find pthreads-win32
|
||||
#
|
||||
# This requires the LIBPTHREADSWIN32_PATH variable to be set to the path to the
|
||||
# a pthreads-win32 release, such as the Pre-built.2 directory from the 2.9.1 release:
|
||||
# ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip
|
||||
#
|
||||
# The following standard variables get defined:
|
||||
# LIBPTHREADSWIN32_FOUND: true if LibUSB was found
|
||||
# LIBPTHREADSWIN32_HEADER_FILE: the location of the C header file
|
||||
# LIBPTHREADSWIN32_INCLUDE_DIRS: the directories that contain headers
|
||||
# LIBPTHREADSWIN32_LIBRARIES: the library files
|
||||
# LIBPTHREADSWIN32_LIB_COPYING: the license associated with the library
|
||||
|
||||
if(DEFINED __INCLUDED_BLADERF_FINDLIBPTHREADSWIN32_CMAKE)
|
||||
return()
|
||||
endif()
|
||||
set(__INCLUDED_BLADERF_FINDLIBPTHREADSWIN32_CMAKE TRUE)
|
||||
|
||||
include ( CheckLibraryExists )
|
||||
include ( CheckIncludeFile )
|
||||
|
||||
set(LIBPTHREADSWIN32_PATH
|
||||
"C:/Program Files/pthreads-win32"
|
||||
CACHE
|
||||
PATH
|
||||
"Path to win-pthreads files. (This is generally only needed for Windows users who downloaded binary distributions.)"
|
||||
)
|
||||
|
||||
find_file ( LIBPTHREADSWIN32_HEADER_FILE
|
||||
NAMES
|
||||
pthread.h
|
||||
PATHS
|
||||
${LIBPTHREADSWIN32_PATH}
|
||||
PATH_SUFFIXES
|
||||
include include
|
||||
)
|
||||
mark_as_advanced ( LIBPTHREADSWIN32_HEADER_FILE )
|
||||
get_filename_component ( LIBPTHREADSWIN32_INCLUDE_DIRS "${LIBPTHREADSWIN32_HEADER_FILE}" PATH )
|
||||
|
||||
if ( WIN32 )
|
||||
if ( MSVC )
|
||||
if ( CMAKE_CL_64 )
|
||||
set ( LIBPTHREADSWIN32_LIBRARY_PATH_SUFFIX x64 )
|
||||
else ( CMAKE_CL_64 )
|
||||
set ( LIBPTHREADSWIN32_LIBRARY_PATH_SUFFIX x86 )
|
||||
endif ( CMAKE_CL_64 )
|
||||
elseif ( CMAKE_COMPILER_IS_GNUCC )
|
||||
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
||||
set ( LIBPTHREADSWIN32_LIBRARY_PATH_SUFFIX x64 )
|
||||
else ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
||||
set ( LIBPTHREADSWIN32_LIBRARY_PATH_SUFFIX x86 )
|
||||
endif ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
||||
endif ( MSVC )
|
||||
|
||||
find_library ( PTHREAD_LIBRARY
|
||||
NAMES
|
||||
pthreadVC2
|
||||
PATHS
|
||||
${LIBPTHREADSWIN32_PATH}
|
||||
PATH_SUFFIXES
|
||||
lib/${LIBPTHREADSWIN32_LIBRARY_PATH_SUFFIX}
|
||||
)
|
||||
|
||||
mark_as_advanced ( PTHREAD_LIBRARY )
|
||||
if ( PTHREAD_LIBRARY )
|
||||
set ( LIBPTHREADSWIN32_LIBRARIES ${PTHREAD_LIBRARY} )
|
||||
endif ( PTHREAD_LIBRARY )
|
||||
|
||||
else ( WIN32 )
|
||||
message(FATAL_ERROR "This file only supports Windows")
|
||||
endif ( WIN32 )
|
||||
|
||||
set ( LIBPTHREADSWIN32_LIB_COPYING
|
||||
"${LIBPTHREADSWIN32_PATH}/COPYING.LIB" )
|
||||
if ( NOT EXISTS "${LIBPTHREADSWIN32_LIB_COPYING}" )
|
||||
message(FATAL_ERROR "Unable to find pthread-win32 COPYING.LIB file")
|
||||
endif ()
|
||||
|
||||
if ( LIBPTHREADSWIN32_INCLUDE_DIRS AND LIBPTHREADSWIN32_LIBRARIES )
|
||||
set ( LIBPTHREADSWIN32_FOUND true )
|
||||
endif ( LIBPTHREADSWIN32_INCLUDE_DIRS AND LIBPTHREADSWIN32_LIBRARIES )
|
||||
|
||||
if ( LIBPTHREADSWIN32_FOUND )
|
||||
set ( CMAKE_REQUIRED_INCLUDES "${LIBPTHREADSWIN32_INCLUDE_DIRS}" )
|
||||
check_include_file ( "{LIBPTHREADSWIN32_HEADER_FILE}" LIBPTHREADSWIN32_FOUND )
|
||||
endif ( LIBPTHREADSWIN32_FOUND )
|
||||
|
||||
if ( NOT LIBPTHREADSWIN32_FOUND )
|
||||
message ( FATAL_ERROR "pthreads-win32 not found. If you're using a binary distribution, try setting -DLIBPTHREADSWIN32_PATH=<path_to_win_pthread_files>." )
|
||||
endif ( NOT LIBPTHREADSWIN32_FOUND )
|
||||
@@ -1,168 +0,0 @@
|
||||
# This is a modified version of the file written by Hedrik Sattler,
|
||||
# from the OpenOBEX project (licensed GPLv2/LGPL). (If this is not correct,
|
||||
# please contact us so we can attribute the author appropriately.)
|
||||
#
|
||||
# https://github.com/zuckschwerdt/openobex/blob/master/CMakeModules/FindLibUSB.cmake
|
||||
# http://dev.zuckschwerdt.org/openobex/
|
||||
#
|
||||
# Find libusb-1.0
|
||||
#
|
||||
# It will use PkgConfig if present and supported, otherwise this
|
||||
# script searches for binary distribution in the path defined by
|
||||
# the LIBUSB_PATH variable.
|
||||
#
|
||||
# Define LIBUSB_SKIP_VERSION_CHECK=Yes to skip the execution of a program to fetch
|
||||
# libusb's version number. LIBUSB_VERSION will not be set if this if this is used.
|
||||
# To check the version number, this script expects CMAKE_HELPERS_SOURCE_DIR to
|
||||
# be defined with the path to libusb_version.c.
|
||||
#
|
||||
# The following standard variables get defined:
|
||||
# LIBUSB_FOUND: true if LibUSB was found
|
||||
# LIBUSB_HEADER_FILE: the location of the C header file
|
||||
# LIBUSB_INCLUDE_DIRS: the directorys that contain headers
|
||||
# LIBUSB_LIBRARIES: the library files
|
||||
# LIBUSB_VERSION the detected libusb version
|
||||
# LIBUSB_HAVE_GET_VERSION True if libusb has libusb_get_version()
|
||||
|
||||
if(DEFINED __INCLUDED_BLADERF_FINDLIBUSB_CMAKE)
|
||||
return()
|
||||
endif()
|
||||
set(__INCLUDED_BLADERF_FINDLIBUSB_CMAKE TRUE)
|
||||
|
||||
include(CheckLibraryExists)
|
||||
include(CheckIncludeFile)
|
||||
|
||||
|
||||
# In Linux, folks should generally be able to simply fetch the libusb library and
|
||||
# development packages from their distros package repository. Windows users will
|
||||
# likely want to fetch a binary distribution, hence the Windows-oriented default.
|
||||
#
|
||||
# See http://www.libusb.org/wiki/windows_backend#LatestBinarySnapshots
|
||||
if(WIN32)
|
||||
set(LIBUSB_PATH
|
||||
"C:/Program Files/libusb-1.0.19"
|
||||
CACHE
|
||||
PATH
|
||||
"Path to libusb files. (This is generally only needed for Windows users who downloaded binary distributions.)"
|
||||
)
|
||||
endif()
|
||||
|
||||
find_package(PkgConfig)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(PKGCONFIG_LIBUSB libusb-1.0 QUIET)
|
||||
endif(PKG_CONFIG_FOUND)
|
||||
|
||||
if(PKGCONFIG_LIBUSB_FOUND)
|
||||
set(LIBUSB_INCLUDE_DIRS ${PKGCONFIG_LIBUSB_INCLUDE_DIRS})
|
||||
foreach(i ${PKGCONFIG_LIBUSB_LIBRARIES})
|
||||
string(REGEX MATCH "[^-]*" ibase "${i}")
|
||||
find_library(${ibase}_LIBRARY
|
||||
NAMES ${i}
|
||||
PATHS ${PKGCONFIG_LIBUSB_LIBRARY_DIRS}
|
||||
)
|
||||
if(${ibase}_LIBRARY)
|
||||
list(APPEND LIBUSB_LIBRARIES ${${ibase}_LIBRARY})
|
||||
endif(${ibase}_LIBRARY)
|
||||
mark_as_advanced(${ibase}_LIBRARY)
|
||||
endforeach(i)
|
||||
|
||||
else(PKGCONFIG_LIBUSB_FOUND)
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
# The libusbx binary distribution contains several libs.
|
||||
# Use the lib that got compiled with the same compiler.
|
||||
if(MSVC)
|
||||
if(CMAKE_CL_64)
|
||||
set(LIBUSB_LIBRARY_PATH_SUFFIX MS64/dll)
|
||||
else(CMAKE_CL_64)
|
||||
set(LIBUSB_LIBRARY_PATH_SUFFIX MS32/dll)
|
||||
endif(CMAKE_CL_64)
|
||||
elseif(CMAKE_COMPILER_IS_GNUCC)
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set(LIBUSB_LIBRARY_PATH_SUFFIX MinGW32/dll)
|
||||
else(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set(LIBUSB_LIBRARY_PATH_SUFFIX MinGW64/dll)
|
||||
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
endif(MSVC)
|
||||
else()
|
||||
set(LIBUSB_LIBRARY_PATH_SUFFIX lib)
|
||||
set(LIBUSB_EXTRA_PATHS /usr /usr/local /opt/local)
|
||||
endif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
|
||||
find_file(LIBUSB_HEADER_FILE
|
||||
NAMES
|
||||
libusb.h
|
||||
PATHS
|
||||
${LIBUSB_PATH}
|
||||
${LIBUSB_EXTRA_PATHS}
|
||||
PATH_SUFFIXES
|
||||
include include/libusbx-1.0 include/libusb-1.0
|
||||
)
|
||||
mark_as_advanced(LIBUSB_HEADER_FILE)
|
||||
get_filename_component(LIBUSB_INCLUDE_DIRS "${LIBUSB_HEADER_FILE}" PATH)
|
||||
|
||||
|
||||
find_library(usb_LIBRARY
|
||||
NAMES
|
||||
libusb-1.0 usb-1.0
|
||||
PATHS
|
||||
${LIBUSB_PATH}
|
||||
${LIBUSB_EXTRA_PATHS}
|
||||
PATH_SUFFIXES
|
||||
${LIBUSB_LIBRARY_PATH_SUFFIX}
|
||||
)
|
||||
mark_as_advanced(usb_LIBRARY)
|
||||
if(usb_LIBRARY)
|
||||
set(LIBUSB_LIBRARIES ${usb_LIBRARY})
|
||||
endif(usb_LIBRARY)
|
||||
|
||||
endif(PKGCONFIG_LIBUSB_FOUND)
|
||||
|
||||
if(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES)
|
||||
set(LIBUSB_FOUND true)
|
||||
endif(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES)
|
||||
|
||||
if(LIBUSB_FOUND)
|
||||
set(CMAKE_REQUIRED_INCLUDES "${LIBUSB_INCLUDE_DIRS}")
|
||||
check_include_file("{LIBUSB_HEADER_FILE}" LIBUSB_FOUND)
|
||||
endif(LIBUSB_FOUND)
|
||||
|
||||
if(LIBUSB_FOUND AND NOT CMAKE_CROSSCOMPILING)
|
||||
if(LIBUSB_SKIP_VERSION_CHECK)
|
||||
message(STATUS "Skipping libusb version number check.")
|
||||
unset(LIBUSB_VERSION)
|
||||
else()
|
||||
message(STATUS "Checking libusb version...")
|
||||
|
||||
if(WIN32)
|
||||
string(REPLACE ".lib" ".dll" LIBUSB_DLL "${LIBUSB_LIBRARIES}")
|
||||
try_run(LIBUSB_VERCHECK_RUN_RESULT
|
||||
LIBUSB_VERCHECK_COMPILED
|
||||
${CMAKE_HELPERS_BINARY_DIR}
|
||||
${CMAKE_HELPERS_SOURCE_DIR}/libusb_version.c
|
||||
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${LIBUSB_INCLUDE_DIRS}"
|
||||
RUN_OUTPUT_VARIABLE LIBUSB_VERSION
|
||||
ARGS "\"${LIBUSB_DLL}\""
|
||||
)
|
||||
else()
|
||||
try_run(LIBUSB_VERCHECK_RUN_RESULT
|
||||
LIBUSB_VERCHECK_COMPILED
|
||||
${CMAKE_HELPERS_BINARY_DIR}
|
||||
${CMAKE_HELPERS_SOURCE_DIR}/libusb_version.c
|
||||
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${LIBUSB_INCLUDE_DIRS}" "-DLINK_LIBRARIES=${LIBUSB_LIBRARIES}"
|
||||
RUN_OUTPUT_VARIABLE LIBUSB_VERSION
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
if (NOT LIBUSB_VERCHECK_COMPILED OR NOT LIBUSB_VERCHECK_RUN_RESULT EQUAL 0 )
|
||||
message(STATUS "${LIBUSB_VERSION}")
|
||||
set(LIBUSB_VERSION "0.0.0")
|
||||
message(WARNING "\nFailed to compile (compiled=${LIBUSB_VERCHECK_COMPILED}) or run (retval=${LIBUSB_VERCHECK_RUN_RESULT}) libusb version check.\n"
|
||||
"This may occur if libusb is earlier than v1.0.10.\n"
|
||||
"Setting LIBUSB_VERSION to ${LIBUSB_VERSION}.\n")
|
||||
return()
|
||||
endif()
|
||||
|
||||
message(STATUS "libusb version: ${LIBUSB_VERSION}")
|
||||
endif()
|
||||
endif(LIBUSB_FOUND AND NOT CMAKE_CROSSCOMPILING)
|
||||
@@ -1,9 +0,0 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
################################################################################
|
||||
# Install libbladeRF header files
|
||||
################################################################################
|
||||
install(FILES
|
||||
CyUSBSerial.h
|
||||
DESTINATION include
|
||||
)
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,156 +0,0 @@
|
||||
set(VERSION_INFO_MAJOR 1)
|
||||
set(VERSION_INFO_MINOR 0)
|
||||
set(VERSION_INFO_PATCH 0)
|
||||
|
||||
if (NOT CMAKE_INSTALL_LIBDIR)
|
||||
include(GNUInstallDirs)
|
||||
endif (NOT CMAKE_INSTALL_LIBDIR)
|
||||
|
||||
# Fall back to just "lib" if the item provided by GNUInstallDirs doesn't exist
|
||||
# For example, on Ubuntu 13.10 with CMake 2.8.11.2,
|
||||
# /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE} doesn't exist.
|
||||
if (NOT EXISTS "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||||
message(STATUS "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} does not exist. Defaulting libcyusbserial install location to ${CMAKE_INSTALL_PREFIX}/lib.")
|
||||
set(CMAKE_INSTALL_LIBDIR lib)
|
||||
endif()
|
||||
|
||||
|
||||
################################################################################
|
||||
# Include paths
|
||||
################################################################################
|
||||
set(LIBCYUSBSERIAL_INCLUDES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
||||
)
|
||||
|
||||
|
||||
################################################################################
|
||||
# Build dependencies
|
||||
################################################################################
|
||||
if(MSVC)
|
||||
set(LIBCYUSBSERIAL_INCLUDES ${LIBCYUSBSERIAL_INCLUDES} ${MSVC_C99_INCLUDES})
|
||||
|
||||
find_package(LibPThreadsWin32 REQUIRED)
|
||||
if(LIBPTHREADSWIN32_FOUND)
|
||||
set(HAVE_THREADS true)
|
||||
set(LIBCYUSBSERIAL_INCLUDES
|
||||
${LIBCYUSBSERIAL_INCLUDES} ${LIBPTHREADSWIN32_INCLUDE_DIRS})
|
||||
set(LIBCYUSBSERIAL_LIBS
|
||||
${LIBCYUSBSERIAL_LIBS} ${LIBPTHREADSWIN32_LIBRARIES})
|
||||
add_definitions(-DHAVE_STRUCT_TIMESPEC)
|
||||
else()
|
||||
set(HAVE_THREADS false)
|
||||
endif()
|
||||
else(MSVC)
|
||||
find_package(Threads REQUIRED)
|
||||
if(Threads_FOUND)
|
||||
set(HAVE_THREADS true)
|
||||
else()
|
||||
set(HAVE_THREADS false)
|
||||
endif()
|
||||
endif(MSVC)
|
||||
|
||||
if (NOT HAVE_THREADS)
|
||||
message(FATAL_ERROR "pthreads not found. This is required to build libcyusbserial.")
|
||||
endif()
|
||||
|
||||
if(NOT LIBUSB_FOUND)
|
||||
message(FATAL_ERROR "libusb-1.0 not found. This is required to use the libcyusbserial libusb backend. For binary releases, try setting LIBUSB_PATH.")
|
||||
else(NOT LIBUSB_FOUND)
|
||||
if(LIBUSB_VERSION)
|
||||
if(NOT LIBUSB_VERSION VERSION_LESS "1.0.10")
|
||||
add_definitions(-DHAVE_LIBUSB_GET_VERSION)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
# We require v1.0.19 because it provides Windows 8 USB 3.0
|
||||
# speed detection fixes, additional AMD/Intel USB 3.0 root
|
||||
# hub support, and some fixes to issues reported on v1.0.18
|
||||
# that yielded corrupted samples.
|
||||
if(${LIBUSB_VERSION} VERSION_LESS "1.0.19")
|
||||
message(FATAL_ERROR "libusb v1.0.19 is required in Windows.\n"
|
||||
"Please update libusb or consider using the Cypress backend if this is not possible.\n"
|
||||
"Detected version: ${LIBUSB_VERSION}\n")
|
||||
endif()
|
||||
elseif(APPLE)
|
||||
# A number of important changes were included in libusb
|
||||
# v1.0.16 hrough v1.0.18, including SuperSpeed support, 64-bit support,
|
||||
# and various build and crash fixes.
|
||||
if(${LIBUSB_VERSION} VERSION_LESS "1.0.18")
|
||||
message(FATAL_ERROR "libusb v1.0.18 is required in OS X. Please update libusb."
|
||||
"Detected version: ${LIBUSB_VERSION}\n")
|
||||
endif()
|
||||
elseif(UNIX)
|
||||
# A number of reported issues supposedly became resolved after
|
||||
# updating to >= 1.0.16.
|
||||
if(${LIBUSB_VERSION} VERSION_LESS "1.0.16")
|
||||
message(WARNING "\nlibusb >= 1.0.16 is HIGHLY recommended. "
|
||||
"If you experience issues or poor performance, please try updating libusb.\n"
|
||||
"Detected version: ${LIBUSB_VERSION}")
|
||||
endif()
|
||||
else()
|
||||
message(WARNING "Unexpected system type. Please report this warning to developers.")
|
||||
endif()
|
||||
else()
|
||||
message(WARNING "Not checking libcyusbserial/libusb compatibility because LIBUSB_VERSION is not defined.")
|
||||
endif()
|
||||
set(LIBCYUSBSERIAL_INCLUDES ${LIBCYUSBSERIAL_INCLUDES} ${LIBUSB_INCLUDE_DIRS})
|
||||
endif(NOT LIBUSB_FOUND)
|
||||
|
||||
if(MSVC)
|
||||
set(LIBCYUSBSERIAL_INCLUDES ${LIBCYUSBSERIAL_INCLUDES}
|
||||
${LIBPTHREADSWIN32_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
include_directories(${LIBCYUSBSERIAL_INCLUDES})
|
||||
|
||||
|
||||
################################################################################
|
||||
# Configure source files
|
||||
################################################################################
|
||||
set(LIBCYUSBSERIAL_SOURCE
|
||||
cyusb.c
|
||||
cyuart.c
|
||||
cyi2c.c
|
||||
cyspi.c
|
||||
cyphdc.c
|
||||
cyjtag.c
|
||||
cymisc.c
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
set(LIBCYUSBSERIAL_SOURCE ${LIBCYUSBSERIAL_SOURCE}
|
||||
${PROJECT_SOURCE_DIR}/windows/gettimeofday.c
|
||||
${PROJECT_SOURCE_DIR}/windows/usleep.c
|
||||
)
|
||||
endif(MSVC)
|
||||
|
||||
add_library(cyusbserial SHARED ${LIBCYUSBSERIAL_SOURCE})
|
||||
|
||||
|
||||
################################################################################
|
||||
# Build configuration
|
||||
################################################################################
|
||||
|
||||
if(MSVC)
|
||||
add_definitions(-DCYUSBSERIAL_EXPORTS)
|
||||
set(LIBCYUSBSERIAL_LIBS ${LIBCYUSBSERIAL_LIBS} ${LIBPTHREADSWIN32_LIBRARIES})
|
||||
else()
|
||||
set(LIBCYUSBSERIAL_LIBS ${LIBCYUSBSERIAL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif(MSVC)
|
||||
|
||||
set(LIBCYUSBSERIAL_LIBS ${LIBCYUSBSERIAL_LIBS} ${LIBUSB_LIBRARIES})
|
||||
|
||||
target_link_libraries(cyusbserial ${LIBCYUSBSERIAL_LIBS})
|
||||
|
||||
# Set shared library version
|
||||
set_target_properties(cyusbserial PROPERTIES SOVERSION ${VERSION_INFO_MAJOR})
|
||||
|
||||
|
||||
################################################################################
|
||||
# Library installation information
|
||||
################################################################################
|
||||
install(TARGETS cyusbserial
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} # .so/.dylib
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} # .a/.lib
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} # .dll
|
||||
)
|
||||
@@ -1,255 +0,0 @@
|
||||
/*
|
||||
* Common header file of Cypress USB Serial
|
||||
* Copyright (C) 2013 Cypress Semiconductor
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/** \file CyUSBCommon.h
|
||||
* \brief Common header file of Cypress USB Serial
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdbool.h>
|
||||
#include <pthread.h>
|
||||
#include <libusb.h>
|
||||
#include "CyUSBSerial.h"
|
||||
|
||||
typedef struct CY_DEVICE {
|
||||
#pragma pack(1)
|
||||
unsigned char inEndpoint;
|
||||
unsigned char outEndpoint;
|
||||
unsigned char interruptEndpoint;
|
||||
unsigned char interfaceNum;
|
||||
bool i2cCancelEvent;
|
||||
bool spiCancelEvent;
|
||||
bool uartCancelEvent;
|
||||
bool rtsValue;
|
||||
bool dtrValue;
|
||||
unsigned short numEndpoints;
|
||||
CY_FLOW_CONTROL_MODES uartFlowControlMode;
|
||||
struct libusb_transfer *spiTransfer;
|
||||
struct libusb_transfer *uartTransfer;
|
||||
libusb_device_handle *devHandle;
|
||||
pthread_t spiThread;
|
||||
bool spiThreadRunning;
|
||||
pthread_t uartThread;
|
||||
bool uartThreadRunning;
|
||||
#pragma pack()
|
||||
pthread_mutex_t readLock;
|
||||
pthread_mutex_t writeLock;
|
||||
pthread_mutex_t notificationLock;
|
||||
#pragma pack(1)
|
||||
CY_DEVICE_TYPE deviceType;
|
||||
#pragma pack()
|
||||
|
||||
}CY_DEVICE,*PCY_DEVICE;
|
||||
|
||||
CY_RETURN_STATUS CyResetPipe (CY_HANDLE handl, UINT8);
|
||||
|
||||
#define CY_DEBUG_PRINT_INFO(...) //User need to enable this
|
||||
#define CY_DEBUG_PRINT_ERROR(...) //printf
|
||||
|
||||
#define DUMP_DATA 1
|
||||
#ifdef DUMP_DATA
|
||||
#define CY_DUMP_DATA(INPUT,LEN)\
|
||||
{\
|
||||
int i = 0, len = LEN;\
|
||||
while ((len)) {\
|
||||
printf ("%x ", (INPUT)[i++]);\
|
||||
len--;\
|
||||
}\
|
||||
printf ("\n");\
|
||||
}
|
||||
#else
|
||||
#define CY_DUMP_DATA (INPUT, LEN) do { }while (0);
|
||||
#endif
|
||||
|
||||
#define CY_USB_SERIAL_TIMEOUT 5000
|
||||
#define CY_EVENT_NOTIFICATION_TIMEOUT 0 //This will make the transfer infinite
|
||||
|
||||
#define CY_VENDOR_REQUEST_DEVICE_TO_HOST 0xC0
|
||||
#define CY_VENDOR_REQUEST_HOST_TO_DEVICE 0x40
|
||||
|
||||
#define CY_CLASS_INTERFACE_REQUEST_DEVICE_TO_HOST 0XA1
|
||||
#define CY_CLASS_INTERFACE_REQUEST_HOST_TO_DEVICE 0x21
|
||||
|
||||
//I2C related macros
|
||||
#define CY_SCB_INDEX_POS 15
|
||||
#define CY_I2C_CONFIG_LENGTH 16
|
||||
#define CY_I2C_WRITE_COMMAND_POS 3
|
||||
#define CY_I2C_WRITE_COMMAND_LEN_POS 4
|
||||
#define CY_I2C_GET_STATUS_LEN 3
|
||||
#define CY_I2C_MODE_WRITE 1
|
||||
#define CY_I2C_MODE_READ 0
|
||||
#define CY_I2C_ERROR_BIT (1)
|
||||
#define CY_I2C_ARBITRATION_ERROR_BIT (1 << 1)
|
||||
#define CY_I2C_NAK_ERROR_BIT (1 << 2)
|
||||
#define CY_I2C_BUS_ERROR_BIT (1 << 3)
|
||||
#define CY_I2C_STOP_BIT_ERROR (1 << 4)
|
||||
#define CY_I2C_BUS_BUSY_ERROR (1 << 5)
|
||||
#define CY_I2C_ENABLE_PRECISE_TIMING 1
|
||||
#define CY_I2C_EVENT_NOTIFICATION_LEN 3
|
||||
|
||||
//SPI related Macros
|
||||
#define CY_SPI_CONFIG_LEN 16
|
||||
#define CY_SPI_EVENT_NOTIFICATION_LEN 2
|
||||
#define CY_SPI_READ_BIT (1)
|
||||
#define CY_SPI_WRITE_BIT (1 << 1)
|
||||
#define CY_SPI_SCB_INDEX_BIT (1 << 15)
|
||||
#define CY_SPI_GET_STATUS_LEN 4
|
||||
#define CY_SPI_UNDERFLOW_ERROR (1)
|
||||
#define CY_SPI_BUS_ERROR (1 << 1)
|
||||
|
||||
//Vendor UART related macros
|
||||
#define CY_UART_SET_FLOW_CONTROL_CMD 0x60
|
||||
#define CY_UART_SEND_BREAK_CMD 0x17
|
||||
#define CY_UART_CONFIG_LEN 16
|
||||
#define CY_SET_LINE_CONTROL_STATE_CMD 0x22
|
||||
#define CY_UART_EVENT_NOTIFICATION_LEN 10
|
||||
#define CY_UART_SERIAL_STATE_CARRIER_DETECT 1
|
||||
#define CY_UART_SERIAL_STATE_TRANSMISSION_CARRIER (1 << 1)
|
||||
#define CY_UART_SERIAL_STATE_BREAK_DETECTION (1<< 2)
|
||||
#define CY_UART_SERIAL_STATE_RING_SIGNAL_DETECTION (1 << 3)
|
||||
#define CY_UART_SERIAL_STATE_FRAMING_ERROR (1 << 4)
|
||||
#define CY_UART_SERIAL_STATE_PARITY_ERROR (1 << 5)
|
||||
#define CY_UART_SERIAL_STATUE_OVERRUN (1 << 6)
|
||||
|
||||
//Bootloader related macros
|
||||
#define CY_BOOT_CONFIG_SIZE 64
|
||||
#define CY_DEVICE_CONFIG_SIZE 512
|
||||
#define CY_FIRMWARE_BREAKUP_SIZE 4096
|
||||
#define CY_GET_SILICON_ID_LEN 4
|
||||
#define CY_GET_FIRMWARE_VERSION_LEN 8
|
||||
#define CY_GET_SIGNATURE_LEN 4
|
||||
|
||||
//JTAG related Macros
|
||||
#define CY_JTAG_OUT_EP 0x04
|
||||
#define CY_JTAG_IN_EP 0x85
|
||||
|
||||
//GPIO related Macros
|
||||
#define CY_GPIO_GET_LEN 2
|
||||
#define CY_GPIO_SET_LEN 1
|
||||
|
||||
//PHDC related macros
|
||||
#define CY_PHDC_SET_FEATURE 0X03
|
||||
#define CY_PHDC_SET_FEATURE_WVALUE 0x0101
|
||||
#define CY_PHDC_CLR_FEATURE 0X01
|
||||
#define CY_PHDC_CLR_FEATURE_WVALUE 0x1
|
||||
#define CY_PHDC_GET_DATA_STATUS 0x00
|
||||
#define CY_PHDC_GET_STATUS_LEN 2
|
||||
|
||||
typedef enum CY_VENDOR_CMDS
|
||||
{
|
||||
CY_GET_VERSION_CMD = 0xB0, /**< Get the version of the boot-loader.
|
||||
* value = 0, index = 0, length = 4;
|
||||
* data_in = 32 bit version.
|
||||
*/
|
||||
CY_GET_SIGNATURE_CMD = 0xBD, /**< Get the signature of the firmware
|
||||
* It is suppose to be 'CYUS' for normal firmware
|
||||
* and 'CYBL' for Bootloader.
|
||||
*/
|
||||
CY_UART_GET_CONFIG_CMD = 0xC0, /**< Retreive the 16 byte UART configuration information.
|
||||
* MS bit of value indicates the SCB index.
|
||||
* length = 16, data_in = 16 byte configuration.
|
||||
*/
|
||||
CY_UART_SET_CONFIG_CMD, /**< Update the 16 byte UART configuration information.
|
||||
* MS bit of value indicates the SCB index.
|
||||
* length = 16, data_out = 16 byte configuration information.
|
||||
*/
|
||||
CY_SPI_GET_CONFIG_CMD, /**< Retreive the 16 byte SPI configuration information.
|
||||
* MS bit of value indicates the SCB index.
|
||||
* length = 16, data_in = 16 byte configuration.
|
||||
*/
|
||||
CY_SPI_SET_CONFIG_CMD, /**< Update the 16 byte SPI configuration information.
|
||||
* MS bit of value indicates the SCB index.
|
||||
* length = 16, data_out = 16 byte configuration information.
|
||||
*/
|
||||
CY_I2C_GET_CONFIG_CMD, /**< Retreive the 16 byte I2C configuration information.
|
||||
* MS bit of value indicates the SCB index.
|
||||
* length = 16, data_in = 16 byte configuration.
|
||||
*/
|
||||
CY_I2C_SET_CONFIG_CMD = 0xC5, /**< Update the 16 byte I2C configuration information.
|
||||
* MS bit of value indicates the SCB index.
|
||||
* length = 16, data_out = 16 byte configuration information.
|
||||
*/
|
||||
CY_I2C_WRITE_CMD, /**< Perform I2C write operation.
|
||||
* value = bit0 - start, bit1 - stop, bit3 - start on idle,
|
||||
* bits[14:8] - slave address, bit15 - scbIndex. length = 0. The
|
||||
* data is provided over the bulk endpoints.
|
||||
*/
|
||||
CY_I2C_READ_CMD, /**< Perform I2C read operation.
|
||||
* value = bit0 - start, bit1 - stop, bit2 - Nak last byte,
|
||||
* bit3 - start on idle, bits[14:8] - slave address, bit15 - scbIndex,
|
||||
* length = 0. The data is provided over the bulk endpoints.
|
||||
*/
|
||||
CY_I2C_GET_STATUS_CMD, /**< Retreive the I2C bus status.
|
||||
* value = bit0 - 0: TX 1: RX, bit15 - scbIndex, length = 3,
|
||||
* data_in = byte0: bit0 - flag, bit1 - bus_state, bit2 - SDA state,
|
||||
* bit3 - TX underflow, bit4 - arbitration error, bit5 - NAK
|
||||
* bit6 - bus error,
|
||||
* byte[2:1] Data count remaining.
|
||||
*/
|
||||
CY_I2C_RESET_CMD, /**< The command cleans up the I2C state machine and frees the bus.
|
||||
* value = bit0 - 0: TX path, 1: RX path; bit15 - scbIndex,
|
||||
* length = 0.
|
||||
*/
|
||||
CY_SPI_READ_WRITE_CMD = 0xCA, /**< The command starts a read / write operation at SPI.
|
||||
* value = bit 0 - RX enable, bit 1 - TX enable, bit 15 - scbIndex;
|
||||
* index = length of transfer.
|
||||
*/
|
||||
CY_SPI_RESET_CMD, /**< The command resets the SPI pipes and allows it to receive new
|
||||
* request.
|
||||
* value = bit 15 - scbIndex
|
||||
*/
|
||||
CY_SPI_GET_STATUS_CMD, /**< The command returns the current transfer status. The count will match
|
||||
* the TX pipe status at SPI end. For completion of read, read all data
|
||||
* at the USB end signifies the end of transfer.
|
||||
* value = bit 15 - scbIndex
|
||||
*/
|
||||
CY_JTAG_ENABLE_CMD = 0xD0, /**< Enable JTAG module */
|
||||
CY_JTAG_DISABLE_CMD, /**< Disable JTAG module */
|
||||
CY_JTAG_READ_CMD, /**< JTAG read vendor command */
|
||||
CY_JTAG_WRITE_CMD, /**< JTAG write vendor command */
|
||||
CY_GPIO_GET_CONFIG_CMD = 0xD8, /**< Get the GPIO configuration */
|
||||
CY_GPIO_SET_CONFIG_CMD, /**< Set the GPIO configuration */
|
||||
CY_GPIO_GET_VALUE_CMD, /**< Get GPIO value */
|
||||
CY_GPIO_SET_VALUE_CMD, /**< Set the GPIO value */
|
||||
CY_PROG_USER_FLASH_CMD = 0xE0, /**< Program user flash area. The total space available is 512 bytes.
|
||||
* This can be accessed by the user from USB. The flash area
|
||||
* address offset is from 0x0000 to 0x00200 and can be written to
|
||||
* page wise (128 byte).
|
||||
*/
|
||||
CY_READ_USER_FLASH_CMD, /**< Read user flash area. The total space available is 512 bytes.
|
||||
* This can be accessed by the user from USB. The flash area
|
||||
* address offset is from 0x0000 to 0x00200 and can be written to
|
||||
* page wise (128 byte).
|
||||
*/
|
||||
CY_DEVICE_RESET_CMD = 0xE3, /**< Performs a device reset from firmware */
|
||||
|
||||
} CY_VENDOR_CMDS;
|
||||
|
||||
extern libusb_context *glContext;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user