Skip to content

Commit 12fa9d0

Browse files
committed
[USB] Update STM32 USB Device library to v3.3.1
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent d5b769c commit 12fa9d0

37 files changed

+6931
-6182
lines changed

system/Middlewares/ST/STM32_USB_Host_Library/Class/AUDIO/Inc/usbh_audio.h

+225-233
Large diffs are not rendered by default.

system/Middlewares/ST/STM32_USB_Host_Library/Class/AUDIO/Src/usbh_audio.c

+844-700
Large diffs are not rendered by default.

system/Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc/usbh_cdc.h

+121-129
Large diffs are not rendered by default.

system/Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Src/usbh_cdc.c

+300-251
Large diffs are not rendered by default.

system/Middlewares/ST/STM32_USB_Host_Library/Class/HID/Inc/usbh_hid.h

+130-138
Large diffs are not rendered by default.

system/Middlewares/ST/STM32_USB_Host_Library/Class/HID/Inc/usbh_hid_keybd.h

+88-96
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
/**
22
******************************************************************************
3-
* @file usbh_hid_mouse.h
3+
* @file usbh_hid_mouse.h
44
* @author MCD Application Team
5-
* @version V3.2.2
6-
* @date 07-July-2015
75
* @brief This file contains all the prototypes for the usbh_hid_mouse.c
86
******************************************************************************
97
* @attention
108
*
11-
* <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
9+
* <h2><center>&copy; Copyright (c) 2015 STMicroelectronics.
10+
* All rights reserved.</center></h2>
1211
*
13-
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14-
* You may not use this file except in compliance with the License.
15-
* You may obtain a copy of the License at:
16-
*
17-
* http://www.st.com/software_license_agreement_liberty_v2
18-
*
19-
* Unless required by applicable law or agreed to in writing, software
20-
* distributed under the License is distributed on an "AS IS" BASIS,
21-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22-
* See the License for the specific language governing permissions and
23-
* limitations under the License.
12+
* This software component is licensed by ST under Ultimate Liberty license
13+
* SLA0044, the "License"; You may not use this file except in compliance with
14+
* the License. You may obtain a copy of the License at:
15+
* http://www.st.com/SLA0044
2416
*
2517
******************************************************************************
26-
*/
18+
*/
2719

2820
/* Define to prevent recursive ----------------------------------------------*/
2921
#ifndef __USBH_HID_MOUSE_H
@@ -51,55 +43,55 @@
5143
/** @defgroup USBH_HID_MOUSE
5244
* @brief This file is the Header file for usbh_hid_mouse.c
5345
* @{
54-
*/
46+
*/
5547

5648

5749
/** @defgroup USBH_HID_MOUSE_Exported_Types
5850
* @{
59-
*/
51+
*/
6052

6153
typedef struct _HID_MOUSE_Info
6254
{
63-
uint8_t x;
64-
uint8_t y;
55+
uint8_t x;
56+
uint8_t y;
6557
uint8_t buttons[3];
6658
}
6759
HID_MOUSE_Info_TypeDef;
6860

6961
/**
7062
* @}
71-
*/
63+
*/
7264

7365
/** @defgroup USBH_HID_MOUSE_Exported_Defines
7466
* @{
75-
*/
67+
*/
7668
/**
7769
* @}
78-
*/
70+
*/
7971

8072
/** @defgroup USBH_HID_MOUSE_Exported_Macros
8173
* @{
82-
*/
74+
*/
8375
/**
8476
* @}
85-
*/
77+
*/
8678

8779
/** @defgroup USBH_HID_MOUSE_Exported_Variables
8880
* @{
89-
*/
81+
*/
9082
/**
9183
* @}
92-
*/
84+
*/
9385

9486
/** @defgroup USBH_HID_MOUSE_Exported_FunctionsPrototype
9587
* @{
96-
*/
88+
*/
9789
USBH_StatusTypeDef USBH_HID_MouseInit(USBH_HandleTypeDef *phost);
9890
HID_MOUSE_Info_TypeDef *USBH_HID_GetMouseInfo(USBH_HandleTypeDef *phost);
9991

10092
/**
10193
* @}
102-
*/
94+
*/
10395

10496
#ifdef __cplusplus
10597
}
@@ -109,17 +101,17 @@ HID_MOUSE_Info_TypeDef *USBH_HID_GetMouseInfo(USBH_HandleTypeDef *phost);
109101

110102
/**
111103
* @}
112-
*/
104+
*/
113105

114106
/**
115107
* @}
116-
*/
108+
*/
117109

118110
/**
119111
* @}
120-
*/
112+
*/
121113

122114
/**
123115
* @}
124-
*/
116+
*/
125117
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,23 @@
11
/**
22
******************************************************************************
3-
* @file usbh_hid_parser.c
3+
* @file usbh_hid_parser.c
44
* @author MCD Application Team
5-
* @version V3.2.2
6-
* @date 07-July-2015
7-
* @brief This file is the header file of the usbh_hid_parser.c
5+
* @brief This file is the header file of the usbh_hid_parser.c
86
******************************************************************************
97
* @attention
108
*
11-
* <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
9+
* <h2><center>&copy; Copyright (c) 2015 STMicroelectronics.
10+
* All rights reserved.</center></h2>
1211
*
13-
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14-
* You may not use this file except in compliance with the License.
15-
* You may obtain a copy of the License at:
16-
*
17-
* http://www.st.com/software_license_agreement_liberty_v2
18-
*
19-
* Unless required by applicable law or agreed to in writing, software
20-
* distributed under the License is distributed on an "AS IS" BASIS,
21-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22-
* See the License for the specific language governing permissions and
23-
* limitations under the License.
12+
* This software component is licensed by ST under Ultimate Liberty license
13+
* SLA0044, the "License"; You may not use this file except in compliance with
14+
* the License. You may obtain a copy of the License at:
15+
* http://www.st.com/SLA0044
2416
*
2517
******************************************************************************
2618
*/
2719

28-
/* Define to prevent recursive -----------------------------------------------*/
20+
/* Define to prevent recursive -----------------------------------------------*/
2921
#ifndef __USBH_HID_PARSER_H
3022
#define __USBH_HID_PARSER_H
3123

@@ -48,17 +40,17 @@
4840
/** @addtogroup USBH_HID_CLASS
4941
* @{
5042
*/
51-
43+
5244
/** @defgroup USBH_HID_PARSER
5345
* @brief This file is the Header file for usbh_hid_parser.c
5446
* @{
55-
*/
47+
*/
5648

5749

5850
/** @defgroup USBH_HID_PARSER_Exported_Types
5951
* @{
60-
*/
61-
typedef struct
52+
*/
53+
typedef struct
6254
{
6355
uint8_t *data;
6456
uint32_t size;
@@ -70,7 +62,7 @@ typedef struct
7062
uint32_t physical_min; /*min vale read can report*/
7163
uint32_t physical_max; /*max value read can report*/
7264
uint32_t resolution;
73-
}
65+
}
7466
HID_Report_ItemTypedef;
7567

7668

@@ -80,7 +72,7 @@ uint32_t HID_WriteItem(HID_Report_ItemTypedef *ri, uint32_t value, uint8_t ndx);
8072

8173
/**
8274
* @}
83-
*/
75+
*/
8476

8577
#ifdef __cplusplus
8678
}
@@ -90,17 +82,17 @@ uint32_t HID_WriteItem(HID_Report_ItemTypedef *ri, uint32_t value, uint8_t ndx);
9082

9183
/**
9284
* @}
93-
*/
85+
*/
9486

9587
/**
9688
* @}
97-
*/
89+
*/
9890

9991
/**
10092
* @}
101-
*/
93+
*/
10294

10395
/**
10496
* @}
105-
*/
97+
*/
10698
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

system/Middlewares/ST/STM32_USB_Host_Library/Class/HID/Inc/usbh_hid_usage.h

+16-23
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
/**
22
******************************************************************************
3-
* @file usbh_hid_usage.c
3+
* @file usbh_hid_usage.c
44
* @author MCD Application Team
5-
* @version V3.2.2
6-
* @date 07-July-2015
7-
* @brief This file contain the USAGE page codes
5+
* @brief This file contain the USAGE page codes
86
******************************************************************************
97
* @attention
108
*
11-
* <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
9+
* <h2><center>&copy; Copyright (c) 2015 STMicroelectronics.
10+
* All rights reserved.</center></h2>
1211
*
13-
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14-
* You may not use this file except in compliance with the License.
15-
* You may obtain a copy of the License at:
16-
*
17-
* http://www.st.com/software_license_agreement_liberty_v2
18-
*
19-
* Unless required by applicable law or agreed to in writing, software
20-
* distributed under the License is distributed on an "AS IS" BASIS,
21-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22-
* See the License for the specific language governing permissions and
23-
* limitations under the License.
12+
* This software component is licensed by ST under Ultimate Liberty license
13+
* SLA0044, the "License"; You may not use this file except in compliance with
14+
* the License. You may obtain a copy of the License at:
15+
* http://www.st.com/SLA0044
2416
*
2517
******************************************************************************
2618
*/
19+
2720
/* Define to prevent recursive ----------------------------------------------*/
2821
#ifndef __USDH_HID_USAGE_H
2922
#define __USDH_HID_USAGE_H
@@ -43,11 +36,11 @@
4336
/** @addtogroup USBH_HID_CLASS
4437
* @{
4538
*/
46-
39+
4740
/** @defgroup USBH_HID_USAGE
4841
* @brief This file is the Header file for usbh_hid_usage.c
4942
* @{
50-
*/
43+
*/
5144

5245

5346
/** @defgroup USBH_HID_USAGE_Exported_Types
@@ -174,7 +167,7 @@
174167

175168
/**
176169
* @}
177-
*/
170+
*/
178171

179172
#ifdef __cplusplus
180173
}
@@ -184,17 +177,17 @@
184177

185178
/**
186179
* @}
187-
*/
180+
*/
188181

189182
/**
190183
* @}
191-
*/
184+
*/
192185

193186
/**
194187
* @}
195-
*/
188+
*/
196189

197190
/**
198191
* @}
199-
*/
192+
*/
200193
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)