Move frame settings to usb_descriptors.h

This commit is contained in:
kkitayam 2021-09-30 01:13:19 +09:00
parent 4ca466b00b
commit 831443a2dc
3 changed files with 5 additions and 8 deletions

View File

@ -29,6 +29,7 @@
#include "bsp/board.h"
#include "tusb.h"
#include "usb_descriptors.h"
#include "images.h"
//--------------------------------------------------------------------+

View File

@ -105,14 +105,6 @@
// video streaming endpoint size
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE 256
//--------------------------------------------------------------------
// APPLICATION CONFIGURATION
//--------------------------------------------------------------------
#define FRAME_WIDTH 128
#define FRAME_HEIGHT 96
#define FRAME_RATE 10
#ifdef __cplusplus
}
#endif

View File

@ -33,6 +33,10 @@
#define UVC_ENTITY_CAP_INPUT_TERMINAL 0x01
#define UVC_ENTITY_CAP_OUTPUT_TERMINAL 0x02
#define FRAME_WIDTH 128
#define FRAME_HEIGHT 96
#define FRAME_RATE 10
enum {
ITF_NUM_VIDEO_CONTROL = 0,
ITF_NUM_VIDEO_STREAMING,