Commit Graph

1397 Commits

Author SHA1 Message Date
hathach
fc9321ce26 correct cdc usbh_driver_set_config_complete() 2022-12-16 23:54:21 +07:00
hathach
4811b3463f stub 2022-12-16 17:08:37 +07:00
hathach
bd1f7f86ce add common EPSIZE for bulk/iso in full and highspeed
adding cdc host fifo tx/rx
2022-12-16 17:08:37 +07:00
hathach
f62f973956 minor rename 2022-12-16 17:08:37 +07:00
hathach
f0c51eae44 cdc check for bNumEndpoints before checking for endpoint descriptor 2022-12-16 17:08:37 +07:00
hathach
4f03695084 adding tuh_cdc_mount_cb/tuh_cdc_umount_cb
start adding cdc_app.c to example
2022-12-16 17:08:37 +07:00
hathach
96d2be905b fix build with usbtmc 2022-12-15 18:47:54 +07:00
hathach
88e6da7273 use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEX
add macro to swallow mutex API in order to simplify code with mutex
2022-12-15 18:03:01 +07:00
scoudreau
007ed1f0fe Added missing typecast to pass build checks 2022-12-08 14:50:34 +01:00
Sebastien COUDREAU
15ab35d9b8 usbtmc: correct packet size bug
Code was only reading the first 64 bytes of a 512 bytes packet.
2022-12-08 11:35:32 +01:00
hathach
19400c8556 fix typo, add -Wno-error=unreachable-code for fuzz due to latest cdc changes 2022-12-08 10:30:22 +07:00
Tomas Rezucha
603effbb77 cdc: Fix autoflush for FIFO < MPS 2022-12-06 07:49:26 +01:00
Ha Thach
f03c28ec31 Merge pull request #1776 from hathach/hid-fido
Hid fido
2022-12-05 14:32:49 +07:00
hathach
d58120647a rename to match fido sample uf2_hid..h 2022-12-05 13:18:05 +07:00
hathach
43b255f413 more typos 2022-12-04 19:44:01 +07:00
Bastien Nocera
6a2cf67289 Fix typos 2022-12-04 19:43:23 +07:00
hathach
7298923927 rework tuh_msc_complete_cb_t signature to use new tuh_msc_complete_data_t
add user arg to all scsi command API that support complete callback
2022-11-23 16:01:48 +07:00
Andrzej Tokarski
b41f5eadb3 Merge branch 'master' into midihost 2022-11-21 21:45:10 +01:00
atoktoto
89eac75085 Explicit type conversion 2022-11-21 13:49:43 +01:00
atoktoto
3ba0311078 Explicit type conversion 2022-11-21 12:36:50 +01:00
atoktoto
34729b1dc4 Fix usb-hub data transfer problems by AndrewCapon 2022-11-21 10:29:26 +01:00
hathach
64ecf43663 whitespace 2022-11-21 11:53:15 +07:00
atoktoto
0a844f2a30 Fix usb hubs 2022-11-19 18:08:31 +01:00
atoktoto
21e003af22 Added explicit conversions 2022-11-13 14:38:33 +01:00
atok
a6d4b64bec Removed unused function prototype 2022-11-13 14:31:12 +01:00
atok
19563b4414 Simple MIDI rx example 2022-11-13 14:31:12 +01:00
atok
4fbf99621d Get rid of implicit uint conversions 2022-11-13 14:30:53 +01:00
rppicomidi
3325e2613d Make USB MIDI device code allow a device with no Audio Control interface 2022-11-13 14:29:16 +01:00
rppicomidi
2ddd74fada Add MIDI host support to tinyusb 2022-11-13 14:29:16 +01:00
Mark K Cowan
9673d20901 PanRe refactor applied: s{_int_ctr_}{_int_}g; s{_INT_CTR_}{_INT_}g; 2022-10-26 21:43:27 +03:00
Mark K Cowan
15ed45e1a3 clean up descriptor search for interrupt endpoint 2022-10-26 21:40:30 +03:00
Ha Thach
28f49c088b Merge pull request #1698 from battlesnake/fix-attrs-on-struct-member
do not apply storage attributes to member of struct
2022-10-25 15:23:09 +07:00
Mark K Cowan
025d3477e8 fixed spec reference 2022-10-24 20:41:09 +03:00
Mark K Cowan
815c2cc995 keep alignment spec 2022-10-24 20:36:45 +03:00
Mark K Cowan
f931983469 UAC2 supports interrupt-endpoint for providing control-change notifications to the host 2022-10-23 13:38:24 +03:00
Mark K Cowan
4ec1643bdb do not apply storage attributes to member of struct 2022-10-20 22:46:21 +03:00
Ha Thach
e79325adec Merge pull request #1668 from kkitayam/add_support_for_mjpeg
Add support for MJPEG on UVC
2022-10-19 23:10:11 +07:00
gaoyichuan
3846d5f38c hid: add configurable report size for fido 2022-10-15 19:22:21 +08:00
gaoyichuan
2a520fb921 hid: add fido hid descriptor templates 2022-10-15 19:07:07 +08:00
kkitayam
53dc9d55b5 Fix pointer type to calculate streaming parameter 2022-10-12 20:41:03 +09:00
kkitayam
4be7ffd63f Fix max payload size to clip at 1023 2022-10-07 21:30:03 +09:00
kkitayam
ee832e4e37 Fix descriptor searching 2022-10-03 21:41:58 +09:00
Mark K Cowan
6c3c2df823 audio_device: prototype added for function referenced before use 2022-09-17 21:27:04 +03:00
Ben Avison
62d90c8500 Move variable into its own curly-brace scope
IAR generates warning Pe546 'transfer of control bypasses initialization of
variable "invInvTag"'.
2022-09-13 18:00:51 +01:00
Ben Avison
caff3b5c54 Remove unused static data
This affects struct rspMsg in usbtmc_app.c (unconditionally) and uint8_t
termChar in usbtmc_device.c (when NDEBUG is defined). IAR generates warning
Pe550 'variable was set but never used'.
2022-09-13 18:00:51 +01:00
Ben Avison
6a2d01bae4 Don't assume different enum types can be combined
IAR generates warning Pa089 'enumerated type mixed with another enumerated
type'.
2022-09-13 18:00:51 +01:00
Ben Avison
53f0d5538b Don't assume ints automatically convert to enums
IAR generates warning Pe188 'enumerated type mixed with another type'.
2022-09-13 18:00:50 +01:00
Ben Avison
65ba15c37d Remove unreachable code
IAR generates warning Pe111 'statement is unreachable'. In a couple of
cases, replace return statements with TU_ATTR_FALLTHROUGH; because some
compilers apparently can't figure out that the return statements are
unreachable but do whinge about an imagined fall-through without them!
2022-09-13 18:00:50 +01:00
Ben Avison
16518dcbbb Refactor pointer arithmetic on void*
This is a GCC extension, illegal in ISO C. IAR generates errors Pa152
'these operand types cannot be used here' and Pe852 'expression must be a
pointer to a complete object type'.

Replace with uint8_t*.
2022-09-13 18:00:49 +01:00
kkitayam
1debf62707 Fix compile errors 2022-09-13 21:22:02 +09:00