summaryrefslogtreecommitdiff
path: root/stm32cubemx/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm32cubemx/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c')
-rw-r--r--stm32cubemx/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/stm32cubemx/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c b/stm32cubemx/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c
index 093afad..e1b9c75 100644
--- a/stm32cubemx/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c
+++ b/stm32cubemx/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c
@@ -16,14 +16,14 @@
*
* http://www.st.com/software_license_agreement_liberty_v2
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
- */
+ */
/* Includes ------------------------------------------------------------------*/
#include "usbd_ioreq.h"
@@ -33,56 +33,56 @@
*/
-/** @defgroup USBD_IOREQ
+/** @defgroup USBD_IOREQ
* @brief control I/O requests module
* @{
- */
+ */
/** @defgroup USBD_IOREQ_Private_TypesDefinitions
* @{
- */
+ */
/**
* @}
- */
+ */
/** @defgroup USBD_IOREQ_Private_Defines
* @{
- */
+ */
/**
* @}
- */
+ */
/** @defgroup USBD_IOREQ_Private_Macros
* @{
- */
+ */
/**
* @}
- */
+ */
/** @defgroup USBD_IOREQ_Private_Variables
* @{
- */
+ */
/**
* @}
- */
+ */
/** @defgroup USBD_IOREQ_Private_FunctionPrototypes
* @{
- */
+ */
/**
* @}
- */
+ */
/** @defgroup USBD_IOREQ_Private_Functions
* @{
- */
+ */
/**
* @brief USBD_CtlSendData
@@ -92,17 +92,17 @@
* @param len: length of data to be sent
* @retval status
*/
-USBD_StatusTypeDef USBD_CtlSendData (USBD_HandleTypeDef *pdev,
+USBD_StatusTypeDef USBD_CtlSendData (USBD_HandleTypeDef *pdev,
uint8_t *pbuf,
uint16_t len)
{
/* Set EP0 State */
- pdev->ep0_state = USBD_EP0_DATA_IN;
+ pdev->ep0_state = USBD_EP0_DATA_IN;
pdev->ep_in[0].total_length = len;
pdev->ep_in[0].rem_length = len;
/* Start the transfer */
- USBD_LL_Transmit (pdev, 0x00, pbuf, len);
-
+ USBD_LL_Transmit (pdev, 0x00, pbuf, len);
+
return USBD_OK;
}
@@ -114,13 +114,13 @@ USBD_StatusTypeDef USBD_CtlSendData (USBD_HandleTypeDef *pdev,
* @param len: length of data to be sent
* @retval status
*/
-USBD_StatusTypeDef USBD_CtlContinueSendData (USBD_HandleTypeDef *pdev,
+USBD_StatusTypeDef USBD_CtlContinueSendData (USBD_HandleTypeDef *pdev,
uint8_t *pbuf,
uint16_t len)
{
/* Start the next transfer */
- USBD_LL_Transmit (pdev, 0x00, pbuf, len);
-
+ USBD_LL_Transmit (pdev, 0x00, pbuf, len);
+
return USBD_OK;
}
@@ -133,11 +133,11 @@ USBD_StatusTypeDef USBD_CtlContinueSendData (USBD_HandleTypeDef *pdev,
* @retval status
*/
USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef *pdev,
- uint8_t *pbuf,
+ uint8_t *pbuf,
uint16_t len)
{
/* Set EP0 State */
- pdev->ep0_state = USBD_EP0_DATA_OUT;
+ pdev->ep0_state = USBD_EP0_DATA_OUT;
pdev->ep_out[0].total_length = len;
pdev->ep_out[0].rem_length = len;
/* Start the transfer */
@@ -145,7 +145,7 @@ USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef *pdev,
0,
pbuf,
len);
-
+
return USBD_OK;
}
@@ -157,14 +157,14 @@ USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef *pdev,
* @param len: length of data to be received
* @retval status
*/
-USBD_StatusTypeDef USBD_CtlContinueRx (USBD_HandleTypeDef *pdev,
- uint8_t *pbuf,
+USBD_StatusTypeDef USBD_CtlContinueRx (USBD_HandleTypeDef *pdev,
+ uint8_t *pbuf,
uint16_t len)
{
USBD_LL_PrepareReceive (pdev,
- 0,
- pbuf,
+ 0,
+ pbuf,
len);
return USBD_OK;
}
@@ -179,10 +179,10 @@ USBD_StatusTypeDef USBD_CtlSendStatus (USBD_HandleTypeDef *pdev)
/* Set EP0 State */
pdev->ep0_state = USBD_EP0_STATUS_IN;
-
+
/* Start the transfer */
- USBD_LL_Transmit (pdev, 0x00, NULL, 0);
-
+ USBD_LL_Transmit (pdev, 0x00, NULL, 0);
+
return USBD_OK;
}
@@ -195,13 +195,13 @@ USBD_StatusTypeDef USBD_CtlSendStatus (USBD_HandleTypeDef *pdev)
USBD_StatusTypeDef USBD_CtlReceiveStatus (USBD_HandleTypeDef *pdev)
{
/* Set EP0 State */
- pdev->ep0_state = USBD_EP0_STATUS_OUT;
-
- /* Start the transfer */
+ pdev->ep0_state = USBD_EP0_STATUS_OUT;
+
+ /* Start the transfer */
USBD_LL_PrepareReceive ( pdev,
0,
NULL,
- 0);
+ 0);
return USBD_OK;
}
@@ -221,16 +221,16 @@ uint16_t USBD_GetRxCount (USBD_HandleTypeDef *pdev , uint8_t ep_addr)
/**
* @}
- */
+ */
/**
* @}
- */
+ */
/**
* @}
- */
+ */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/