Skip to content

Commit

Permalink
Merge pull request #648 from KurtE/serial_mtp_t3x
Browse files Browse the repository at this point in the history
T3.x - Add Serial+MTP
  • Loading branch information
PaulStoffregen committed Jun 7, 2022
2 parents 35cec7d + f129ce0 commit 8344266
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions teensy3/usb_desc.h
Expand Up @@ -736,6 +736,47 @@ let me know? http://forum.pjrc.com/forums/4-Suggestions-amp-Bug-Reports
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE

#elif defined(USB_MTPDISK_SERIAL)
#define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x04D5
#define DEVICE_CLASS 0xEF
#define DEVICE_SUBCLASS 0x02
#define DEVICE_PROTOCOL 0x01
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'T','e','e','n','s','y',' ','M','T','P',' ','D','i','s','k'}
#define PRODUCT_NAME_LEN 15
#define EP0_SIZE 64

#define NUM_ENDPOINTS 6
#define NUM_USB_BUFFERS 20
#define NUM_INTERFACE 3

#define CDC_IAD_DESCRIPTOR 1
#define CDC_STATUS_INTERFACE 0
#define CDC_DATA_INTERFACE 1 // Serial
#define CDC_ACM_ENDPOINT 1
#define CDC_RX_ENDPOINT 2
#define CDC_TX_ENDPOINT 3
#define CDC_ACM_SIZE 16
#define CDC_RX_SIZE 64
#define CDC_TX_SIZE 64

#define MTP_INTERFACE 2 // MTP Disk
#define MTP_TX_ENDPOINT 4
#define MTP_TX_SIZE 64
#define MTP_RX_ENDPOINT 5
#define MTP_RX_SIZE 64
#define MTP_EVENT_ENDPOINT 6
#define MTP_EVENT_SIZE 32
#define MTP_EVENT_INTERVAL 10
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ONLY

#elif defined(USB_AUDIO)
#define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x04D2
Expand Down

0 comments on commit 8344266

Please sign in to comment.