553 Commits

Author SHA1 Message Date
hathach
9812cfc6c6 clean up 2021-02-11 11:48:34 +07:00
hathach
919bb9ce38 more epsize checking per type 2021-02-11 11:45:24 +07:00
hathach
49bc97b0ca remove the requirement of std SET/CLEAR_FEATURE must not return zlp status 2021-02-11 11:22:02 +07:00
hathach
bb2f93d427 prepare for release 2021-02-05 20:41:41 +07:00
Reinhard Panhuber
84406f1654 Rework audio driver 2021-01-31 19:08:23 +01:00
Reinhard Panhuber
93ec6f3735 Adjust #include "dcd.h" to "device/dcd.h", the same for usbd.h in usbd.c 2021-01-19 17:10:08 +01:00
Reinhard Panhuber
56edc2b261 Change names from edpt_ISO_xfer to edpt_iso_xfer 2021-01-19 10:50:19 +01:00
Reinhard Panhuber
2284db1fb5 Add usbd_edpt_ISO_xfer() 2021-01-18 17:14:17 +01:00
Reinhard Panhuber
84c383061f Add tusb_fifo.h header file to dcd.h 2021-01-18 17:08:59 +01:00
Reinhard Panhuber
485d8fa77e Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer 2021-01-09 12:10:08 +01:00
hathach
6e6e6265e4 use dcd_event_bus_reset() with speed to replace bus_signal 2021-01-08 22:34:36 +07:00
Reinhard Panhuber
09d8ead4b8 Start changes - not yet finished 2021-01-04 12:02:08 +01:00
Jacob Potter
3158b323d8 Adapt to new control xfer callback 2021-01-03 15:16:54 -07:00
Jacob Potter
57058e33fc Merge branch 'master' into ncm 2021-01-03 15:12:02 -07:00
Ha Thach
b580a0b7f3
Merge pull request #573 from HiFiPhile/scsi_mode_sense6_t
IAR build error fixes
2020-12-22 17:17:36 +07:00
HiFiPhile
c8dc7f807f Fix more warnings.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2020-12-22 10:13:10 +01:00
HiFiPhile
b3c0d417ef Fix error if "Required Prototype" is selected.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2020-12-20 23:10:34 +01:00
hathach
148eea1417 add tud_connected()
which return true as long as we receive the very first SETUP packet from
host.
2020-11-24 21:49:12 +07:00
hathach
e4144d8b47 remove control_complete 2020-11-20 17:21:01 +07:00
hathach
cebb375eac migrate audio device to new control xfer cb 2020-11-20 17:20:05 +07:00
hathach
c4bc8b2561 migrate net device to new control xfer cb 2020-11-20 16:59:33 +07:00
hathach
9f853685ae migrate bth device to new control xfer cb 2020-11-20 16:13:58 +07:00
hathach
61ad7bef71 migrate vendor device to new control xfer cb 2020-11-20 15:50:11 +07:00
hathach
3cc1979adb migrate dfu runtime device to new control xfer cb 2020-11-20 15:42:32 +07:00
hathach
7df979673d migrate usbtmc device to new control xfer cb 2020-11-20 15:38:56 +07:00
hathach
8813f9d3b8 clean up 2020-11-20 15:33:05 +07:00
hathach
e2abb089f4 migrate midi device to new control xfer cb 2020-11-20 15:30:36 +07:00
hathach
dc9a309839 migrate hid device to new control xfer cb 2020-11-19 22:00:49 +07:00
hathach
dd07fecc5f migrate cdc_device to new control_xfer_cb 2020-11-19 21:26:06 +07:00
hathach
3c31d08051 merge class driver control_request & control_complete to control_xfer_cb()
migrated msc_device
2020-11-19 21:01:33 +07:00
Ha Thach
a708ab6254
Merge pull request #553 from hathach/host-async-control
Host async control
2020-11-07 10:52:14 +07:00
Jacob Potter
226efdcec0 Reduce excessive poll rate on interrupt endpoint 2020-11-05 18:14:56 -07:00
Jacob Potter
bb0df2740e Add CDC NCM driver 2020-11-04 20:51:57 -07:00
Jacob Potter
3ea8138750 Rename CDC_COMM_SUBCLASS_ETHERNET_NETWORKING_CONTROL_MODEL
This was a confusing name; "Ethernet control model" (CDC ECM)
and "network control model" (CDC NCM) are two separate USB subclasses.
2020-10-31 10:57:53 -06:00
Jerzy Kasenberg
8669fd7383 audio: Add two channel feature unit descriptor
Feature unit descriptor size depends on number of channels.
So far only single channel feature unit was present.
This change adds feature unit descriptor for two channels.
2020-10-15 15:37:40 +02:00
hathach
87b989e8b4 add usbh_edpt_claim/release
implement USBH_EVENT_FUNC_CALL
2020-10-12 00:35:45 +07:00
hathach
b5d4c8185d Merge branch 'master' into host-async-control 2020-10-11 16:22:12 +07:00
Reinhard Panhuber
032e84c9be Revert dcd_alloc_mem_for_conf() but keep changes from @kasjer for ISO EP
Add tud_audio_set_itf_close_EP_cb()
2020-10-09 19:50:05 +02:00
hathach
74a1404bea tab -> spaces 2020-10-07 13:36:27 +07:00
hathach
d41248900b Merge branch 'uac2' of https://github.com/PanRe/tinyusb into PanRe-uac2 2020-10-06 22:32:22 +07:00
Reinhard Panhuber
603ce17696 Change AUDIO_CS_INTERFACE_HEADER to AUDIO_CS_AC_INTERFACE_HEADER 2020-10-01 17:49:30 +02:00
Jerzy Kasenberg
b2ce7a39b0 device: Make number of endpoints configurable
Currently number of endpoints was hard coded to 8.
NRF52 has 9 IN and 9 OUT endpoints.
ISO endpoints are 0x08 and 0x88 and without this change those
two ISO endpoint could not be used.
2020-10-01 09:22:49 +02:00
Reinhard Panhuber
13a9cbde79 Change AUDIO_FUNC_PROTOCOL_CODE_UNDEF for midi in usbd.h 2020-09-29 23:30:35 +02:00
Reinhard Panhuber
142871654e Merge remote-tracking branch 'upstream/master' into uac2 2020-09-28 18:08:39 +02:00
Jerzy Kasenberg
f55437d889 audio: Add descriptor for mono speaker
This provides descriptor for mono speaker with
explicit feedback.
2020-09-28 08:41:17 +02:00
Jerzy Kasenberg
2ace98e943 audio_device: Update explicit feedback support
Feedback can be specified by the user code and will be
sent at feedback endpoint specified interval.
2020-09-28 08:41:17 +02:00
hathach
9c0d15fc43 more const 2020-09-14 22:23:59 +07:00
hathach
23e6ee2ea2 cdc device: claim endpoint before checking fifo availability
- add pre-check to reduce mutex lock in usbd_edpt_claim
2020-09-14 22:14:31 +07:00
hathach
ce4a9b9c3a clean up 2020-09-11 00:14:07 +07:00
hathach
801f8b5b38 update claim edpt for hid and midi 2020-09-10 23:32:08 +07:00