Browse Source

Fix USB descriptors, unique PIDs for newer USB types

teensy4-core
PaulStoffregen 8 years ago
parent
commit
df8958ff5f
1 changed files with 14 additions and 12 deletions
  1. +14
    -12
      teensy3/usb_desc.h

+ 14
- 12
teensy3/usb_desc.h View File



#elif defined(USB_KEYBOARDONLY) #elif defined(USB_KEYBOARDONLY)
#define VENDOR_ID 0x16C0 #define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x0482 // TODO: unique
#define PRODUCT_ID 0x04D0
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11 #define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'K','e','y','b','o','a','r','d'} #define PRODUCT_NAME {'K','e','y','b','o','a','r','d'}


#elif defined(USB_TOUCHSCREEN) #elif defined(USB_TOUCHSCREEN)
#define VENDOR_ID 0x16C0 #define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x048B
#define PRODUCT_ID 0x04D3
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11 #define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'K','e','y','b','o','a','r','d','/','T','o','u','c','h','s','c','r','e','e','n'} #define PRODUCT_NAME {'K','e','y','b','o','a','r','d','/','T','o','u','c','h','s','c','r','e','e','n'}


#elif defined(USB_HID_TOUCHSCREEN) #elif defined(USB_HID_TOUCHSCREEN)
#define VENDOR_ID 0x16C0 #define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x048C
#define PRODUCT_ID 0x04D4
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11 #define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'K','e','y','b','o','a','r','d','/','M','o','u','s','e','/','T','o','u','c','h','s','c','r','e','e','n'} #define PRODUCT_NAME {'K','e','y','b','o','a','r','d','/','M','o','u','s','e','/','T','o','u','c','h','s','c','r','e','e','n'}


#elif defined(USB_MIDI_SERIAL) #elif defined(USB_MIDI_SERIAL)
#define VENDOR_ID 0x16C0 #define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x0485 // TODO: unique
#define PRODUCT_ID 0x0489
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11 #define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'T','e','e','n','s','y',' ','M','I','D','I'} #define PRODUCT_NAME {'T','e','e','n','s','y',' ','M','I','D','I'}


#elif defined(USB_FLIGHTSIM_JOYSTICK) #elif defined(USB_FLIGHTSIM_JOYSTICK)
#define VENDOR_ID 0x16C0 #define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x048D
#define PRODUCT_ID 0x04D9
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11 #define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'T','e','e','n','s','y',' ','F','l','i','g','h','t',' ','S','i','m',' ','C','o','n','t','r','o','l','s'} #define PRODUCT_NAME {'T','e','e','n','s','y',' ','F','l','i','g','h','t',' ','S','i','m',' ','C','o','n','t','r','o','l','s'}


#elif defined(USB_MTPDISK) #elif defined(USB_MTPDISK)
#define VENDOR_ID 0x16C0 #define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x0489
#define PRODUCT_ID 0x04D1
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11 #define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'T','e','e','n','s','y',' ','M','T','P',' ','D','i','s','k'} #define PRODUCT_NAME {'T','e','e','n','s','y',' ','M','T','P',' ','D','i','s','k'}


#elif defined(USB_AUDIO) #elif defined(USB_AUDIO)
#define VENDOR_ID 0x16C0 #define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x048A
#define PRODUCT_ID 0x04D2
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11 #define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'T','e','e','n','s','y',' ','A','u','d','i','o'} #define PRODUCT_NAME {'T','e','e','n','s','y',' ','A','u','d','i','o'}


#elif defined(USB_MIDI_AUDIO_SERIAL) #elif defined(USB_MIDI_AUDIO_SERIAL)
#define VENDOR_ID 0x16C0 #define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x0485 // TODO: unique
#define PRODUCT_ID 0x048A
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define MANUFACTURER_NAME_LEN 11 #define MANUFACTURER_NAME_LEN 11
#define PRODUCT_NAME {'T','e','e','n','s','y',' ','M','I','D','I','/','A','u','d','i','o'} #define PRODUCT_NAME {'T','e','e','n','s','y',' ','M','I','D','I','/','A','u','d','i','o'}
#define EP0_SIZE 64 #define EP0_SIZE 64
#define NUM_ENDPOINTS 15 #define NUM_ENDPOINTS 15
#define NUM_USB_BUFFERS 31 #define NUM_USB_BUFFERS 31
#define NUM_INTERFACE 12
#define NUM_INTERFACE 13
#define CDC_IAD_DESCRIPTOR 1 #define CDC_IAD_DESCRIPTOR 1
#define CDC_STATUS_INTERFACE 0 #define CDC_STATUS_INTERFACE 0
#define CDC_DATA_INTERFACE 1 // Serial #define CDC_DATA_INTERFACE 1 // Serial
#define JOYSTICK_ENDPOINT 10 #define JOYSTICK_ENDPOINT 10
#define JOYSTICK_SIZE 16 #define JOYSTICK_SIZE 16
#define JOYSTICK_INTERVAL 1 #define JOYSTICK_INTERVAL 1
/*
#define MTP_INTERFACE 8 // MTP Disk #define MTP_INTERFACE 8 // MTP Disk
#define MTP_TX_ENDPOINT 11 #define MTP_TX_ENDPOINT 11
#define MTP_TX_SIZE 64 #define MTP_TX_SIZE 64
#define MTP_EVENT_ENDPOINT 11 #define MTP_EVENT_ENDPOINT 11
#define MTP_EVENT_SIZE 16 #define MTP_EVENT_SIZE 16
#define MTP_EVENT_INTERVAL 10 #define MTP_EVENT_INTERVAL 10
#define KEYMEDIA_INTERFACE 9 // Keyboard Media Keys
*/
#define KEYMEDIA_INTERFACE 8 // Keyboard Media Keys
#define KEYMEDIA_ENDPOINT 12 #define KEYMEDIA_ENDPOINT 12
#define KEYMEDIA_SIZE 8 #define KEYMEDIA_SIZE 8
#define KEYMEDIA_INTERVAL 4 #define KEYMEDIA_INTERVAL 4
#define AUDIO_INTERFACE 10 // Audio (uses 3 consecutive interfaces)
#define AUDIO_INTERFACE 9 // Audio (uses 3 consecutive interfaces)
#define AUDIO_TX_ENDPOINT 13 #define AUDIO_TX_ENDPOINT 13
#define AUDIO_TX_SIZE 180 #define AUDIO_TX_SIZE 180
#define AUDIO_RX_ENDPOINT 13 #define AUDIO_RX_ENDPOINT 13
#define AUDIO_RX_SIZE 180 #define AUDIO_RX_SIZE 180
#define AUDIO_SYNC_ENDPOINT 14 #define AUDIO_SYNC_ENDPOINT 14
#define MULTITOUCH_INTERFACE 11 // Touchscreen
#define MULTITOUCH_INTERFACE 12 // Touchscreen
#define MULTITOUCH_ENDPOINT 15 #define MULTITOUCH_ENDPOINT 15
#define MULTITOUCH_SIZE 9 #define MULTITOUCH_SIZE 9
#define MULTITOUCH_FINGERS 10 #define MULTITOUCH_FINGERS 10

Loading…
Cancel
Save