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,181 @@
1
+/**
2
+  ******************************************************************************
3
+  * @file    usbd_msc_data.c
4
+  * @author  MCD Application Team
5
+  * @brief   This file provides all the vital inquiry pages and sense data.
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
+/* BSPDependencies
20
+- "stm32xxxxx_{eval}{discovery}{nucleo_144}.c"
21
+- "stm32xxxxx_{eval}{discovery}_io.c"
22
+- "stm32xxxxx_{eval}{discovery}{adafruit}_sd.c"
23
+EndBSPDependencies */
24
+
25
+/* Includes ------------------------------------------------------------------*/
26
+#include "usbd_msc_data.h"
27
+
28
+
29
+/** @addtogroup STM32_USB_DEVICE_LIBRARY
30
+  * @{
31
+  */
32
+
33
+
34
+/** @defgroup MSC_DATA
35
+  * @brief Mass storage info/data module
36
+  * @{
37
+  */
38
+
39
+/** @defgroup MSC_DATA_Private_TypesDefinitions
40
+  * @{
41
+  */
42
+/**
43
+  * @}
44
+  */
45
+
46
+
47
+/** @defgroup MSC_DATA_Private_Defines
48
+  * @{
49
+  */
50
+/**
51
+  * @}
52
+  */
53
+
54
+
55
+/** @defgroup MSC_DATA_Private_Macros
56
+  * @{
57
+  */
58
+/**
59
+  * @}
60
+  */
61
+
62
+
63
+/** @defgroup MSC_DATA_Private_Variables
64
+  * @{
65
+  */
66
+
67
+/* USB Mass storage Page 0 Inquiry Data */
68
+uint8_t MSC_Page00_Inquiry_Data[LENGTH_INQUIRY_PAGE00] =
69
+{
70
+  0x00,
71
+  0x00,
72
+  0x00,
73
+  (LENGTH_INQUIRY_PAGE00 - 4U),
74
+  0x00,
75
+  0x80
76
+};
77
+
78
+/* USB Mass storage VPD Page 0x80 Inquiry Data for Unit Serial Number */
79
+uint8_t MSC_Page80_Inquiry_Data[LENGTH_INQUIRY_PAGE80] =
80
+{
81
+  0x00,
82
+  0x80,
83
+  0x00,
84
+  LENGTH_INQUIRY_PAGE80,
85
+  0x20,     /* Put Product Serial number */
86
+  0x20,
87
+  0x20,
88
+  0x20
89
+};
90
+
91
+/* USB Mass storage sense 6 Data */
92
+uint8_t MSC_Mode_Sense6_data[MODE_SENSE6_LEN] =
93
+{
94
+  0x22,
95
+  0x00,
96
+  0x00,
97
+  0x00,
98
+  0x08,
99
+  0x12,
100
+  0x00,
101
+  0x00,
102
+  0x00,
103
+  0x00,
104
+  0x00,
105
+  0x00,
106
+  0x00,
107
+  0x00,
108
+  0x00,
109
+  0x00,
110
+  0x00,
111
+  0x00,
112
+  0x00,
113
+  0x00,
114
+  0x00,
115
+  0x00,
116
+  0x00
117
+};
118
+
119
+
120
+/* USB Mass storage sense 10  Data */
121
+uint8_t MSC_Mode_Sense10_data[MODE_SENSE10_LEN] =
122
+{
123
+  0x00,
124
+  0x26,
125
+  0x00,
126
+  0x00,
127
+  0x00,
128
+  0x00,
129
+  0x00,
130
+  0x00,
131
+  0x08,
132
+  0x12,
133
+  0x00,
134
+  0x00,
135
+  0x00,
136
+  0x00,
137
+  0x00,
138
+  0x00,
139
+  0x00,
140
+  0x00,
141
+  0x00,
142
+  0x00,
143
+  0x00,
144
+  0x00,
145
+  0x00,
146
+  0x00,
147
+  0x00,
148
+  0x00,
149
+  0x00
150
+};
151
+/**
152
+  * @}
153
+  */
154
+
155
+
156
+/** @defgroup MSC_DATA_Private_FunctionPrototypes
157
+  * @{
158
+  */
159
+/**
160
+  * @}
161
+  */
162
+
163
+
164
+/** @defgroup MSC_DATA_Private_Functions
165
+  * @{
166
+  */
167
+
168
+/**
169
+  * @}
170
+  */
171
+
172
+
173
+/**
174
+  * @}
175
+  */
176
+
177
+
178
+/**
179
+  * @}
180
+  */
181
+