Jason Engelman
/
USBCDC
Port of Keils USBCDC example, compiles ok. Gets stuck at init
usbdesc.h@0:0b777ff85deb, 2010-07-05 (annotated)
- Committer:
- tecnosys
- Date:
- Mon Jul 05 10:16:57 2010 +0000
- Revision:
- 0:0b777ff85deb
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tecnosys | 0:0b777ff85deb | 1 | /*---------------------------------------------------------------------------- |
tecnosys | 0:0b777ff85deb | 2 | * U S B - K e r n e l |
tecnosys | 0:0b777ff85deb | 3 | *---------------------------------------------------------------------------- |
tecnosys | 0:0b777ff85deb | 4 | * Name: usbdesc.h |
tecnosys | 0:0b777ff85deb | 5 | * Purpose: USB Descriptors Definitions |
tecnosys | 0:0b777ff85deb | 6 | * Version: V1.20 |
tecnosys | 0:0b777ff85deb | 7 | *---------------------------------------------------------------------------- |
tecnosys | 0:0b777ff85deb | 8 | * This software is supplied "AS IS" without any warranties, express, |
tecnosys | 0:0b777ff85deb | 9 | * implied or statutory, including but not limited to the implied |
tecnosys | 0:0b777ff85deb | 10 | * warranties of fitness for purpose, satisfactory quality and |
tecnosys | 0:0b777ff85deb | 11 | * noninfringement. Keil extends you a royalty-free right to reproduce |
tecnosys | 0:0b777ff85deb | 12 | * and distribute executable files created using this software for use |
tecnosys | 0:0b777ff85deb | 13 | * on NXP Semiconductors LPC microcontroller devices only. Nothing else |
tecnosys | 0:0b777ff85deb | 14 | * gives you the right to use this software. |
tecnosys | 0:0b777ff85deb | 15 | * |
tecnosys | 0:0b777ff85deb | 16 | * Copyright (c) 2009 Keil - An ARM Company. All rights reserved. |
tecnosys | 0:0b777ff85deb | 17 | *---------------------------------------------------------------------------*/ |
tecnosys | 0:0b777ff85deb | 18 | |
tecnosys | 0:0b777ff85deb | 19 | #ifndef __USBDESC_H__ |
tecnosys | 0:0b777ff85deb | 20 | #define __USBDESC_H__ |
tecnosys | 0:0b777ff85deb | 21 | |
tecnosys | 0:0b777ff85deb | 22 | |
tecnosys | 0:0b777ff85deb | 23 | #define WBVAL(x) (x & 0xFF),((x >> 8) & 0xFF) |
tecnosys | 0:0b777ff85deb | 24 | |
tecnosys | 0:0b777ff85deb | 25 | #define USB_DEVICE_DESC_SIZE (sizeof(USB_DEVICE_DESCRIPTOR)) |
tecnosys | 0:0b777ff85deb | 26 | #define USB_CONFIGUARTION_DESC_SIZE (sizeof(USB_CONFIGURATION_DESCRIPTOR)) |
tecnosys | 0:0b777ff85deb | 27 | #define USB_INTERFACE_DESC_SIZE (sizeof(USB_INTERFACE_DESCRIPTOR)) |
tecnosys | 0:0b777ff85deb | 28 | #define USB_ENDPOINT_DESC_SIZE (sizeof(USB_ENDPOINT_DESCRIPTOR)) |
tecnosys | 0:0b777ff85deb | 29 | |
tecnosys | 0:0b777ff85deb | 30 | extern const uint8_t USB_DeviceDescriptor[]; |
tecnosys | 0:0b777ff85deb | 31 | extern const uint8_t USB_ConfigDescriptor[]; |
tecnosys | 0:0b777ff85deb | 32 | extern const uint8_t USB_StringDescriptor[]; |
tecnosys | 0:0b777ff85deb | 33 | |
tecnosys | 0:0b777ff85deb | 34 | |
tecnosys | 0:0b777ff85deb | 35 | #endif /* __USBDESC_H__ */ |