|
|
|
|
|
|
|
|
#include <stddef.h> |
|
|
#include <stddef.h> |
|
|
|
|
|
|
|
|
#define ENDPOINT_UNUSED 0x00 |
|
|
#define ENDPOINT_UNUSED 0x00 |
|
|
#define ENDPOINT_TRANSIMIT_ONLY 0x15 |
|
|
|
|
|
|
|
|
#define ENDPOINT_TRANSMIT_ONLY 0x15 |
|
|
#define ENDPOINT_RECEIVE_ONLY 0x19 |
|
|
#define ENDPOINT_RECEIVE_ONLY 0x19 |
|
|
#define ENDPOINT_TRANSMIT_AND_RECEIVE 0x1D |
|
|
#define ENDPOINT_TRANSMIT_AND_RECEIVE 0x1D |
|
|
#define ENDPOINT_RECEIVE_ISOCHRONOUS 0x18 |
|
|
#define ENDPOINT_RECEIVE_ISOCHRONOUS 0x18 |
|
|
|
|
|
|
|
|
#define CDC_ACM_SIZE 16 |
|
|
#define CDC_ACM_SIZE 16 |
|
|
#define CDC_RX_SIZE 64 |
|
|
#define CDC_RX_SIZE 64 |
|
|
#define CDC_TX_SIZE 64 |
|
|
#define CDC_TX_SIZE 64 |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT2_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_KEYBOARDONLY) |
|
|
#elif defined(USB_KEYBOARDONLY) |
|
|
#define VENDOR_ID 0x16C0 |
|
|
#define VENDOR_ID 0x16C0 |
|
|
|
|
|
|
|
|
#define KEYMEDIA_ENDPOINT 4 |
|
|
#define KEYMEDIA_ENDPOINT 4 |
|
|
#define KEYMEDIA_SIZE 8 |
|
|
#define KEYMEDIA_SIZE 8 |
|
|
#define KEYMEDIA_INTERVAL 4 |
|
|
#define KEYMEDIA_INTERVAL 4 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_HID) |
|
|
#elif defined(USB_HID) |
|
|
#define VENDOR_ID 0x16C0 |
|
|
#define VENDOR_ID 0x16C0 |
|
|
|
|
|
|
|
|
#define JOYSTICK_ENDPOINT 4 |
|
|
#define JOYSTICK_ENDPOINT 4 |
|
|
#define JOYSTICK_SIZE 12 // 12 = normal, 64 = extreme joystick |
|
|
#define JOYSTICK_SIZE 12 // 12 = normal, 64 = extreme joystick |
|
|
#define JOYSTICK_INTERVAL 2 |
|
|
#define JOYSTICK_INTERVAL 2 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_SERIAL_HID) |
|
|
#elif defined(USB_SERIAL_HID) |
|
|
#define VENDOR_ID 0x16C0 |
|
|
#define VENDOR_ID 0x16C0 |
|
|
|
|
|
|
|
|
#define JOYSTICK_ENDPOINT 6 |
|
|
#define JOYSTICK_ENDPOINT 6 |
|
|
#define JOYSTICK_SIZE 12 // 12 = normal, 64 = extreme joystick |
|
|
#define JOYSTICK_SIZE 12 // 12 = normal, 64 = extreme joystick |
|
|
#define JOYSTICK_INTERVAL 1 |
|
|
#define JOYSTICK_INTERVAL 1 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT2_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT2_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT7_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT7_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_TOUCHSCREEN) |
|
|
#elif defined(USB_TOUCHSCREEN) |
|
|
#define VENDOR_ID 0x16C0 |
|
|
#define VENDOR_ID 0x16C0 |
|
|
|
|
|
|
|
|
#define MULTITOUCH_ENDPOINT 5 |
|
|
#define MULTITOUCH_ENDPOINT 5 |
|
|
#define MULTITOUCH_SIZE 8 |
|
|
#define MULTITOUCH_SIZE 8 |
|
|
#define MULTITOUCH_FINGERS 10 |
|
|
#define MULTITOUCH_FINGERS 10 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_HID_TOUCHSCREEN) |
|
|
#elif defined(USB_HID_TOUCHSCREEN) |
|
|
#define VENDOR_ID 0x16C0 |
|
|
#define VENDOR_ID 0x16C0 |
|
|
|
|
|
|
|
|
#define MULTITOUCH_ENDPOINT 5 |
|
|
#define MULTITOUCH_ENDPOINT 5 |
|
|
#define MULTITOUCH_SIZE 8 |
|
|
#define MULTITOUCH_SIZE 8 |
|
|
#define MULTITOUCH_FINGERS 10 |
|
|
#define MULTITOUCH_FINGERS 10 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_MIDI) |
|
|
#elif defined(USB_MIDI) |
|
|
#define VENDOR_ID 0x16C0 |
|
|
#define VENDOR_ID 0x16C0 |
|
|
|
|
|
|
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_RX_ENDPOINT 4 |
|
|
#define MIDI_RX_ENDPOINT 4 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_MIDI4) |
|
|
#elif defined(USB_MIDI4) |
|
|
|
|
|
|
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_RX_ENDPOINT 4 |
|
|
#define MIDI_RX_ENDPOINT 4 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_MIDI16) |
|
|
#elif defined(USB_MIDI16) |
|
|
|
|
|
|
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_RX_ENDPOINT 4 |
|
|
#define MIDI_RX_ENDPOINT 4 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_MIDI_SERIAL) |
|
|
#elif defined(USB_MIDI_SERIAL) |
|
|
|
|
|
|
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_RX_ENDPOINT 5 |
|
|
#define MIDI_RX_ENDPOINT 5 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_MIDI4_SERIAL) |
|
|
#elif defined(USB_MIDI4_SERIAL) |
|
|
|
|
|
|
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_RX_ENDPOINT 5 |
|
|
#define MIDI_RX_ENDPOINT 5 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_MIDI16_SERIAL) |
|
|
#elif defined(USB_MIDI16_SERIAL) |
|
|
|
|
|
|
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_TX_SIZE 64 |
|
|
#define MIDI_RX_ENDPOINT 5 |
|
|
#define MIDI_RX_ENDPOINT 5 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define MIDI_RX_SIZE 64 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_RAWHID) |
|
|
#elif defined(USB_RAWHID) |
|
|
|
|
|
|
|
|
#define SEREMU_RX_ENDPOINT 2 |
|
|
#define SEREMU_RX_ENDPOINT 2 |
|
|
#define SEREMU_RX_SIZE 32 |
|
|
#define SEREMU_RX_SIZE 32 |
|
|
#define SEREMU_RX_INTERVAL 2 |
|
|
#define SEREMU_RX_INTERVAL 2 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_FLIGHTSIM) |
|
|
#elif defined(USB_FLIGHTSIM) |
|
|
|
|
|
|
|
|
#define SEREMU_RX_ENDPOINT 2 |
|
|
#define SEREMU_RX_ENDPOINT 2 |
|
|
#define SEREMU_RX_SIZE 32 |
|
|
#define SEREMU_RX_SIZE 32 |
|
|
#define SEREMU_RX_INTERVAL 2 |
|
|
#define SEREMU_RX_INTERVAL 2 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#elif defined(USB_FLIGHTSIM_JOYSTICK) |
|
|
#elif defined(USB_FLIGHTSIM_JOYSTICK) |
|
|
|
|
|
|
|
|
#define JOYSTICK_ENDPOINT 5 |
|
|
#define JOYSTICK_ENDPOINT 5 |
|
|
#define JOYSTICK_SIZE 12 // 12 = normal, 64 = extreme joystick |
|
|
#define JOYSTICK_SIZE 12 // 12 = normal, 64 = extreme joystick |
|
|
#define JOYSTICK_INTERVAL 1 |
|
|
#define JOYSTICK_INTERVAL 1 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined(USB_MTPDISK) |
|
|
#elif defined(USB_MTPDISK) |
|
|
|
|
|
|
|
|
#define SEREMU_RX_ENDPOINT 2 |
|
|
#define SEREMU_RX_ENDPOINT 2 |
|
|
#define SEREMU_RX_SIZE 32 |
|
|
#define SEREMU_RX_SIZE 32 |
|
|
#define SEREMU_RX_INTERVAL 2 |
|
|
#define SEREMU_RX_INTERVAL 2 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
|
|
|
|
|
|
#define AUDIO_RX_ENDPOINT 4 |
|
|
#define AUDIO_RX_ENDPOINT 4 |
|
|
#define AUDIO_RX_SIZE 180 |
|
|
#define AUDIO_RX_SIZE 180 |
|
|
#define AUDIO_SYNC_ENDPOINT 5 |
|
|
#define AUDIO_SYNC_ENDPOINT 5 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ISOCHRONOUS |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ISOCHRONOUS |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ISOCHRONOUS |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ISOCHRONOUS |
|
|
|
|
|
|
|
|
#define AUDIO_RX_ENDPOINT 7 |
|
|
#define AUDIO_RX_ENDPOINT 7 |
|
|
#define AUDIO_RX_SIZE 180 |
|
|
#define AUDIO_RX_SIZE 180 |
|
|
#define AUDIO_SYNC_ENDPOINT 8 |
|
|
#define AUDIO_SYNC_ENDPOINT 8 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ISOCHRONOUS |
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ISOCHRONOUS |
|
|
#define ENDPOINT7_CONFIG ENDPOINT_RECEIVE_ISOCHRONOUS |
|
|
#define ENDPOINT7_CONFIG ENDPOINT_RECEIVE_ISOCHRONOUS |
|
|
|
|
|
|
|
|
#define AUDIO_RX_ENDPOINT 7 |
|
|
#define AUDIO_RX_ENDPOINT 7 |
|
|
#define AUDIO_RX_SIZE 180 |
|
|
#define AUDIO_RX_SIZE 180 |
|
|
#define AUDIO_SYNC_ENDPOINT 8 |
|
|
#define AUDIO_SYNC_ENDPOINT 8 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT5_CONFIG ENDPOINT_RECEIVE_ONLY |
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ISOCHRONOUS |
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ISOCHRONOUS |
|
|
#define ENDPOINT7_CONFIG ENDPOINT_RECEIVE_ISOCHRONOUS |
|
|
#define ENDPOINT7_CONFIG ENDPOINT_RECEIVE_ISOCHRONOUS |
|
|
|
|
|
|
|
|
#define MULTITOUCH_ENDPOINT 15 |
|
|
#define MULTITOUCH_ENDPOINT 15 |
|
|
#define MULTITOUCH_SIZE 8 |
|
|
#define MULTITOUCH_SIZE 8 |
|
|
#define MULTITOUCH_FINGERS 10 |
|
|
#define MULTITOUCH_FINGERS 10 |
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT2_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
#define ENDPOINT5_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT7_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT7_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT8_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT8_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT9_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT9_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT10_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT10_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT11_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT11_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE |
|
|
#define ENDPOINT12_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT12_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
#define ENDPOINT13_CONFIG (ENDPOINT_RECEIVE_ISOCHRONOUS|ENDPOINT_TRANSMIT_ISOCHRONOUS) |
|
|
#define ENDPOINT13_CONFIG (ENDPOINT_RECEIVE_ISOCHRONOUS|ENDPOINT_TRANSMIT_ISOCHRONOUS) |
|
|
#define ENDPOINT14_CONFIG ENDPOINT_TRANSMIT_ISOCHRONOUS |
|
|
#define ENDPOINT14_CONFIG ENDPOINT_TRANSMIT_ISOCHRONOUS |
|
|
#define ENDPOINT15_CONFIG ENDPOINT_TRANSIMIT_ONLY |
|
|
|
|
|
|
|
|
#define ENDPOINT15_CONFIG ENDPOINT_TRANSMIT_ONLY |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|