Browse code

Add source code of the firmware for the IO Board

Pawel Jablonski authored on 05/06/2023 17:01:27
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,102 @@
1
+/**
2
+  ******************************************************************************
3
+  * @file    usbd_msc_data.h
4
+  * @author  MCD Application Team
5
+  * @brief   Header for the usbd_msc_data.c file
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_MSC_DATA_H
21
+#define __USBD_MSC_DATA_H
22
+
23
+#ifdef __cplusplus
24
+extern "C" {
25
+#endif
26
+
27
+/* Includes ------------------------------------------------------------------*/
28
+#include "usbd_conf.h"
29
+
30
+/** @addtogroup STM32_USB_DEVICE_LIBRARY
31
+  * @{
32
+  */
33
+
34
+/** @defgroup USB_INFO
35
+  * @brief general defines for the usb device library file
36
+  * @{
37
+  */
38
+
39
+/** @defgroup USB_INFO_Exported_Defines
40
+  * @{
41
+  */
42
+#define MODE_SENSE6_LEN                    0x17U
43
+#define MODE_SENSE10_LEN                   0x1BU
44
+#define LENGTH_INQUIRY_PAGE00              0x06U
45
+#define LENGTH_INQUIRY_PAGE80              0x08U
46
+#define LENGTH_FORMAT_CAPACITIES           0x14U
47
+
48
+/**
49
+  * @}
50
+  */
51
+
52
+
53
+/** @defgroup USBD_INFO_Exported_TypesDefinitions
54
+  * @{
55
+  */
56
+/**
57
+  * @}
58
+  */
59
+
60
+
61
+
62
+/** @defgroup USBD_INFO_Exported_Macros
63
+  * @{
64
+  */
65
+
66
+/**
67
+  * @}
68
+  */
69
+
70
+/** @defgroup USBD_INFO_Exported_Variables
71
+  * @{
72
+  */
73
+extern uint8_t MSC_Page00_Inquiry_Data[LENGTH_INQUIRY_PAGE00];
74
+extern uint8_t MSC_Page80_Inquiry_Data[LENGTH_INQUIRY_PAGE80];
75
+extern uint8_t MSC_Mode_Sense6_data[MODE_SENSE6_LEN];
76
+extern uint8_t MSC_Mode_Sense10_data[MODE_SENSE10_LEN];
77
+
78
+/**
79
+  * @}
80
+  */
81
+
82
+/** @defgroup USBD_INFO_Exported_FunctionsPrototype
83
+  * @{
84
+  */
85
+
86
+/**
87
+  * @}
88
+  */
89
+
90
+#ifdef __cplusplus
91
+}
92
+#endif
93
+
94
+#endif /* __USBD_MSC_DATA_H */
95
+
96
+/**
97
+  * @}
98
+  */
99
+
100
+/**
101
+  * @}
102
+  */