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 2 and 3

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

Rev 2 Rev 3
Line 62... Line 62...
...]
...]
*/
*/
#define[POST_FPGA_CONFIG][]
#define[POST_FPGA_CONFIG][]
 
 
 
 
 
 
/*
/*
  Add a vedor request for endpoint 0,
  Add a vedor request for endpoint 0,
 
 
   Usage:
   Usage:
     ADD_EP0_VENDOR_REQUEST((<request number>,,<code executed after setup package received>,,<code executed after data package received>''));
     ADD_EP0_VENDOR_REQUEST((<request number>,,<code executed after setup package received>,,<code executed after data package received>''));
Line 107... Line 108...
case $0:
case $0:
    $2
    $2
    break;
    break;
]]
]]
 
 
 
/*
 
  This macro generates a EP0 stall and aborts the current loop. Stalls are usually used to indicate errors.
 
*/
 
#define[EP0_STALL;][{
 
    EP0CS |= 0x01;      // set stall
 
    ep0_payload_remaining = 0;
 
    break;
 
}]
 
 
 
 
/*
/*
   Endoint 2,4,5,8 configuration:
   Endoint 2,4,5,8 configuration:
 
 
   EP_CONFIG(<EP number>,<interface>,<type>,<direction>,<size>,<buffers>)
   EP_CONFIG(<EP number>,<interface>,<type>,<direction>,<size>,<buffers>)
Line 308... Line 318...
   This macro enables the Flash interface, if available
   This macro enables the Flash interface, if available
   Usage: ENABLE_FLASH;
   Usage: ENABLE_FLASH;
*/
*/
#define[ENABLE_FLASH;][#define[FLASH_ENABLED][1]]
#define[ENABLE_FLASH;][#define[FLASH_ENABLED][1]]
 
 
 
/*
 
   This macro enables the FPGA configuration using a bitstream from the Flash memory
 
   Usage: ENABLE_FLASH_BITSTREAM;
 
*/
 
#define[ENABLE_FLASH_BITSTREAM;][#define[FLASH_BITSTREAM_ENABLED][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.