Commit Graph

954 Commits

Author SHA1 Message Date
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
64ecf43663 whitespace 2022-11-21 11:53:15 +07:00
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
815c2cc995 keep alignment spec 2022-10-24 20:36:45 +03:00
4ec1643bdb do not apply storage attributes to member of struct 2022-10-20 22:46:21 +03:00
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
53dc9d55b5 Fix pointer type to calculate streaming parameter 2022-10-12 20:41:03 +09:00
4be7ffd63f Fix max payload size to clip at 1023 2022-10-07 21:30:03 +09:00
ee832e4e37 Fix descriptor searching 2022-10-03 21:41:58 +09:00
6c3c2df823 audio_device: prototype added for function referenced before use 2022-09-17 21:27:04 +03:00
1debf62707 Fix compile errors 2022-09-13 21:22:02 +09:00
e80714740c Change images to MJPEG 2022-09-13 21:22:02 +09:00
c7469ce986 dfu: Allow DFU coexistence with other interfaces
dfu_moded_open() only works correct when its called on DFU interface
descriptor. It means that DFU is the only one interface in configuration
or driver is called after all others interface drivers were tried and
gave up.

If other interface is supported and but driver for DFU is called first
(this is the case for BTH and RNDIS).
Code after while loop (that was not entered) has an TU_ASSERT that will
make set_configuration to fail.

Now TU_VERIFY is called first to make sure open code is called for DFU
only and not other interface descriptors like in other drivers.
2022-08-09 10:42:30 +02:00
fd5bb6e5db Merge pull request #1514 from maddyaby/audiod_typo
Fix typo in audiod_rx_done_cb in audio_device.c
2022-07-19 17:10:45 +07:00
ed2e587ace Merge pull request #1568 from hathach/revert-hid-callback-len-temporarily
temporarily revert len back to uint8_t in tud_hid_report_complete_cb() 0.14.0 release
2022-07-19 12:16:32 +07:00
2110e27678 Merge pull request #1531 from pigrew/usbtmc_highspeed
USBTMC: Fixes and support for high-speed USB
2022-07-18 22:20:43 +07:00
b495d6f8ec temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for up coming release 2022-07-17 22:56:07 +07:00
54250d7dd5 USBTMC: explicit type conversions fix 2022-07-09 17:50:17 -04:00
ec6f56768a mimxrt: Change OPT_MCU_MIMXRT1xXX to OPT_MCU_MIMXRT.
Which fits both MIMXRT10XX and MIMXRT11XX.
2022-07-01 09:04:36 +02:00
60c1750a9b mimxrt: Add/change definitions for MIMXRT11XX boards.
These are mostly identical to the MIMXRT10XX, with one tiny difference.
2022-06-30 22:21:31 +02:00
9c56f70111 suppress error with net example 2022-06-27 20:30:47 +07:00
a0ef489890 fix all warnings with host rp2040 2022-06-27 17:11:24 +07:00
6522a8150e fix all device examples warnings 2022-06-27 13:48:47 +07:00
1a1f633922 Merge branch 'master' into add-more-warnings 2022-06-27 12:50:50 +07:00
556b5d5044 change report len in hid API from uint8_t to uint16_t
since HS interrupt endpoint can be up to 1024, 8-bit is not enough.
affected APIs are:
- tud_hid_n_report() / tud_hid_report()
- tud_hid_report_complete_cb()
2022-06-27 12:22:36 +07:00
b9dc9dbd78 fix most warnings with rp2040 -wconversion 2022-06-27 11:50:17 +07:00
c675debfb2 USBTMC: Handle busy interrupt in. 2022-06-26 14:34:34 -04:00
239b5d5279 USBTMC: Manually stall and unstall EP when clear(ENDPOINT_HALT) is received. 2022-06-24 23:06:32 -04:00
0042eccb3b fix redundant-decls warnings by usbd/usbh 2022-06-24 22:52:11 +07:00
4f6e770eda add more warning option, also fix -Wconversion with rp2040
-Wuninitialized, -Wunused,  -Wredundant-decls
2022-06-24 19:46:19 +07:00
e9c29e6a2d Update USBTMC driver to support dynamic packet sizes (based on descriptor). 2022-06-21 21:27:52 -04:00
905a0b2457 correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples 2022-06-17 14:37:35 +07:00
e9089b993f Fix typo in audiod_rx_done_cb in audio_device.c 2022-06-16 16:22:55 -07:00
06392247eb add TU_ATTR_FAST_FUNC for audio sof isr call chain 2022-06-07 11:50:50 +07:00
8b9cf152a0 rhport argument in usbd_ API() is not used (always use the initialized port)
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
fdeac8508b Merge pull request #1381 from hathach/add-sof-isr
Add SOF IRQ Handler
2022-05-31 22:25:14 +07:00
e384d16d57 clean up tud_audio_set_itf_cb() invocation 2022-05-31 21:52:54 +07:00
f2926670cc comment out fifo count method for now 2022-05-31 20:26:37 +07:00
dce2ad4ffb adding feedback fifo count (WIP) 2022-05-27 23:11:25 +07:00
15aa593790 wrap feedback and compute to its own struct/union 2022-05-27 12:27:31 +07:00
e5113a1cfc prototype for feedback method 2022-05-19 16:05:55 +07:00
5766c9ac4e rename tud_audio_sof_isr() to tud_audio_feedback_interval_isr()
- also add interval_log2 to isr callback
- also rename other variables
2022-05-19 13:44:10 +07:00
20b810d25b fix ci build 2022-05-13 23:01:06 +07:00
c5ba1ea8c1 changes proposal to audio feedback computation 2022-05-13 22:54:47 +07:00
11f0ffd9a8 Generalize feedback value min and max 2022-04-16 14:47:42 +02:00
7094ff7125 Introduce 3 fb calc options: NO_SOF_BY_USER, SOF_BY_AUDIO_D, SOF_BY_USER 2022-04-09 16:36:26 +02:00
e6e3dfedc8 hid example work well 2022-04-01 16:34:36 +07:00
5cd67baf15 Disable SOF ISR feedback calcuation by default s.t. examples still work 2022-03-20 12:57:53 +01:00
8ffdbfebce Streamline call of tud_audio_set_itf_cb() within audiod_set_interface() 2022-03-20 12:08:27 +01:00
5aba464270 Add magic checks 2022-03-20 12:04:10 +01:00