source: S-port/trunk/USB_DEVICE/App/usbd_desc.h@ 1

Last change on this file since 1 was 1, checked in by AlexLir, 2 years ago
File size: 3.1 KB
Line 
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file : usbd_desc.c
5 * @version : v1.0_Cube
6 * @brief : Header for usbd_conf.c file.
7 ******************************************************************************
8 * @attention
9 *
10 * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
11 * All rights reserved.</center></h2>
12 *
13 * This software component is licensed by ST under Ultimate Liberty license
14 * SLA0044, the "License"; You may not use this file except in compliance with
15 * the License. You may obtain a copy of the License at:
16 * www.st.com/SLA0044
17 *
18 ******************************************************************************
19 */
20/* USER CODE END Header */
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __USBD_DESC__C__
23#define __USBD_DESC__C__
24
25#ifdef __cplusplus
26 extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "usbd_def.h"
31
32/* USER CODE BEGIN INCLUDE */
33
34/* USER CODE END INCLUDE */
35
36/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
37 * @{
38 */
39
40/** @defgroup USBD_DESC USBD_DESC
41 * @brief Usb device descriptors module.
42 * @{
43 */
44
45/** @defgroup USBD_DESC_Exported_Constants USBD_DESC_Exported_Constants
46 * @brief Constants.
47 * @{
48 */
49#define DEVICE_ID1 (UID_BASE)
50#define DEVICE_ID2 (UID_BASE + 0x4)
51#define DEVICE_ID3 (UID_BASE + 0x8)
52
53#define USB_SIZ_STRING_SERIAL 0x1A
54
55/* USER CODE BEGIN EXPORTED_CONSTANTS */
56
57/* USER CODE END EXPORTED_CONSTANTS */
58
59/**
60 * @}
61 */
62
63/** @defgroup USBD_DESC_Exported_Defines USBD_DESC_Exported_Defines
64 * @brief Defines.
65 * @{
66 */
67
68/* USER CODE BEGIN EXPORTED_DEFINES */
69
70/* USER CODE END EXPORTED_DEFINES */
71
72/**
73 * @}
74 */
75
76/** @defgroup USBD_DESC_Exported_TypesDefinitions USBD_DESC_Exported_TypesDefinitions
77 * @brief Types.
78 * @{
79 */
80
81/* USER CODE BEGIN EXPORTED_TYPES */
82
83/* USER CODE END EXPORTED_TYPES */
84
85/**
86 * @}
87 */
88
89/** @defgroup USBD_DESC_Exported_Macros USBD_DESC_Exported_Macros
90 * @brief Aliases.
91 * @{
92 */
93
94/* USER CODE BEGIN EXPORTED_MACRO */
95
96/* USER CODE END EXPORTED_MACRO */
97
98/**
99 * @}
100 */
101
102/** @defgroup USBD_DESC_Exported_Variables USBD_DESC_Exported_Variables
103 * @brief Public variables.
104 * @{
105 */
106
107/** Descriptor for the Usb device. */
108extern USBD_DescriptorsTypeDef FS_Desc;
109
110/* USER CODE BEGIN EXPORTED_VARIABLES */
111
112/* USER CODE END EXPORTED_VARIABLES */
113
114/**
115 * @}
116 */
117
118/** @defgroup USBD_DESC_Exported_FunctionsPrototype USBD_DESC_Exported_FunctionsPrototype
119 * @brief Public functions declaration.
120 * @{
121 */
122
123/* USER CODE BEGIN EXPORTED_FUNCTIONS */
124
125/* USER CODE END EXPORTED_FUNCTIONS */
126
127/**
128 * @}
129 */
130
131/**
132 * @}
133 */
134
135/**
136 * @}
137 */
138
139#ifdef __cplusplus
140}
141#endif
142
143#endif /* __USBD_DESC__C__ */
144
145/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Note: See TracBrowser for help on using the repository browser.