These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!
usbdesc.h
00001 /*---------------------------------------------------------------------------- 00002 * U S B - K e r n e l 00003 *---------------------------------------------------------------------------- 00004 * Name: usbdesc.h 00005 * Purpose: USB Descriptors Definitions 00006 * Version: V1.20 00007 *---------------------------------------------------------------------------- 00008 * This software is supplied "AS IS" without any warranties, express, 00009 * implied or statutory, including but not limited to the implied 00010 * warranties of fitness for purpose, satisfactory quality and 00011 * noninfringement. Keil extends you a royalty-free right to reproduce 00012 * and distribute executable files created using this software for use 00013 * on NXP Semiconductors LPC microcontroller devices only. Nothing else 00014 * gives you the right to use this software. 00015 * 00016 * Copyright (c) 2009 Keil - An ARM Company. All rights reserved. 00017 *---------------------------------------------------------------------------*/ 00018 00019 #ifndef __USBDESC_H__ 00020 #define __USBDESC_H__ 00021 00022 00023 #define WBVAL(x) (x & 0xFF),((x >> 8) & 0xFF) 00024 00025 #define USB_DEVICE_DESC_SIZE (sizeof(USB_DEVICE_DESCRIPTOR)) 00026 #define USB_CONFIGUARTION_DESC_SIZE (sizeof(USB_CONFIGURATION_DESCRIPTOR)) 00027 #define USB_INTERFACE_DESC_SIZE (sizeof(USB_INTERFACE_DESCRIPTOR)) 00028 #define USB_ENDPOINT_DESC_SIZE (sizeof(USB_ENDPOINT_DESCRIPTOR)) 00029 00030 extern const uint8_t USB_DeviceDescriptor[]; 00031 extern const uint8_t USB_ConfigDescriptor[]; 00032 extern const uint8_t USB_StringDescriptor[]; 00033 00034 00035 #endif /* __USBDESC_H__ */
Generated on Tue Jul 12 2022 17:28:10 by 1.7.2