You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.2 KiB
60 lines
2.2 KiB
/*!
|
|
* \file ftdi_common.c
|
|
*
|
|
* \author FTDI
|
|
* \date 20110321
|
|
*
|
|
* Copyright ? 2000-2014 Future Technology Devices International Limited
|
|
*
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED ``AS IS'' AND ANY EXPRESS
|
|
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
|
* THE POSSIBILITY OF SUCH DAMAGE.
|
|
*
|
|
*
|
|
* Project: libMPSSE
|
|
* Module: Common
|
|
*
|
|
* Rivision History:
|
|
* 0.1 - initial version
|
|
*/
|
|
|
|
|
|
/******************************************************************************/
|
|
/* Include files */
|
|
/******************************************************************************/
|
|
#include "ftdi_infra.h" /*Common prrtable infrastructure(datatypes, libraries, etc)*/
|
|
#include "ftdi_common.h" /*Common across I2C, SPI, JTAG modules*/
|
|
|
|
|
|
/******************************************************************************/
|
|
/* Macro defines */
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
/* Local function declarations */
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
/* Global variables */
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
/* Public function definations */
|
|
/******************************************************************************/
|
|
|
|
|