forked from stm/stm32-mw-usb-device
Release v2.9.0
This commit is contained in:
@@ -6,13 +6,12 @@
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* <h2><center>© Copyright (c) 2020 STMicroelectronics.
|
||||
* All rights reserved.</center></h2>
|
||||
* Copyright (c) 2020 STMicroelectronics.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software component is licensed by ST under Ultimate Liberty license
|
||||
* SLA0044, the "License"; You may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at:
|
||||
* www.st.com/SLA0044
|
||||
* This software is licensed under terms that can be found in the LICENSE file
|
||||
* in the root directory of this software component.
|
||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
@@ -413,7 +412,6 @@ typedef struct
|
||||
int8_t (* DeInit)(void);
|
||||
int8_t (* Control)(uint8_t, uint8_t *, uint16_t);
|
||||
int8_t (* Data)(uint8_t **, uint16_t *, uint16_t *);
|
||||
uint8_t *pStrDesc;
|
||||
} USBD_VIDEO_ItfTypeDef;
|
||||
|
||||
/* UVC uses only 26 first bytes */
|
||||
|
||||
@@ -6,13 +6,12 @@
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* <h2><center>© Copyright (c) 2020 STMicroelectronics.
|
||||
* All rights reserved.</center></h2>
|
||||
* Copyright (c) 2020 STMicroelectronics.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software component is licensed by ST under Ultimate Liberty license
|
||||
* SLA0044, the "License"; You may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at:
|
||||
* www.st.com/SLA0044
|
||||
* This software is licensed under terms that can be found in the LICENSE file
|
||||
* in the root directory of this software component.
|
||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
@@ -114,6 +113,25 @@ void TransferComplete_CallBack_FS(void);
|
||||
*/
|
||||
void HalfTransfer_CallBack_FS(void);
|
||||
|
||||
|
||||
|
||||
#define IMG_NBR 1U
|
||||
#define IMAGE_SIZE 0x1U
|
||||
|
||||
const uint8_t image[] = {0x00};
|
||||
const uint8_t *tImagesList[] = {image};
|
||||
uint16_t tImagesSizes[] = {IMAGE_SIZE};
|
||||
|
||||
/* Time laps between video frames in ms.
|
||||
Please adjust this value depending on required speed.
|
||||
Please note that this define uses the system HAL_Delay() which uses the systick.
|
||||
In case of changes on HAL_Delay, please ensure the values in ms correspond. */
|
||||
#ifdef USE_USB_HS
|
||||
#define USBD_VIDEO_IMAGE_LAPS 160U
|
||||
#else
|
||||
#define USBD_VIDEO_IMAGE_LAPS 80U
|
||||
#endif /* USE_USB_HS */
|
||||
|
||||
/* USER CODE BEGIN EXPORTED_FUNCTIONS */
|
||||
|
||||
/* USER CODE END EXPORTED_FUNCTIONS */
|
||||
@@ -136,7 +154,3 @@ void HalfTransfer_CallBack_FS(void);
|
||||
|
||||
#endif /* USBD_VIDEO_IF_H_ */
|
||||
|
||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user