| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,61 @@ |
| 1 |
+/** |
|
| 2 |
+ ****************************************************************************** |
|
| 3 |
+ * @file usbd_desc_template.h |
|
| 4 |
+ * @author MCD Application Team |
|
| 5 |
+ * @brief Header for usbd_desc_template.c module |
|
| 6 |
+ ****************************************************************************** |
|
| 7 |
+ * @attention |
|
| 8 |
+ * |
|
| 9 |
+ * Copyright (c) 2015 STMicroelectronics. |
|
| 10 |
+ * All rights reserved. |
|
| 11 |
+ * |
|
| 12 |
+ * This software is licensed under terms that can be found in the LICENSE file |
|
| 13 |
+ * in the root directory of this software component. |
|
| 14 |
+ * If no LICENSE file comes with this software, it is provided AS-IS. |
|
| 15 |
+ * |
|
| 16 |
+ ****************************************************************************** |
|
| 17 |
+ */ |
|
| 18 |
+ |
|
| 19 |
+/* Define to prevent recursive inclusion -------------------------------------*/ |
|
| 20 |
+#ifndef __USBD_DESC_TEMPLATE_H |
|
| 21 |
+#define __USBD_DESC_TEMPLATE_H |
|
| 22 |
+ |
|
| 23 |
+/* Includes ------------------------------------------------------------------*/ |
|
| 24 |
+#include "usbd_def.h" |
|
| 25 |
+ |
|
| 26 |
+/* Exported types ------------------------------------------------------------*/ |
|
| 27 |
+/* Exported constants --------------------------------------------------------*/ |
|
| 28 |
+#define DEVICE_ID1 (UID_BASE) |
|
| 29 |
+#define DEVICE_ID2 (UID_BASE + 0x4U) |
|
| 30 |
+#define DEVICE_ID3 (UID_BASE + 0x8U) |
|
| 31 |
+ |
|
| 32 |
+/* |
|
| 33 |
+ * USB Billboard Class USER string desc Defines Template |
|
| 34 |
+ * index should start form 0x10 to avoid using the reserved device string desc indexes |
|
| 35 |
+ */ |
|
| 36 |
+#if (USBD_CLASS_USER_STRING_DESC == 1) |
|
| 37 |
+#define USBD_BB_IF_STRING_INDEX 0x10U |
|
| 38 |
+#define USBD_BB_URL_STRING_INDEX 0x11U |
|
| 39 |
+#define USBD_BB_ALTMODE0_STRING_INDEX 0x12U |
|
| 40 |
+#define USBD_BB_ALTMODE1_STRING_INDEX 0x13U |
|
| 41 |
+/* Add Specific USER string Desc */ |
|
| 42 |
+#define USBD_BB_IF_STR_DESC (uint8_t *)"STM32 BillBoard Interface" |
|
| 43 |
+#define USBD_BB_URL_STR_DESC (uint8_t *)"www.st.com" |
|
| 44 |
+#define USBD_BB_ALTMODE0_STR_DESC (uint8_t *)"STM32 Alternate0 Mode" |
|
| 45 |
+#define USBD_BB_ALTMODE1_STR_DESC (uint8_t *)"STM32 Alternate1 Mode" |
|
| 46 |
+#endif /* USBD_CLASS_USER_STRING_DESC */ |
|
| 47 |
+ |
|
| 48 |
+#define USB_SIZ_STRING_SERIAL 0x1AU |
|
| 49 |
+ |
|
| 50 |
+#if (USBD_LPM_ENABLED == 1) |
|
| 51 |
+#define USB_SIZ_BOS_DESC 0x0CU |
|
| 52 |
+#elif (USBD_CLASS_BOS_ENABLED == 1) |
|
| 53 |
+#define USB_SIZ_BOS_DESC 0x5DU |
|
| 54 |
+#endif /* USBD_LPM_ENABLED */ |
|
| 55 |
+ |
|
| 56 |
+/* Exported macro ------------------------------------------------------------*/ |
|
| 57 |
+/* Exported functions ------------------------------------------------------- */ |
|
| 58 |
+extern USBD_DescriptorsTypeDef USBD_MSC_Desc; |
|
| 59 |
+ |
|
| 60 |
+#endif /* __USBD_DESC_TEMPLATE_H*/ |
|
| 61 |
+ |