USB CDC library for MBED on STM32

Dependents:   PushToGo-F429

Committer:
caoyuan9642
Date:
Sun Sep 09 19:03:18 2018 +0000
Revision:
0:7cf972f622d3
usb

Who changed what in which revision?

UserRevisionLine numberNew contents of line
caoyuan9642 0:7cf972f622d3 1 /**
caoyuan9642 0:7cf972f622d3 2 ******************************************************************************
caoyuan9642 0:7cf972f622d3 3 * @file usbd_desc.h
caoyuan9642 0:7cf972f622d3 4 * @author MCD Application Team
caoyuan9642 0:7cf972f622d3 5 * @brief header file for the usbd_desc.c file
caoyuan9642 0:7cf972f622d3 6 ******************************************************************************
caoyuan9642 0:7cf972f622d3 7 * @attention
caoyuan9642 0:7cf972f622d3 8 *
caoyuan9642 0:7cf972f622d3 9 * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics International N.V.
caoyuan9642 0:7cf972f622d3 10 * All rights reserved.</center></h2>
caoyuan9642 0:7cf972f622d3 11 *
caoyuan9642 0:7cf972f622d3 12 * Redistribution and use in source and binary forms, with or without
caoyuan9642 0:7cf972f622d3 13 * modification, are permitted, provided that the following conditions are met:
caoyuan9642 0:7cf972f622d3 14 *
caoyuan9642 0:7cf972f622d3 15 * 1. Redistribution of source code must retain the above copyright notice,
caoyuan9642 0:7cf972f622d3 16 * this list of conditions and the following disclaimer.
caoyuan9642 0:7cf972f622d3 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
caoyuan9642 0:7cf972f622d3 18 * this list of conditions and the following disclaimer in the documentation
caoyuan9642 0:7cf972f622d3 19 * and/or other materials provided with the distribution.
caoyuan9642 0:7cf972f622d3 20 * 3. Neither the name of STMicroelectronics nor the names of other
caoyuan9642 0:7cf972f622d3 21 * contributors to this software may be used to endorse or promote products
caoyuan9642 0:7cf972f622d3 22 * derived from this software without specific written permission.
caoyuan9642 0:7cf972f622d3 23 * 4. This software, including modifications and/or derivative works of this
caoyuan9642 0:7cf972f622d3 24 * software, must execute solely and exclusively on microcontroller or
caoyuan9642 0:7cf972f622d3 25 * microprocessor devices manufactured by or for STMicroelectronics.
caoyuan9642 0:7cf972f622d3 26 * 5. Redistribution and use of this software other than as permitted under
caoyuan9642 0:7cf972f622d3 27 * this license is void and will automatically terminate your rights under
caoyuan9642 0:7cf972f622d3 28 * this license.
caoyuan9642 0:7cf972f622d3 29 *
caoyuan9642 0:7cf972f622d3 30 * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
caoyuan9642 0:7cf972f622d3 31 * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
caoyuan9642 0:7cf972f622d3 32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
caoyuan9642 0:7cf972f622d3 33 * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
caoyuan9642 0:7cf972f622d3 34 * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
caoyuan9642 0:7cf972f622d3 35 * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
caoyuan9642 0:7cf972f622d3 36 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
caoyuan9642 0:7cf972f622d3 37 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
caoyuan9642 0:7cf972f622d3 38 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
caoyuan9642 0:7cf972f622d3 39 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
caoyuan9642 0:7cf972f622d3 40 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
caoyuan9642 0:7cf972f622d3 41 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
caoyuan9642 0:7cf972f622d3 42 *
caoyuan9642 0:7cf972f622d3 43 ******************************************************************************
caoyuan9642 0:7cf972f622d3 44 */
caoyuan9642 0:7cf972f622d3 45
caoyuan9642 0:7cf972f622d3 46 /* Define to prevent recursive inclusion -------------------------------------*/
caoyuan9642 0:7cf972f622d3 47
caoyuan9642 0:7cf972f622d3 48 #ifndef __USB_DESC_H
caoyuan9642 0:7cf972f622d3 49 #define __USB_DESC_H
caoyuan9642 0:7cf972f622d3 50
caoyuan9642 0:7cf972f622d3 51 /* Includes ------------------------------------------------------------------*/
caoyuan9642 0:7cf972f622d3 52 #include "usbd_def.h"
caoyuan9642 0:7cf972f622d3 53
caoyuan9642 0:7cf972f622d3 54 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
caoyuan9642 0:7cf972f622d3 55 * @{
caoyuan9642 0:7cf972f622d3 56 */
caoyuan9642 0:7cf972f622d3 57
caoyuan9642 0:7cf972f622d3 58 /** @defgroup USB_DESC
caoyuan9642 0:7cf972f622d3 59 * @brief general defines for the usb device library file
caoyuan9642 0:7cf972f622d3 60 * @{
caoyuan9642 0:7cf972f622d3 61 */
caoyuan9642 0:7cf972f622d3 62
caoyuan9642 0:7cf972f622d3 63 /** @defgroup USB_DESC_Exported_Defines
caoyuan9642 0:7cf972f622d3 64 * @{
caoyuan9642 0:7cf972f622d3 65 */
caoyuan9642 0:7cf972f622d3 66
caoyuan9642 0:7cf972f622d3 67 /**
caoyuan9642 0:7cf972f622d3 68 * @}
caoyuan9642 0:7cf972f622d3 69 */
caoyuan9642 0:7cf972f622d3 70
caoyuan9642 0:7cf972f622d3 71
caoyuan9642 0:7cf972f622d3 72 /** @defgroup USBD_DESC_Exported_TypesDefinitions
caoyuan9642 0:7cf972f622d3 73 * @{
caoyuan9642 0:7cf972f622d3 74 */
caoyuan9642 0:7cf972f622d3 75 /**
caoyuan9642 0:7cf972f622d3 76 * @}
caoyuan9642 0:7cf972f622d3 77 */
caoyuan9642 0:7cf972f622d3 78
caoyuan9642 0:7cf972f622d3 79
caoyuan9642 0:7cf972f622d3 80
caoyuan9642 0:7cf972f622d3 81 /** @defgroup USBD_DESC_Exported_Macros
caoyuan9642 0:7cf972f622d3 82 * @{
caoyuan9642 0:7cf972f622d3 83 */
caoyuan9642 0:7cf972f622d3 84 /**
caoyuan9642 0:7cf972f622d3 85 * @}
caoyuan9642 0:7cf972f622d3 86 */
caoyuan9642 0:7cf972f622d3 87
caoyuan9642 0:7cf972f622d3 88 /** @defgroup USBD_DESC_Exported_Variables
caoyuan9642 0:7cf972f622d3 89 * @{
caoyuan9642 0:7cf972f622d3 90 */
caoyuan9642 0:7cf972f622d3 91 extern USBD_DescriptorsTypeDef USB_Desc;
caoyuan9642 0:7cf972f622d3 92 /**
caoyuan9642 0:7cf972f622d3 93 * @}
caoyuan9642 0:7cf972f622d3 94 */
caoyuan9642 0:7cf972f622d3 95
caoyuan9642 0:7cf972f622d3 96 /** @defgroup USBD_DESC_Exported_FunctionsPrototype
caoyuan9642 0:7cf972f622d3 97 * @{
caoyuan9642 0:7cf972f622d3 98 */
caoyuan9642 0:7cf972f622d3 99
caoyuan9642 0:7cf972f622d3 100
caoyuan9642 0:7cf972f622d3 101
caoyuan9642 0:7cf972f622d3 102
caoyuan9642 0:7cf972f622d3 103 /**
caoyuan9642 0:7cf972f622d3 104 * @}
caoyuan9642 0:7cf972f622d3 105 */
caoyuan9642 0:7cf972f622d3 106
caoyuan9642 0:7cf972f622d3 107 #endif /* __USBD_DESC_H */
caoyuan9642 0:7cf972f622d3 108
caoyuan9642 0:7cf972f622d3 109 /**
caoyuan9642 0:7cf972f622d3 110 * @}
caoyuan9642 0:7cf972f622d3 111 */
caoyuan9642 0:7cf972f622d3 112
caoyuan9642 0:7cf972f622d3 113 /**
caoyuan9642 0:7cf972f622d3 114 * @}
caoyuan9642 0:7cf972f622d3 115 */
caoyuan9642 0:7cf972f622d3 116 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
caoyuan9642 0:7cf972f622d3 117