Geert Uytterhoeven
4148e650d0
teensy3: Add support for a second USB serial port
Add support for a dual serial port configuration (USB_DUAL_SERIAL),
providing a composite USB device, comprised of two serial ports.
The second serial port is called usb_serial2 (C) or SerialA (C++).
Note that no dummy C++ class is created if USB_DISABLED is defined,
unlike for the first port.
This increases binary size by ca. 1.2 KiB (720 bytes for USB buffers).
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
il y a 5 ans
Geert Uytterhoeven
a0ea852ed0
teensy3: usb_desc: Extract EMIT_CDC_IAD_DESCRIPTOR() macro
Create a macro to emit all values for a CDC Interface Association
Descriptor, and use it.
This will avoid duplication when adding support for multiple USB serial
interfaces.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
il y a 5 ans
Geert Uytterhoeven
dc46850b68
teensy3: usb_desc: Extract EMIT_CDC_DESCRIPTORS() macro
Create a macro to emit all values for the various CDC descriptors, and
use it. Note that this does not include the CDC Interface Association
Descriptor, as the latter is needed only for composite USB devices.
This will avoid duplication when adding support for multiple USB serial
interfaces.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
il y a 5 ans
PaulStoffregen
d4d59c98b7
Don't reference even more non-existant usb string descriptors
il y a 5 ans
PaulStoffregen
d9fe2d70a4
Don't reference non-existant usb string descriptor
fixes #293, fixes #414
il y a 5 ans
PaulStoffregen
6a30e80658
Add bcdDevice info to help teensy_ports identify models
il y a 6 ans
PaulStoffregen
72898fdcd4
Fix bcdUSB, was 1.01, not 1.10
il y a 7 ans
PaulStoffregen
4c72e401e3
Rework USB Touchscreen handling of pressure & contact ID
il y a 7 ans
PaulStoffregen
6e50efa1d3
Do not send Contact Count (HID Usage 0x54) with USB Touchscreen
il y a 7 ans
PaulStoffregen
6d49f67650
Fix MIDI MS Interface Header wTotalLength (thanks Lauszus)
il y a 7 ans
PaulStoffregen
c9d0122505
Support multiple cables on USB MIDI
il y a 7 ans
PaulStoffregen
7099935c0e
Update open source license info
il y a 7 ans
PaulStoffregen
5128bae4e8
MTP Fixes (thanks Fredrik Hubinette)
il y a 7 ans
PaulStoffregen
e0e04e7e07
Use isochronous adaptive mode for audio transmit
il y a 7 ans
PaulStoffregen
f5f05e9ade
Add extreme joystick (disabled by default)
https://forum.pjrc.com/threads/23681-Many-axis-joystick?p=41943&viewfull=1#post41943
il y a 8 ans
PaulStoffregen
b5fb899b02
Fix USB Audio on Windows when used with USB Serial
il y a 8 ans
PaulStoffregen
10bf2bdb3d
Use HSRUN functions for USB serial number
il y a 8 ans
Defragster
2facd223a1
#ifdef version - same code - no runtime check - T_3.6 >120000000 specific code that works
https://forum.pjrc.com/threads/34808-K66-Beta-Test?p=116690&viewfull=1#post116690
il y a 8 ans
Defragster
fc8222a8c3
Drop HSRUN across Ser# read with interrupts off
Results in valid serial # presented to USB host when T_3.6 is in HSRUN mode.
il y a 8 ans
PaulStoffregen
0ed6ba9a96
Fix USB serial number on K64 & K66
il y a 8 ans
PaulStoffregen
d46a56a811
Fix USB audio feedback endpoint attributes
il y a 8 ans
PaulStoffregen
e429e0ca03
Remove debug code & clean up white space formatting
il y a 8 ans
PaulStoffregen
6ee4e0f303
Fix USB Touchscreen HID report descriptor
il y a 8 ans
PaulStoffregen
66e3239ef5
Add multi-touch definitions (experimental)
il y a 8 ans
PaulStoffregen
42cbdc49c0
Add multi-touch descriptors (experimental)
il y a 8 ans
Fernando Trias
d0fe13962f
Left/right volume, fix wTotalLength
Add support for controlling left/right volume separately. Fix
wTotalLength after adding volume feature.
il y a 8 ans
Fernando Trias
3a9025dd06
Add volume/mute feature to AudioInputUSB
Change descriptor and code to handle features for USB Audio
il y a 8 ans
PaulStoffregen
8b85a32552
Add Mouse horizontal scroll (thanks Xenoamor)
https://forum.pjrc.com/threads/33017-Teensy-3-1-Mouse-horizontal-scroll
il y a 8 ans
PaulStoffregen
7176a50afc
Fix usb audio descriptors, fixes audio output for Windows
il y a 8 ans
PaulStoffregen
d73b29c16e
Fix usb audio wChannelConfig
il y a 8 ans
PaulStoffregen
fddf08842b
Add usb audio asychronous feedback endpoint (fixed data for now)
il y a 8 ans
PaulStoffregen
47658da91f
Add USB audio descriptors (adapted from MickMad)
il y a 8 ans
PaulStoffregen
98183abe41
Simplify media keys descriptor (needed for Windows)
il y a 8 ans
PaulStoffregen
36f89903b1
Remove old media keys
il y a 8 ans
PaulStoffregen
e6759f8a30
Implement new media keys interface
il y a 8 ans
PaulStoffregen
9f513d6112
Add media keys USB descriptors
il y a 8 ans
PaulStoffregen
d1a6e77ad9
Begin work on MTP Disk
il y a 9 ans
PaulStoffregen
2f14babf7d
Simplify customizing USB - no longer need to edit interface .h files
il y a 10 ans
PaulStoffregen
8111996bdc
Simplify usb_desc.h configuration - do not require computing descriptor sizes/offsets
il y a 10 ans
PaulStoffregen
479bde6866
Use enum for IRQ numbers, rename mk20dx128.h to kinetis.h
il y a 10 ans
Andrew J. Kroll
c9d85378d7
Allow custom USB enumeration.
This patch simply checks if NUM_ENDPOINTS is defined, and will bypass the
built-in USB descriptor, device and memory code, and allows a custom setting.
This bug does not affect the IDE unless someone adds the custom option to
the boards.txt file, and provides replacement code in a library or sketch.
It can also be used to turn off USB by providing no replacements, while
allowing speeds >= 20MHz.
il y a 10 ans
PaulStoffregen
e42c5cefed
Support F_CPU < 20 MHz with USB disabled
il y a 10 ans
PaulStoffregen
d783be33c1
Clean up trailing whitespace
il y a 10 ans
PaulStoffregen
054c319248
USB Mouse on Teensy 3.x to use relative+absolulte hybrid
il y a 10 ans
PaulStoffregen
4d8a62cf65
Add zero to USB serial number, workaround for Mac OS-X CDC-ACM bug
http://forum.pjrc.com/threads/25482-Duplicate-usb-modem-number-HELP !
il y a 10 ans
PaulStoffregen
5cecdee933
Initial commit, version 1.17-rc1
il y a 11 ans