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.

usbuser.h 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*----------------------------------------------------------------------------
  2. * U S B - K e r n e l
  3. *----------------------------------------------------------------------------
  4. * Name: usbuser.h
  5. * Purpose: USB Custom User Definitions
  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. #ifndef __USBUSER_H__
  19. #define __USBUSER_H__
  20. /* USB Device Events Callback Functions */
  21. extern void USB_Power_Event (uint32_t power);
  22. extern void USB_Reset_Event (void);
  23. extern void USB_Suspend_Event (void);
  24. extern void USB_Resume_Event (void);
  25. extern void USB_WakeUp_Event (void);
  26. extern void USB_SOF_Event (void);
  27. extern void USB_Error_Event (uint32_t error);
  28. /* USB Endpoint Callback Events */
  29. #define USB_EVT_SETUP 1 /* Setup Packet */
  30. #define USB_EVT_OUT 2 /* OUT Packet */
  31. #define USB_EVT_IN 3 /* IN Packet */
  32. #define USB_EVT_OUT_NAK 4 /* OUT Packet - Not Acknowledged */
  33. #define USB_EVT_IN_NAK 5 /* IN Packet - Not Acknowledged */
  34. #define USB_EVT_OUT_STALL 6 /* OUT Packet - Stalled */
  35. #define USB_EVT_IN_STALL 7 /* IN Packet - Stalled */
  36. #define USB_EVT_OUT_DMA_EOT 8 /* DMA OUT EP - End of Transfer */
  37. #define USB_EVT_IN_DMA_EOT 9 /* DMA IN EP - End of Transfer */
  38. #define USB_EVT_OUT_DMA_NDR 10 /* DMA OUT EP - New Descriptor Request */
  39. #define USB_EVT_IN_DMA_NDR 11 /* DMA IN EP - New Descriptor Request */
  40. #define USB_EVT_OUT_DMA_ERR 12 /* DMA OUT EP - Error */
  41. #define USB_EVT_IN_DMA_ERR 13 /* DMA IN EP - Error */
  42. /* USB Endpoint Events Callback Pointers */
  43. extern void (* const USB_P_EP[16])(uint32_t event);
  44. /* USB Endpoint Events Callback Functions */
  45. extern void USB_EndPoint0 (uint32_t event);
  46. extern void USB_EndPoint1 (uint32_t event);
  47. extern void USB_EndPoint2 (uint32_t event);
  48. extern void USB_EndPoint3 (uint32_t event);
  49. extern void USB_EndPoint4 (uint32_t event);
  50. extern void USB_EndPoint5 (uint32_t event);
  51. extern void USB_EndPoint6 (uint32_t event);
  52. extern void USB_EndPoint7 (uint32_t event);
  53. extern void USB_EndPoint8 (uint32_t event);
  54. extern void USB_EndPoint9 (uint32_t event);
  55. extern void USB_EndPoint10 (uint32_t event);
  56. extern void USB_EndPoint11 (uint32_t event);
  57. extern void USB_EndPoint12 (uint32_t event);
  58. extern void USB_EndPoint13 (uint32_t event);
  59. extern void USB_EndPoint14 (uint32_t event);
  60. extern void USB_EndPoint15 (uint32_t event);
  61. /* USB Core Events Callback Functions */
  62. extern void USB_Configure_Event (void);
  63. extern void USB_Interface_Event (void);
  64. extern void USB_Feature_Event (void);
  65. #endif /* __USBUSER_H__ */