6.5. uvc_camera说明

6.5.1. USB配置

版籍

#ifdef CONFIG_USB_ENABLE
static const struct otg_dev_data otg_data = {
    .usb_dev_en = 0x03,
#if TCFG_USB_SLAVE_ENABLE
    .slave_online_cnt = 10,
    .slave_offline_cnt = 10,
#endif
#if TCFG_USB_HOST_ENABLE
    .host_online_cnt = 10,
    .host_offline_cnt = 10,
#endif
    .detect_mode = OTG_HOST_MODE | OTG_SLAVE_MODE | OTG_CHARGE_MODE,
    .detect_time_interval = 50,
};
#endif

{ "otg", &usb_dev_ops, (void *)&otg_data},//注册USB设备

app_config.h 需要使能UVC宏即可

#define TCFG_HOST_UVC_ENABLE    1//打开USB 后拉摄像头功能,需要使能住机模式

具体应用请查看 apps/wifi_camera/ui_camera_demo/camera_lcd_only_show_demo.c

带UI的请查看 apps/wifi_camera/ui_camera_demo/camera_demo.c