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.

usbcore.h 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*----------------------------------------------------------------------------
  2. * U S B - K e r n e l
  3. *----------------------------------------------------------------------------
  4. * Name: usbcore.h
  5. * Purpose: USB Core 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 microcontroller devices only. Nothing else
  14. * gives you the right to use this software.
  15. *
  16. * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
  17. *---------------------------------------------------------------------------*/
  18. #ifndef __USBCORE_H__
  19. #define __USBCORE_H__
  20. /* USB Endpoint Data Structure */
  21. typedef struct _USB_EP_DATA {
  22. uint8_t *pData;
  23. uint16_t Count;
  24. } USB_EP_DATA;
  25. /* USB Core Global Variables */
  26. extern uint16_t USB_DeviceStatus;
  27. extern uint8_t USB_DeviceAddress;
  28. extern uint8_t USB_Configuration;
  29. extern uint32_t USB_EndPointMask;
  30. extern uint32_t USB_EndPointHalt;
  31. extern uint32_t USB_EndPointStall;
  32. extern uint8_t USB_AltSetting[USB_IF_NUM];
  33. /* USB Endpoint 0 Buffer */
  34. extern uint8_t EP0Buf[USB_MAX_PACKET0];
  35. /* USB Endpoint 0 Data Info */
  36. extern USB_EP_DATA EP0Data;
  37. /* USB Setup Packet */
  38. extern USB_SETUP_PACKET SetupPacket;
  39. /* USB Core Functions */
  40. extern void USB_ResetCore (void);
  41. #endif /* __USBCORE_H__ */