USB Composite support
Dependents: mbed_cdc_hid_composite
Fork of USBDevice by
readme.txt@55:7c559fcb1d17, 2015-05-31 (annotated)
- Committer:
- steeven
- Date:
- Sun May 31 15:36:50 2015 +0000
- Revision:
- 55:7c559fcb1d17
Make USBDevice support Composite
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
steeven | 55:7c559fcb1d17 | 1 | UsbDeviceComposite |
steeven | 55:7c559fcb1d17 | 2 | |
steeven | 55:7c559fcb1d17 | 3 | !!! only tested CDC on LPC1768 |
steeven | 55:7c559fcb1d17 | 4 | TODO: |
steeven | 55:7c559fcb1d17 | 5 | 0. need to associate max packet length with endpoint |
steeven | 55:7c559fcb1d17 | 6 | 1. Rework HID |
steeven | 55:7c559fcb1d17 | 7 | 2. test Composite |
steeven | 55:7c559fcb1d17 | 8 | 3. rework device... |
steeven | 55:7c559fcb1d17 | 9 | 4. rework all HAL drivers |
steeven | 55:7c559fcb1d17 | 10 | |
steeven | 55:7c559fcb1d17 | 11 | Why not direct extend to USBDevice? |
steeven | 55:7c559fcb1d17 | 12 | USBDevice has to be shared to multiple interfaces of a composite device |
steeven | 55:7c559fcb1d17 | 13 | Why not multi-extend? |
steeven | 55:7c559fcb1d17 | 14 | Some time need to implement 2 CDC or HIDs, can't extend twoice |
steeven | 55:7c559fcb1d17 | 15 | |
steeven | 55:7c559fcb1d17 | 16 | Composite Sample: |
steeven | 55:7c559fcb1d17 | 17 | UsbComposite usb; |
steeven | 55:7c559fcb1d17 | 18 | USBHID hid(&usb); |
steeven | 55:7c559fcb1d17 | 19 | USBSerial ser(&usb); |
steeven | 55:7c559fcb1d17 | 20 | |
steeven | 55:7c559fcb1d17 | 21 | Single interface Sample: |
steeven | 55:7c559fcb1d17 | 22 | USBHID hid; |