Skip to content

Commit 19a8ea0

Browse files
committed
[USB] Update STM32 USB Device library to v2.5.3
Signed-off-by: Frederic Pillon <[email protected]>
1 parent ec31638 commit 19a8ea0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1390
-778
lines changed

system/Middlewares/ST/STM32_USB_Device_Library/Class/AUDIO/Inc/usbd_audio.h

+12-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This software component is licensed by ST under Ultimate Liberty license
1313
* SLA0044, the "License"; You may not use this file except in compliance with
1414
* the License. You may obtain a copy of the License at:
15-
* http://www.st.com/SLA0044
15+
* www.st.com/SLA0044
1616
*
1717
******************************************************************************
1818
*/
@@ -102,14 +102,16 @@ extern "C" {
102102
#define AUDIO_TOTAL_BUF_SIZE ((uint16_t)(AUDIO_OUT_PACKET * AUDIO_OUT_PACKET_NUM))
103103

104104
/* Audio Commands enumeration */
105-
typedef enum {
105+
typedef enum
106+
{
106107
AUDIO_CMD_START = 1,
107108
AUDIO_CMD_PLAY,
108109
AUDIO_CMD_STOP,
109110
} AUDIO_CMD_TypeDef;
110111

111112

112-
typedef enum {
113+
typedef enum
114+
{
113115
AUDIO_OFFSET_NONE = 0,
114116
AUDIO_OFFSET_HALF,
115117
AUDIO_OFFSET_FULL,
@@ -124,7 +126,8 @@ AUDIO_OffsetTypeDef;
124126
/** @defgroup USBD_CORE_Exported_TypesDefinitions
125127
* @{
126128
*/
127-
typedef struct {
129+
typedef struct
130+
{
128131
uint8_t cmd;
129132
uint8_t data[USB_MAX_EP0_SIZE];
130133
uint8_t len;
@@ -134,7 +137,8 @@ USBD_AUDIO_ControlTypeDef;
134137

135138

136139

137-
typedef struct {
140+
typedef struct
141+
{
138142
uint32_t alt_setting;
139143
uint8_t buffer[AUDIO_TOTAL_BUF_SIZE];
140144
AUDIO_OffsetTypeDef offset;
@@ -146,7 +150,8 @@ typedef struct {
146150
USBD_AUDIO_HandleTypeDef;
147151

148152

149-
typedef struct {
153+
typedef struct
154+
{
150155
int8_t (*Init)(uint32_t AudioFreq, uint32_t Volume, uint32_t options);
151156
int8_t (*DeInit)(uint32_t options);
152157
int8_t (*AudioCmd)(uint8_t *pbuf, uint32_t size, uint8_t cmd);
@@ -182,7 +187,7 @@ extern USBD_ClassTypeDef USBD_AUDIO;
182187
/** @defgroup USB_CORE_Exported_Functions
183188
* @{
184189
*/
185-
uint8_t USBD_AUDIO_RegisterInterface(USBD_HandleTypeDef *pdev,
190+
uint8_t USBD_AUDIO_RegisterInterface(USBD_HandleTypeDef *pdev,
186191
USBD_AUDIO_ItfTypeDef *fops);
187192

188193
void USBD_AUDIO_Sync(USBD_HandleTypeDef *pdev, AUDIO_OffsetTypeDef offset);

system/Middlewares/ST/STM32_USB_Device_Library/Class/AUDIO/Inc/usbd_audio_if_template.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This software component is licensed by ST under Ultimate Liberty license
1313
* SLA0044, the "License"; You may not use this file except in compliance with
1414
* the License. You may obtain a copy of the License at:
15-
* http://www.st.com/SLA0044
15+
* www.st.com/SLA0044
1616
*
1717
******************************************************************************
1818
*/

0 commit comments

Comments
 (0)