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
|