/* * @Author: Zhaozhonmin 1656963645@qq.com * @Date: 2022-06-24 17:48:35 * @LastEditors: Zhaozhonmin 1656963645@qq.com * @LastEditTime: 2023-02-06 19:04:54 * @FilePath: \zynq_ps\usb\inc\default_cfg.h * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ /* * CAMTP Responder * Copyright (c) 2020 Holdtecs Technologies * * CAMTP Responder is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * * CAMTP Responder is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License version 3 for more details. * * You should have received a copy of the GNU General Public License * along with CAMTP Responder; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /** * @file default.h * @brief Main CAMMTP protocol functions. * @author Barry Ruan */ #ifndef _INC_DEFAULT_CFG_H_ #define _INC_DEFAULT_CFG_H_ #ifndef CAMTPR_CONF_FILE #define CAMTPR_CONF_FILE "/etc/camtprd/camtprd.conf" #endif #define MAX_PACKET_SIZE 512 #define USB_DEV_VENDOR_ID 0x3072 //0x04B4 // Linux Foundation #define USB_DEV_PRODUCT_ID 0x0300 // PTP Gadget #define USB_DEV_CLASS 0xFF // Still Imaging device #define USB_DEV_SUBCLASS 0x1 // #define USB_DEV_PROTOCOL 0x1 // #define USB_DEV_VERSION 0x3008 #define USB_FFS_MODE 1 #define USB_FFS_AIO_MODE 2 #define USB_DEV "/dev/ffs-camtp/ep0" #define USB_EPIN "/dev/ffs-camtp/ep1" #define USB_EPOUT "/dev/ffs-camtp/ep2" #define USB_EPINTIN "/dev/ffs-camtp/ep3" #define MANUFACTURER "HOLDTECS Technologies" #define PRODUCT "HOLDTECS" #define SERIALNUMBER "01234567ABCDEFG" #endif