Skip to content

Commit abde0fa

Browse files
committed
stm32/usbdev: Convert files to unix line endings.
Also remove trailing whitespace and convert tabs to spaces.
1 parent 56a273e commit abde0fa

13 files changed

Lines changed: 4029 additions & 4029 deletions

File tree

Lines changed: 151 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,151 @@
1-
/**
2-
******************************************************************************
3-
* @file usbd_msc_bot.h
4-
* @author MCD Application Team
5-
* @version V2.0.0
6-
* @date 18-February-2014
7-
* @brief header for the usbd_msc_bot.c file
8-
******************************************************************************
9-
* @attention
10-
*
11-
* <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
12-
*
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.
24-
*
25-
******************************************************************************
26-
*/
27-
28-
/* Define to prevent recursive inclusion -------------------------------------*/
29-
30-
#include "usbd_core.h"
31-
32-
/* Define to prevent recursive inclusion -------------------------------------*/
33-
#ifndef __USBD_MSC_BOT_H
34-
#define __USBD_MSC_BOT_H
35-
36-
/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
37-
* @{
38-
*/
39-
40-
/** @defgroup MSC_BOT
41-
* @brief This file is the Header file for usbd_bot.c
42-
* @{
43-
*/
44-
45-
46-
/** @defgroup USBD_CORE_Exported_Defines
47-
* @{
48-
*/
49-
#define USBD_BOT_IDLE 0 /* Idle state */
50-
#define USBD_BOT_DATA_OUT 1 /* Data Out state */
51-
#define USBD_BOT_DATA_IN 2 /* Data In state */
52-
#define USBD_BOT_LAST_DATA_IN 3 /* Last Data In Last */
53-
#define USBD_BOT_SEND_DATA 4 /* Send Immediate data */
54-
#define USBD_BOT_NO_DATA 5 /* No data Stage */
55-
56-
#define USBD_BOT_CBW_SIGNATURE 0x43425355
57-
#define USBD_BOT_CSW_SIGNATURE 0x53425355
58-
#define USBD_BOT_CBW_LENGTH 31
59-
#define USBD_BOT_CSW_LENGTH 13
60-
#define USBD_BOT_MAX_DATA 256
61-
62-
/* CSW Status Definitions */
63-
#define USBD_CSW_CMD_PASSED 0x00
64-
#define USBD_CSW_CMD_FAILED 0x01
65-
#define USBD_CSW_PHASE_ERROR 0x02
66-
67-
/* BOT Status */
68-
#define USBD_BOT_STATUS_NORMAL 0
69-
#define USBD_BOT_STATUS_RECOVERY 1
70-
#define USBD_BOT_STATUS_ERROR 2
71-
72-
73-
#define USBD_DIR_IN 0
74-
#define USBD_DIR_OUT 1
75-
#define USBD_BOTH_DIR 2
76-
77-
/**
78-
* @}
79-
*/
80-
81-
/** @defgroup MSC_CORE_Private_TypesDefinitions
82-
* @{
83-
*/
84-
85-
typedef struct
86-
{
87-
uint32_t dSignature;
88-
uint32_t dTag;
89-
uint32_t dDataLength;
90-
uint8_t bmFlags;
91-
uint8_t bLUN;
92-
uint8_t bCBLength;
93-
uint8_t CB[16];
94-
uint8_t ReservedForAlign;
95-
}
96-
USBD_MSC_BOT_CBWTypeDef;
97-
98-
99-
typedef struct
100-
{
101-
uint32_t dSignature;
102-
uint32_t dTag;
103-
uint32_t dDataResidue;
104-
uint8_t bStatus;
105-
uint8_t ReservedForAlign[3];
106-
}
107-
USBD_MSC_BOT_CSWTypeDef;
108-
109-
/**
110-
* @}
111-
*/
112-
113-
114-
/** @defgroup USBD_CORE_Exported_Types
115-
* @{
116-
*/
117-
118-
/**
119-
* @}
120-
*/
121-
/** @defgroup USBD_CORE_Exported_FunctionsPrototypes
122-
* @{
123-
*/
124-
void MSC_BOT_Init (USBD_HandleTypeDef *pdev);
125-
void MSC_BOT_Reset (USBD_HandleTypeDef *pdev);
126-
void MSC_BOT_DeInit (USBD_HandleTypeDef *pdev);
127-
void MSC_BOT_DataIn (USBD_HandleTypeDef *pdev,
128-
uint8_t epnum);
129-
130-
void MSC_BOT_DataOut (USBD_HandleTypeDef *pdev,
131-
uint8_t epnum);
132-
133-
void MSC_BOT_SendCSW (USBD_HandleTypeDef *pdev,
134-
uint8_t CSW_Status);
135-
136-
void MSC_BOT_CplClrFeature (USBD_HandleTypeDef *pdev,
137-
uint8_t epnum);
138-
/**
139-
* @}
140-
*/
141-
142-
#endif /* __USBD_MSC_BOT_H */
143-
/**
144-
* @}
145-
*/
146-
147-
/**
148-
* @}
149-
*/
150-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
151-
1+
/**
2+
******************************************************************************
3+
* @file usbd_msc_bot.h
4+
* @author MCD Application Team
5+
* @version V2.0.0
6+
* @date 18-February-2014
7+
* @brief header for the usbd_msc_bot.c file
8+
******************************************************************************
9+
* @attention
10+
*
11+
* <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
12+
*
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.
24+
*
25+
******************************************************************************
26+
*/
27+
28+
/* Define to prevent recursive inclusion -------------------------------------*/
29+
30+
#include "usbd_core.h"
31+
32+
/* Define to prevent recursive inclusion -------------------------------------*/
33+
#ifndef __USBD_MSC_BOT_H
34+
#define __USBD_MSC_BOT_H
35+
36+
/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
37+
* @{
38+
*/
39+
40+
/** @defgroup MSC_BOT
41+
* @brief This file is the Header file for usbd_bot.c
42+
* @{
43+
*/
44+
45+
46+
/** @defgroup USBD_CORE_Exported_Defines
47+
* @{
48+
*/
49+
#define USBD_BOT_IDLE 0 /* Idle state */
50+
#define USBD_BOT_DATA_OUT 1 /* Data Out state */
51+
#define USBD_BOT_DATA_IN 2 /* Data In state */
52+
#define USBD_BOT_LAST_DATA_IN 3 /* Last Data In Last */
53+
#define USBD_BOT_SEND_DATA 4 /* Send Immediate data */
54+
#define USBD_BOT_NO_DATA 5 /* No data Stage */
55+
56+
#define USBD_BOT_CBW_SIGNATURE 0x43425355
57+
#define USBD_BOT_CSW_SIGNATURE 0x53425355
58+
#define USBD_BOT_CBW_LENGTH 31
59+
#define USBD_BOT_CSW_LENGTH 13
60+
#define USBD_BOT_MAX_DATA 256
61+
62+
/* CSW Status Definitions */
63+
#define USBD_CSW_CMD_PASSED 0x00
64+
#define USBD_CSW_CMD_FAILED 0x01
65+
#define USBD_CSW_PHASE_ERROR 0x02
66+
67+
/* BOT Status */
68+
#define USBD_BOT_STATUS_NORMAL 0
69+
#define USBD_BOT_STATUS_RECOVERY 1
70+
#define USBD_BOT_STATUS_ERROR 2
71+
72+
73+
#define USBD_DIR_IN 0
74+
#define USBD_DIR_OUT 1
75+
#define USBD_BOTH_DIR 2
76+
77+
/**
78+
* @}
79+
*/
80+
81+
/** @defgroup MSC_CORE_Private_TypesDefinitions
82+
* @{
83+
*/
84+
85+
typedef struct
86+
{
87+
uint32_t dSignature;
88+
uint32_t dTag;
89+
uint32_t dDataLength;
90+
uint8_t bmFlags;
91+
uint8_t bLUN;
92+
uint8_t bCBLength;
93+
uint8_t CB[16];
94+
uint8_t ReservedForAlign;
95+
}
96+
USBD_MSC_BOT_CBWTypeDef;
97+
98+
99+
typedef struct
100+
{
101+
uint32_t dSignature;
102+
uint32_t dTag;
103+
uint32_t dDataResidue;
104+
uint8_t bStatus;
105+
uint8_t ReservedForAlign[3];
106+
}
107+
USBD_MSC_BOT_CSWTypeDef;
108+
109+
/**
110+
* @}
111+
*/
112+
113+
114+
/** @defgroup USBD_CORE_Exported_Types
115+
* @{
116+
*/
117+
118+
/**
119+
* @}
120+
*/
121+
/** @defgroup USBD_CORE_Exported_FunctionsPrototypes
122+
* @{
123+
*/
124+
void MSC_BOT_Init (USBD_HandleTypeDef *pdev);
125+
void MSC_BOT_Reset (USBD_HandleTypeDef *pdev);
126+
void MSC_BOT_DeInit (USBD_HandleTypeDef *pdev);
127+
void MSC_BOT_DataIn (USBD_HandleTypeDef *pdev,
128+
uint8_t epnum);
129+
130+
void MSC_BOT_DataOut (USBD_HandleTypeDef *pdev,
131+
uint8_t epnum);
132+
133+
void MSC_BOT_SendCSW (USBD_HandleTypeDef *pdev,
134+
uint8_t CSW_Status);
135+
136+
void MSC_BOT_CplClrFeature (USBD_HandleTypeDef *pdev,
137+
uint8_t epnum);
138+
/**
139+
* @}
140+
*/
141+
142+
#endif /* __USBD_MSC_BOT_H */
143+
/**
144+
* @}
145+
*/
146+
147+
/**
148+
* @}
149+
*/
150+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
151+

0 commit comments

Comments
 (0)