My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

usbcfg.h 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /*----------------------------------------------------------------------------
  2. * U S B - K e r n e l
  3. *----------------------------------------------------------------------------
  4. * Name: usbcfg.h
  5. * Purpose: USB Custom Configuration
  6. * Version: V1.20
  7. *----------------------------------------------------------------------------
  8. * This software is supplied "AS IS" without any warranties, express,
  9. * implied or statutory, including but not limited to the implied
  10. * warranties of fitness for purpose, satisfactory quality and
  11. * noninfringement. Keil extends you a royalty-free right to reproduce
  12. * and distribute executable files created using this software for use
  13. * on NXP Semiconductors LPC family microcontroller devices only. Nothing
  14. * else gives you the right to use this software.
  15. *
  16. * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
  17. *----------------------------------------------------------------------------
  18. * History:
  19. * V1.20 Added vendor specific support
  20. * V1.00 Initial Version
  21. *---------------------------------------------------------------------------*/
  22. #ifndef __USBCFG_H__
  23. #define __USBCFG_H__
  24. //*** <<< Use Configuration Wizard in Context Menu >>> ***
  25. /*
  26. // <h> USB Configuration
  27. // <o0> USB Power
  28. // <i> Default Power Setting
  29. // <0=> Bus-powered
  30. // <1=> Self-powered
  31. // <o1> Max Number of Interfaces <1-256>
  32. // <o2> Max Number of Endpoints <1-32>
  33. // <o3> Max Endpoint 0 Packet Size
  34. // <8=> 8 Bytes <16=> 16 Bytes <32=> 32 Bytes <64=> 64 Bytes
  35. // <e4> DMA Transfer
  36. // <i> Use DMA for selected Endpoints
  37. // <o5.0> Endpoint 0 Out
  38. // <o5.1> Endpoint 0 In
  39. // <o5.2> Endpoint 1 Out
  40. // <o5.3> Endpoint 1 In
  41. // <o5.4> Endpoint 2 Out
  42. // <o5.5> Endpoint 2 In
  43. // <o5.6> Endpoint 3 Out
  44. // <o5.7> Endpoint 3 In
  45. // <o5.8> Endpoint 4 Out
  46. // <o5.9> Endpoint 4 In
  47. // <o5.10> Endpoint 5 Out
  48. // <o5.11> Endpoint 5 In
  49. // <o5.12> Endpoint 6 Out
  50. // <o5.13> Endpoint 6 In
  51. // <o5.14> Endpoint 7 Out
  52. // <o5.15> Endpoint 7 In
  53. // <o5.16> Endpoint 8 Out
  54. // <o5.17> Endpoint 8 In
  55. // <o5.18> Endpoint 9 Out
  56. // <o5.19> Endpoint 9 In
  57. // <o5.20> Endpoint 10 Out
  58. // <o5.21> Endpoint 10 In
  59. // <o5.22> Endpoint 11 Out
  60. // <o5.23> Endpoint 11 In
  61. // <o5.24> Endpoint 12 Out
  62. // <o5.25> Endpoint 12 In
  63. // <o5.26> Endpoint 13 Out
  64. // <o5.27> Endpoint 13 In
  65. // <o5.28> Endpoint 14 Out
  66. // <o5.29> Endpoint 14 In
  67. // <o5.30> Endpoint 15 Out
  68. // <o5.31> Endpoint 15 In
  69. // </e>
  70. // </h>
  71. */
  72. #define USB_POWER 0
  73. #define USB_IF_NUM 4
  74. #define USB_EP_NUM 32
  75. #define USB_MAX_PACKET0 64
  76. #define USB_DMA 0
  77. #define USB_DMA_EP 0x00000000
  78. /*
  79. // <h> USB Event Handlers
  80. // <h> Device Events
  81. // <o0.0> Power Event
  82. // <o1.0> Reset Event
  83. // <o2.0> Suspend Event
  84. // <o3.0> Resume Event
  85. // <o4.0> Remote Wakeup Event
  86. // <o5.0> Start of Frame Event
  87. // <o6.0> Error Event
  88. // </h>
  89. // <h> Endpoint Events
  90. // <o7.0> Endpoint 0 Event
  91. // <o7.1> Endpoint 1 Event
  92. // <o7.2> Endpoint 2 Event
  93. // <o7.3> Endpoint 3 Event
  94. // <o7.4> Endpoint 4 Event
  95. // <o7.5> Endpoint 5 Event
  96. // <o7.6> Endpoint 6 Event
  97. // <o7.7> Endpoint 7 Event
  98. // <o7.8> Endpoint 8 Event
  99. // <o7.9> Endpoint 9 Event
  100. // <o7.10> Endpoint 10 Event
  101. // <o7.11> Endpoint 11 Event
  102. // <o7.12> Endpoint 12 Event
  103. // <o7.13> Endpoint 13 Event
  104. // <o7.14> Endpoint 14 Event
  105. // <o7.15> Endpoint 15 Event
  106. // </h>
  107. // <h> USB Core Events
  108. // <o8.0> Set Configuration Event
  109. // <o9.0> Set Interface Event
  110. // <o10.0> Set/Clear Feature Event
  111. // </h>
  112. // </h>
  113. */
  114. #define USB_POWER_EVENT 0
  115. #define USB_RESET_EVENT 1
  116. #define USB_SUSPEND_EVENT 0
  117. #define USB_RESUME_EVENT 0
  118. #define USB_WAKEUP_EVENT 0
  119. #define USB_SOF_EVENT 0
  120. #define USB_ERROR_EVENT 0
  121. #define USB_EP_EVENT 0x0027
  122. #define USB_CONFIGURE_EVENT 1
  123. #define USB_INTERFACE_EVENT 0
  124. #define USB_FEATURE_EVENT 0
  125. /*
  126. // <e0> USB Class Support
  127. // <i> enables USB Class specific Requests
  128. // <e1> Human Interface Device (HID)
  129. // <o2> Interface Number <0-255>
  130. // </e>
  131. // <e3> Mass Storage
  132. // <o4> Interface Number <0-255>
  133. // </e>
  134. // <e5> Audio Device
  135. // <o6> Control Interface Number <0-255>
  136. // <o7> Streaming Interface 1 Number <0-255>
  137. // <o8> Streaming Interface 2 Number <0-255>
  138. // </e>
  139. // <e9> Communication Device
  140. // <o10> Control Interface Number <0-255>
  141. // <o11> Bulk Interface Number <0-255>
  142. // <o12> Max Communication Device Buffer Size
  143. // <8=> 8 Bytes <16=> 16 Bytes <32=> 32 Bytes <64=> 64 Bytes
  144. // </e>
  145. // </e>
  146. */
  147. #define USB_CLASS 1
  148. #define USB_HID 0
  149. #define USB_HID_IF_NUM 0
  150. #define USB_MSC 1
  151. #define USB_MSC_IF_NUM 2
  152. #define USB_AUDIO 0
  153. #define USB_ADC_CIF_NUM 0
  154. #define USB_ADC_SIF1_NUM 1
  155. #define USB_ADC_SIF2_NUM 2
  156. #define USB_CDC 1
  157. #define USB_CDC_CIF_NUM 0
  158. #define USB_CDC_DIF_NUM 1
  159. #define USB_CDC_BUFSIZE 64
  160. /*
  161. // <e0> USB Vendor Support
  162. // <i> enables USB Vendor specific Requests
  163. // </e>
  164. */
  165. #define USB_VENDOR 0
  166. #endif /* __USBCFG_H__ */