These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Committer:
frank26080115
Date:
Sun Mar 20 05:38:56 2011 +0000
Revision:
0:bf7b9fba3924

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frank26080115 0:bf7b9fba3924 1 /*----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 2 * U S B - K e r n e l
frank26080115 0:bf7b9fba3924 3 *----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 4 * Name: USBDESC.H
frank26080115 0:bf7b9fba3924 5 * Purpose: USB Descriptors Definitions
frank26080115 0:bf7b9fba3924 6 * Version: V1.10
frank26080115 0:bf7b9fba3924 7 *----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 8 * This software is supplied "AS IS" without any warranties, express,
frank26080115 0:bf7b9fba3924 9 * implied or statutory, including but not limited to the implied
frank26080115 0:bf7b9fba3924 10 * warranties of fitness for purpose, satisfactory quality and
frank26080115 0:bf7b9fba3924 11 * noninfringement. Keil extends you a royalty-free right to reproduce
frank26080115 0:bf7b9fba3924 12 * and distribute executable files created using this software for use
frank26080115 0:bf7b9fba3924 13 * on NXP Semiconductors LPC family microcontroller devices only. Nothing
frank26080115 0:bf7b9fba3924 14 * else gives you the right to use this software.
frank26080115 0:bf7b9fba3924 15 *---------------------------------------------------------------------------*/
frank26080115 0:bf7b9fba3924 16
frank26080115 0:bf7b9fba3924 17 #ifndef __USBDESC_H__
frank26080115 0:bf7b9fba3924 18 #define __USBDESC_H__
frank26080115 0:bf7b9fba3924 19
frank26080115 0:bf7b9fba3924 20
frank26080115 0:bf7b9fba3924 21 #define WBVAL(x) (x & 0xFF),((x >> 8) & 0xFF)
frank26080115 0:bf7b9fba3924 22
frank26080115 0:bf7b9fba3924 23 #define USB_DEVICE_DESC_SIZE (sizeof(USB_DEVICE_DESCRIPTOR))
frank26080115 0:bf7b9fba3924 24 #define USB_CONFIGUARTION_DESC_SIZE (sizeof(USB_CONFIGURATION_DESCRIPTOR))
frank26080115 0:bf7b9fba3924 25 #define USB_INTERFACE_DESC_SIZE (sizeof(USB_INTERFACE_DESCRIPTOR))
frank26080115 0:bf7b9fba3924 26 #define USB_ENDPOINT_DESC_SIZE (sizeof(USB_ENDPOINT_DESCRIPTOR))
frank26080115 0:bf7b9fba3924 27
frank26080115 0:bf7b9fba3924 28 #define HID_DESC_OFFSET 0x0012
frank26080115 0:bf7b9fba3924 29 #define HID_DESC_SIZE (sizeof(HID_DESCRIPTOR))
frank26080115 0:bf7b9fba3924 30 #define HID_REPORT_DESC_SIZE (sizeof(HID_ReportDescriptor))
frank26080115 0:bf7b9fba3924 31
frank26080115 0:bf7b9fba3924 32 extern const uint8_t USB_DeviceDescriptor[];
frank26080115 0:bf7b9fba3924 33 extern const uint8_t USB_ConfigDescriptor[];
frank26080115 0:bf7b9fba3924 34 extern const uint8_t USB_StringDescriptor[];
frank26080115 0:bf7b9fba3924 35
frank26080115 0:bf7b9fba3924 36 extern const uint8_t HID_ReportDescriptor[];
frank26080115 0:bf7b9fba3924 37 extern const uint16_t HID_ReportDescSize;
frank26080115 0:bf7b9fba3924 38
frank26080115 0:bf7b9fba3924 39
frank26080115 0:bf7b9fba3924 40 #endif /* __USBDESC_H__ */