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

Subversion Repositories usb_fpga_1_2

[/] [usb_fpga_1_2/] [trunk/] [include/] [ztex-conf.h] - Diff between revs 5 and 8

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

Rev 5 Rev 8
Line 1... Line 1...
/*!
/*!
   ZTEX Firmware Kit for EZ-USB Microcontrollers
   ZTEX Firmware Kit for EZ-USB FX2 Microcontrollers
   Copyright (C) 2009-2010 ZTEX e.K.
   Copyright (C) 2009-2011 ZTEX GmbH.
   http://www.ztex.de
   http://www.ztex.de
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License version 3 as
   it under the terms of the GNU General Public License version 3 as
   published by the Free Software Foundation.
   published by the Free Software Foundation.
Line 24... Line 24...
#define[ZTEX_CONF_H]
#define[ZTEX_CONF_H]
 
 
/*
/*
   Don't expand macros in comments
   Don't expand macros in comments
*/
*/
 
#disablelineinfo
#define[//][
#define[//][
][#noexpand[!dnapxeon!]//$0!dnapxeon!
][#noexpand[!dnapxeon!]//$0!dnapxeon!
]
]
 
#disablelineinfo
#define[/*][*/][#noexpand[!dnapxeon!]/*$0*/!dnapxeon!]
#define[/*][*/][#noexpand[!dnapxeon!]/*$0*/!dnapxeon!]
 
 
/*
/*
   This macro defines the USB Vendor ID and USB Product ID  (not the product ID
   This macro defines the USB Vendor ID and USB Product ID  (not the product ID
   from the ZTEX descriptor). The Vendor ID must be purchased from the USB-IF
   from the ZTEX descriptor). The Vendor ID must be purchased from the USB-IF
Line 373... Line 375...
#define[PRODUCT_ID_3][$3]
#define[PRODUCT_ID_3][$3]
#define[FWVER][$4]
#define[FWVER][$4]
#define[PRODUCT_IS][UFM-1_11]
#define[PRODUCT_IS][UFM-1_11]
#define[PRODUCT_STRING]["USB-FPGA Module 1.11"]]
#define[PRODUCT_STRING]["USB-FPGA Module 1.11"]]
 
 
 
/*
 
   Identify as ZTEX USB FPGA Module 1.15
 
   Usage: IDENTITY_UFM_1_10(<PRODUCT_ID_0>.<PRODUCT_ID_1><PRODUCT_ID_2>.<PRODUCT_ID_3>,<FW_VERSION>);
 
*/
 
#define[IDENTITY_UFM_1_15(][.$1.$2.$3,$4);][#define[PRODUCT_ID_0][$0]
 
#define[PRODUCT_ID_1][$1]
 
#define[PRODUCT_ID_2][$2]
 
#define[PRODUCT_ID_3][$3]
 
#define[FWVER][$4]
 
#define[PRODUCT_IS][UFM-1_15]
 
#define[PRODUCT_STRING]["USB-FPGA Module 1.15"]]
 
 
 
 
/*
/*
   Identify as ZTEX USB Module 1.0
   Identify as ZTEX USB Module 1.0
   Usage: IDENTITY_UM_1_0(<PRODUCT_ID_0>.<PRODUCT_ID_1><PRODUCT_ID_2>.<PRODUCT_ID_3>,<FW_VERSION>);
   Usage: IDENTITY_UM_1_0(<PRODUCT_ID_0>.<PRODUCT_ID_1><PRODUCT_ID_2>.<PRODUCT_ID_3>,<FW_VERSION>);
*/
*/
Line 456... Line 470...
#define[DEBUG_STACK_SIZE][$0]
#define[DEBUG_STACK_SIZE][$0]
#define[DEBUG_MSG_SIZE][$1]]
#define[DEBUG_MSG_SIZE][$1]]
 
 
/*
/*
   This macro disables XMEGA support, if available
   This macro disables XMEGA support, if available
   Usage: ENABLE_FLASH;
   Usage: XMEGA_DISABLE;
 
*/
 
#define[XMEGA_DISABLE;][#define[XMEGA_DISABLED][1]]
 
 
 
/*
 
   Enables support for ZTEX Experimantal Board 1.10
 
   Usage: EXTENSION_EXP_1_10;
 
*/
 
#define[EXTENSION_EXP_1_10;][#define[EXP_1_10_ENABLED][1]]
 
 
 
/*
 
   Enables high speed FPGA configuration for ZTEX USB-FPGA Module 1.15 and 1GbE-USB-FPGA Module 1.20
 
   Usage: ENABLE_HS_FPGA_CONF(<ENDPOINT>);
 
        <endpoint>      endpoint which shall be used (any bulk output can be used)
 
*/
 
#define[ENABLE_HS_FPGA_CONF(][);][
 
#ifeq[$0][2]
 
#elifeq[$0][4]
 
#elifeq[$0][6]
 
#elifneq[$0][8]
 
#error[ENABLE_HS_FPGA_CONF: Invalid Endpoint. Valid values are: `2', `4', `6', `8'.]
 
#endif
 
#define[HS_FPGA_CONF_EP][$0]]
 
 
 
/*
 
   This macro disables MAC EEPROM support, if available
 
   Usage: MAC_EEPROM_DISABLE;
*/
*/
#define[XMEGA_DISABLED;][#define[XMEGA_DISABLED][1]]
#define[DISABLE_MAC_EEPROM;][#define[EEPROM_MAC_DISABLED][1]]
 
 
#endif
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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