Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ## Cypress USB 3.0 Platform header file (cyfxbulklpautomanytoone.h)
- ## ===========================
- ##
- ## Copyright Cypress Semiconductor Corporation, 2010-2011,
- ## All Rights Reserved
- ## UNPUBLISHED, LICENSED SOFTWARE.
- ##
- ## CONFIDENTIAL AND PROPRIETARY INFORMATION
- ## WHICH IS THE PROPERTY OF CYPRESS.
- ##
- ## Use of this file is governed
- ## by the license agreement included in the file
- ##
- ## <install>/license/license.txt
- ##
- ## where <install> is the Cypress software
- ## installation root directory path.
- ##
- ## ===========================
- */
- /* This file contains the constants used by the Bulk Loop application example */
- #define _INCLUDED_CYFXUSBDEBUG_H_
- #ifndef _INCLUDED_CYFXBULKLPAUTOMANYTOONE_H_
- #define _INCLUDED_CYFXBULKLPAUTOMANYTOONE_H_
- #include "cyu3types.h"
- #include "cyu3usbconst.h"
- #include "cyu3externcstart.h"
- #define CY_FX_BULKLP_DMA_BUF_COUNT (8) /* Bulk loop channel buffer count */
- #define CY_FX_BULKLP_DMA_TX_SIZE (0) /* DMA transfer size is set to infinite */
- #define CY_FX_BULKLP_THREAD_STACK (0x1000) /* Bulk loop application thread stack size */
- #define CY_FX_BULKLP_THREAD_PRIORITY (8) /* Bulk loop application thread priority */
- /* Endpoint and socket definitions for the Bulkloop application */
- /* To change the producer and consumer EP enter the appropriate EP numbers for the #defines.
- * In the case of IN endpoints enter EP number along with the direction bit.
- * For eg. EP 6 IN endpoint is 0x86
- * and EP 6 OUT endpoint is 0x06.
- * To change sockets mention the appropriate socket number in the #defines. */
- /* Note: For USB 2.0 the endpoints and corresponding sockets are one-to-one mapped
- i.e. EP 1 is mapped to UIB socket 1 and EP 2 to socket 2 so on */
- #define CY_FX_EP_PRODUCER_1 0x01 /* EP 1 OUT */
- #define CY_FX_EP_PRODUCER_2 0x02 /* EP 2 OUT */
- #define CY_FX_EP_PRODUCER_3 0x03 /* EP 3 OUT */
- #define CY_FX_EP_CONSUMER 0x81 /* EP 1 IN */
- #define CY_FX_EP_DEBUG 0x82 /* EP 2 IN */
- #define CY_FX_EP_PRODUCER_1_SOCKET CY_U3P_UIB_SOCKET_PROD_1 /* Socket 1 is EP1 OUT */
- #define CY_FX_EP_PRODUCER_2_SOCKET CY_U3P_UIB_SOCKET_PROD_2 /* Socket 2 is EP2 OUT */
- #define CY_FX_EP_PRODUCER_3_SOCKET CY_U3P_UIB_SOCKET_PROD_3 /* Socket 3 is EP3 OUT */
- #define CY_FX_EP_CONSUMER_SOCKET CY_U3P_UIB_SOCKET_CONS_1 /* Socket 1 is EP1 IN */
- #define CY_FX_EP_DEBUG_SOCKET CY_U3P_UIB_SOCKET_CONS_2 /* Socket 2 is consumer */
- /* Extern definitions for the USB Descriptors */
- extern const uint8_t CyFxUSB20DeviceDscr[];
- extern const uint8_t CyFxUSB30DeviceDscr[];
- extern const uint8_t CyFxUSBDeviceQualDscr[];
- extern const uint8_t CyFxUSBFSConfigDscr[];
- extern const uint8_t CyFxUSBHSConfigDscr[];
- extern const uint8_t CyFxUSBBOSDscr[];
- extern const uint8_t CyFxUSBSSConfigDscr[];
- extern const uint8_t CyFxUSBStringLangIDDscr[];
- extern const uint8_t CyFxUSBManufactureDscr[];
- extern const uint8_t CyFxUSBProductDscr[];
- #include "cyu3externcend.h"
- #endif /* _INCLUDED_CYFXBULKLPAUTOMANYTOONE_H_ */
- /*[]*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement