Advertisement
Guest User

cyfxbulklpautomanytoone.h

a guest
May 10th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. /*
  2. ## Cypress USB 3.0 Platform header file (cyfxbulklpautomanytoone.h)
  3. ## ===========================
  4. ##
  5. ## Copyright Cypress Semiconductor Corporation, 2010-2011,
  6. ## All Rights Reserved
  7. ## UNPUBLISHED, LICENSED SOFTWARE.
  8. ##
  9. ## CONFIDENTIAL AND PROPRIETARY INFORMATION
  10. ## WHICH IS THE PROPERTY OF CYPRESS.
  11. ##
  12. ## Use of this file is governed
  13. ## by the license agreement included in the file
  14. ##
  15. ## <install>/license/license.txt
  16. ##
  17. ## where <install> is the Cypress software
  18. ## installation root directory path.
  19. ##
  20. ## ===========================
  21. */
  22.  
  23. /* This file contains the constants used by the Bulk Loop application example */
  24.  
  25.  
  26. #define _INCLUDED_CYFXUSBDEBUG_H_
  27. #ifndef _INCLUDED_CYFXBULKLPAUTOMANYTOONE_H_
  28. #define _INCLUDED_CYFXBULKLPAUTOMANYTOONE_H_
  29.  
  30. #include "cyu3types.h"
  31. #include "cyu3usbconst.h"
  32. #include "cyu3externcstart.h"
  33.  
  34. #define CY_FX_BULKLP_DMA_BUF_COUNT (8) /* Bulk loop channel buffer count */
  35. #define CY_FX_BULKLP_DMA_TX_SIZE (0) /* DMA transfer size is set to infinite */
  36. #define CY_FX_BULKLP_THREAD_STACK (0x1000) /* Bulk loop application thread stack size */
  37. #define CY_FX_BULKLP_THREAD_PRIORITY (8) /* Bulk loop application thread priority */
  38.  
  39. /* Endpoint and socket definitions for the Bulkloop application */
  40.  
  41. /* To change the producer and consumer EP enter the appropriate EP numbers for the #defines.
  42. * In the case of IN endpoints enter EP number along with the direction bit.
  43. * For eg. EP 6 IN endpoint is 0x86
  44. * and EP 6 OUT endpoint is 0x06.
  45. * To change sockets mention the appropriate socket number in the #defines. */
  46.  
  47. /* Note: For USB 2.0 the endpoints and corresponding sockets are one-to-one mapped
  48. i.e. EP 1 is mapped to UIB socket 1 and EP 2 to socket 2 so on */
  49.  
  50. #define CY_FX_EP_PRODUCER_1 0x01 /* EP 1 OUT */
  51. #define CY_FX_EP_PRODUCER_2 0x02 /* EP 2 OUT */
  52. #define CY_FX_EP_PRODUCER_3 0x03 /* EP 3 OUT */
  53. #define CY_FX_EP_CONSUMER 0x81 /* EP 1 IN */
  54. #define CY_FX_EP_DEBUG 0x82 /* EP 2 IN */
  55.  
  56. #define CY_FX_EP_PRODUCER_1_SOCKET CY_U3P_UIB_SOCKET_PROD_1 /* Socket 1 is EP1 OUT */
  57. #define CY_FX_EP_PRODUCER_2_SOCKET CY_U3P_UIB_SOCKET_PROD_2 /* Socket 2 is EP2 OUT */
  58. #define CY_FX_EP_PRODUCER_3_SOCKET CY_U3P_UIB_SOCKET_PROD_3 /* Socket 3 is EP3 OUT */
  59. #define CY_FX_EP_CONSUMER_SOCKET CY_U3P_UIB_SOCKET_CONS_1 /* Socket 1 is EP1 IN */
  60. #define CY_FX_EP_DEBUG_SOCKET CY_U3P_UIB_SOCKET_CONS_2 /* Socket 2 is consumer */
  61.  
  62. /* Extern definitions for the USB Descriptors */
  63. extern const uint8_t CyFxUSB20DeviceDscr[];
  64. extern const uint8_t CyFxUSB30DeviceDscr[];
  65. extern const uint8_t CyFxUSBDeviceQualDscr[];
  66. extern const uint8_t CyFxUSBFSConfigDscr[];
  67. extern const uint8_t CyFxUSBHSConfigDscr[];
  68. extern const uint8_t CyFxUSBBOSDscr[];
  69. extern const uint8_t CyFxUSBSSConfigDscr[];
  70. extern const uint8_t CyFxUSBStringLangIDDscr[];
  71. extern const uint8_t CyFxUSBManufactureDscr[];
  72. extern const uint8_t CyFxUSBProductDscr[];
  73.  
  74. #include "cyu3externcend.h"
  75.  
  76. #endif /* _INCLUDED_CYFXBULKLPAUTOMANYTOONE_H_ */
  77.  
  78. /*[]*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement