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.h] - Diff between revs 4 and 5

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

Rev 4 Rev 5
Line 28... Line 28...
/* *********************************************************************
/* *********************************************************************
   ***** include the basic functions ***********************************
   ***** include the basic functions ***********************************
   ********************************************************************* */
   ********************************************************************* */
#include[ztex-utils.h]
#include[ztex-utils.h]
 
 
 
 
/* *********************************************************************
/* *********************************************************************
   ***** EEPROM support and some I2c helper functions ******************
   ***** EEPROM support and some I2C helper functions ******************
   ********************************************************************* */
   ********************************************************************* */
#ifneq[EEPROM_DISABLED][1]
#ifneq[EEPROM_DISABLED][1]
#include[ztex-eeprom.h]
#include[ztex-eeprom.h]
#endif
#endif
 
 
Line 65... Line 64...
#define[MMC_BIT_DI][6]
#define[MMC_BIT_DI][6]
#define[MMC_BIT_DO][4]
#define[MMC_BIT_DO][4]
#define[MMC_BIT_CLK][5]
#define[MMC_BIT_CLK][5]
#include[ztex-flash1.h]
#include[ztex-flash1.h]
 
 
 
#elifeq[PRODUCT_IS][UM-1_0]
 
#define[MMC_PORT][C]
 
#define[MMC_BIT_CS][7]
 
#define[MMC_BIT_DI][6]
 
#define[MMC_BIT_DO][4]
 
#define[MMC_BIT_CLK][5]
 
#include[ztex-flash1.h]
 
 
#elifeq[PRODUCT_IS][UFM-1_10]
#elifeq[PRODUCT_IS][UFM-1_10]
#define[MMC_PORT][A]
#define[MMC_PORT][A]
#define[MMC__PORT_DO][D]
#define[MMC__PORT_DO][D]
#define[MMC_BIT_DO][0]
#define[MMC_BIT_DO][0]
#define[MMC_BIT_CS][5]
#define[MMC_BIT_CS][5]
Line 83... Line 90...
#define[MMC_BIT_CS][5]
#define[MMC_BIT_CS][5]
#define[MMC_BIT_DI][7]
#define[MMC_BIT_DI][7]
#define[MMC_BIT_CLK][6]
#define[MMC_BIT_CLK][6]
#include[ztex-flash1.h]
#include[ztex-flash1.h]
 
 
 
#elifeq[PRODUCT_IS][UXM-1_0]
 
#define[MMC_PORT][C]
 
#define[MMC_BIT_CS][7]
 
#define[MMC_BIT_DI][6]
 
#define[MMC_BIT_DO][4]
 
#define[MMC_BIT_CLK][5]
 
#include[ztex-flash1.h]
 
 
#else
#else
#warning[FLASH option is not supported by this product]
#warning[Flash memory access is not supported by this product]
#define[FLASH_ENABLED][0]
#define[FLASH_ENABLED][0]
#endif
#endif
#endif
#endif
 
 
/* *********************************************************************
/* *********************************************************************
Line 104... Line 119...
#include[ztex-fpga2.h]
#include[ztex-fpga2.h]
#elifeq[PRODUCT_IS][UFM-1_11]
#elifeq[PRODUCT_IS][UFM-1_11]
#include[ztex-fpga3.h]
#include[ztex-fpga3.h]
#endif
#endif
 
 
 
 
 
/* *********************************************************************
 
   ***** DEBUG helper functions ****************************************
 
   ********************************************************************* */
 
#ifeq[DEBUG_ENABLED][1]
 
#include[ztex-debug.h]
 
#endif
 
 
 
 
 
/* *********************************************************************
 
   ***** XMEGA support *************************************************
 
   ********************************************************************* */
 
#ifneq[XMEGA_DISABLED][1]
 
#ifeq[PRODUCT_IS][UXM-1_0]
 
#include[ztex-xmega.h]
 
#endif
 
#endif
 
 
 
 
/* *********************************************************************
/* *********************************************************************
   ***** define the descriptors and the interrupt routines *************
   ***** define the descriptors and the interrupt routines *************
   ********************************************************************* */
   ********************************************************************* */
#include[ztex-descriptors.h]
#include[ztex-descriptors.h]
#include[ztex-isr.h]
#include[ztex-isr.h]
Line 223... Line 257...
    flash_init();
    flash_init();
#endif
#endif
#ifeq[FLASH_BITSTREAM_ENABLED][1]
#ifeq[FLASH_BITSTREAM_ENABLED][1]
    fpga_configure_from_flash_init();
    fpga_configure_from_flash_init();
#endif
#endif
 
#ifeq[DEBUG_ENABLED][1]
 
    debug_init();
 
#endif
 
#ifeq[XMEGA_ENABLED][1]
 
//    xmega_init();
 
#endif
 
 
 
 
    USBCS |= bmBIT7 | bmBIT1;
    USBCS |= bmBIT7 | bmBIT1;
    wait(250);
    wait(250);
    USBCS &= ~0x08;
    USBCS &= ~0x08;
}
}

powered by: WebSVN 2.1.0

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