Browse Source

Move frame settings to usb_descriptors.h

kkitayam 4 years ago
parent
commit
831443a2dc

+ 1 - 0
examples/device/video_capture/src/main.c

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

+ 0 - 8
examples/device/video_capture/src/tusb_config.h

@@ -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

+ 4 - 0
examples/device/video_capture/src/usb_descriptors.h

@@ -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,