USB_Config_H.h
上传用户:gxz1972
上传日期:2019-09-13
资源大小:323k
文件大小:4k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // USB_Config.h
  3. //-----------------------------------------------------------------------------
  4. // Copyright 2007 Vson Technology, Inc.
  5. // http://www.usbmcu.com
  6. //
  7. // Program Description:
  8. //
  9. //
  10. //
  11. //
  12. //
  13. // MCU:            C8051F347
  14. // Tool chain:     Keil C51 7.50 / Keil EVAL C51
  15. //                 Silicon Laboratories IDE version 2.6
  16. // Command Line:   
  17. // Project Name:   TR1000
  18. //
  19. //
  20. // Release 1.0
  21. //    -All changes by Brin Cai
  22. //    -24 JUL 2007
  23. //
  24. //
  25. #ifndef  _USB_CONFIG_H_
  26. #define  _USB_CONFIG_H_  //在#ifndef 之后定义 对#ifndef 没有任何作用
  27. //-----------------------------------------------------------------------------
  28. // Global Constants
  29. //-----------------------------------------------------------------------------
  30. //--------------------------
  31. // Begin device details
  32. //--------------------------
  33. // These constants should be modified to match the current implementation
  34. //
  35. #define NUM_CFG 1                         // Total number of defined
  36.                                           // configurations
  37. #define MAX_IF_DSC 1                      // Maximum number of interface
  38.                                           // descriptors for any defined
  39.                                           // configuration
  40. #define MAX_IF 1                          // Maximum number of interfaces
  41.                                           // for any defined configuration
  42. #define CFG1_IF_DSC 1                     // Total number of interface
  43.                                           // descriptors for configuration1
  44. #define CFG1_EP_DSC 2                     // Total number of endpoint
  45.                                           // descriptors for configuration1
  46. #define REMOTE_WAKEUP_SUPPORT OFF         // This should be "ON" if the
  47.                                           // device is capable of remote
  48.                                           // wakeup (this does not mean that
  49.                                           // remote wakeup is enabled)
  50.                                           // Otherwise "OFF"
  51. #define SELF_POWERED_SUPPORT OFF          // This should be "ON" if the
  52.                                           // device is self-powered;
  53.                                           // "OFF" if the device
  54.                                           // is bus-powered.
  55. #define SUSPEND_ENABLE OFF                // This should be "ON" if the
  56.                                           // device should respond to suspend
  57.                                           // signaling on the bus.
  58.                                           // Otherwise "OFF"
  59. #define ISO_UPDATE_ENABLE OFF             // This should be "ON" if the ISO
  60.                                           // Update feature should be turned
  61.                                           // on for all ISO endpoints. It
  62.                                           // should be "OFF" if the ISO
  63.                                           // update feature should not be
  64.                                           // enabled, or if no ISO endpoints
  65.                                           // will be configured
  66. // Endpoint buffer / packet sizes
  67. // These constants should match the desired maximum packet size for each
  68. // endpoint. Note that the size must not exceed the size of the FIFO
  69. // allocated to the target endpoint. This size will depend on the configuration
  70. // of the endpoint FIFO (split mode and double buffer options), as described
  71. // in the device datasheet.
  72. #define EP0_MAXP       64                 // Endpoint0 maximum packet size
  73. #define EP1_IN_MAXP    64                 // Endpoint1 IN maximum packet size
  74. #define EP2_IN_MAXP    128                // Endpoint2 IN maximum packet size
  75. #define EP3_IN_MAXP    256                // Endpoint3 IN maximum packet size
  76. #define EP1_OUT_MAXP   128                // Endpoint1 OUT maximum packet size
  77. #define EP2_OUT_MAXP   64                 // Endpoint2 OUT maximum packet size
  78. #define EP3_OUT_MAXP   256                // Endpoint3 OUT maximum packet size
  79. //--------------------------
  80. // End device details
  81. //--------------------------
  82. #endif                                 // F34x_USB_CONFIG_H
  83. //-----------------------------------------------------------------------------
  84. // End Of File
  85. //-----------------------------------------------------------------------------