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

Subversion Repositories usb_fpga_1_15

[/] [usb_fpga_1_15/] [trunk/] [include/] [ztex-fpga5.h] - Diff between revs 2 and 3

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

Rev 2 Rev 3
Line 320... Line 320...
    GPIFABORT = 0xFF;                           // abort pendig 
    GPIFABORT = 0xFF;                           // abort pendig 
 
 
    init_cpld_fpga_configuration();
    init_cpld_fpga_configuration();
,,));;
,,));;
 
 
/* *********************************************************************
 
   ***** select_fpga ***************************************************
 
   ********************************************************************* */
 
void select_fpga ( BYTE fn )
 
{
 
    prev_select_num = select_num;
 
    select_num = fn & 3;
 
    select_mask = 0x10 << fn;
 
    config_mask_h = select_mask;
 
 
 
    IOE = 0x0f;
 
    {
 
        PRE_FPGA_SELECT
 
    }
 
    IOE = select_mask | 0x0f;
 
}
 
 
 
 
 
/* *********************************************************************
/* *********************************************************************
   ***** EP0 vendor command 0x35 ***************************************
   ***** EP0 vendor command 0x35 ***************************************
   ********************************************************************* */
   ********************************************************************* */
ADD_EP0_VENDOR_COMMAND((0x35,,          // finish fpga configuration
ADD_EP0_VENDOR_COMMAND((0x35,,          // finish fpga configuration
Line 356... Line 339...
 
 
#endif  // HS_FPGA_CONF_EP
#endif  // HS_FPGA_CONF_EP
 
 
 
 
/* *********************************************************************
/* *********************************************************************
 
   ***** select_fpga ***************************************************
 
   ********************************************************************* */
 
void select_fpga ( BYTE fn )
 
{
 
    prev_select_num = select_num;
 
    select_num = fn & 3;
 
    select_mask = 0x10 << fn;
 
    config_mask_h = select_mask;
 
 
 
    IOE = 0x0f;
 
    {
 
        PRE_FPGA_SELECT
 
    }
 
    IOE = select_mask | 0x0f;
 
}
 
 
 
 
 
/* *********************************************************************
   ***** EP0 vendor request 0x50 ***************************************
   ***** EP0 vendor request 0x50 ***************************************
   ********************************************************************* */
   ********************************************************************* */
ADD_EP0_VENDOR_REQUEST((0x50,,          // Return multi-FPGA information
ADD_EP0_VENDOR_REQUEST((0x50,,          // Return multi-FPGA information
    EP0BUF[0] = 3;                       // 1 FPGA's
    EP0BUF[0] = 3;                       // 1 FPGA's
    EP0BUF[1] = select_num;             // select methods: any combination
    EP0BUF[1] = select_num;             // select methods: any combination

powered by: WebSVN 2.1.0

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