hathach
821be65b03
rename usbh_edpt_open() to tuh_edpt_open()
2022-03-19 14:59:31 +07:00
hathach
4795cca04a
add parse config descriptor to example
...
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-19 00:43:31 +07:00
hathach
ba1185bf28
implement tuh_edpt_xfer() for non-control
2022-03-18 22:22:21 +07:00
hathach
8750e3b577
move daddr into xfer struct
2022-03-18 16:39:35 +07:00
hathach
f89ff939d8
rename user_arg to user_data
2022-03-17 22:37:51 +07:00
hathach
55428d7dd2
rename tuh_control_xfer_t to tuh_xfer_t
2022-03-17 20:52:16 +07:00
hathach
8aedb2ff37
slightly change the signature of tuh_control_xfer
2022-03-17 17:25:53 +07:00
hathach
66942b814b
change return type of callback to void
2022-03-17 16:55:29 +07:00
hathach
deab8c276a
remove const in xfer callback
2022-03-17 16:53:54 +07:00
hathach
6df420f7f3
move result into transfer struct
2022-03-17 16:24:43 +07:00
hathach
68bfd048a5
change tuh_control_xfer_t struct
2022-03-17 12:53:52 +07:00
hathach
98d4ed0584
update hid host to use new control xfer for set config
2022-03-16 18:44:41 +07:00
hathach
2929afe2fa
add synchronous (blocking) support for usbh control transfer
...
- add synchronous version of all get descriptor API
- update bare example to use sync API for string descriptor
- change order of index, language_id in tuh_descriptor_get_string() to
match similar API of libusb
- add index to tuh_descriptor_get_hid_report()
2022-03-13 17:45:46 +07:00
hathach
ec28593ce5
update hid,msc to new usbh control API
2022-03-11 22:13:57 +07:00
hathach
bcdeb386cc
rework usbh control xfer
...
- change API of tuh_control_xfer and its callback
- rename tuh_control_complete_cb_t to tuh_control_xfer_cb_t
- add user argument to control callback
- migrate usbh and hub
2022-03-11 21:57:55 +07:00
hathach
708f05668d
add tusb_debug.h remove tusb_error.h
...
move debug utils to new header
2022-03-09 16:44:19 +07:00
hathach
f920e1c171
rename host descriptor function
2022-03-09 11:21:13 +07:00
hathach
db9d97c947
add tuh_descriptor_hid_report_get()
2022-03-09 11:03:29 +07:00
Ha Thach
4c6bb161e2
Merge pull request #1289 from kasjer/kasjer/vendor-update
...
vendor: Write improvements
2022-03-06 11:16:35 +07:00
Ha Thach
7c627f58d7
Merge pull request #1343 from Daft-Freak/patch-1
...
Open OUT endpoint for HID host
2022-02-28 20:00:40 +07:00
Ha Thach
5b7a01ba79
Merge pull request #1350 from hathach/enhance-multipl-ports
...
Enhance rhports management
2022-02-26 01:00:07 +07:00
Ha Thach
13a4582ce2
Merge pull request #1349 from iabdalkader/fix_inquiry_data
...
Set the standard inquiry response additional length field.
2022-02-26 00:22:55 +07:00
iabdalkader
8eeda60bd0
Set the standard inquiry response additional length field.
...
* The standard inquiry response additional length field needs to be set to
the length in bytes of the remaining standard inquiry data (i.e. N - 5),
otherwise the kernel driver issues a warning about short inquiry response..
2022-02-25 18:42:23 +02:00
hathach
309540473b
minor house keeping
2022-02-25 22:26:35 +07:00
hathach
31aa077cb0
rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED
2022-02-25 18:35:21 +07:00
hathach
d10326cb4e
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
...
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
hathach
4a5a53b3b8
improve rphort management for usbd
2022-02-25 18:35:21 +07:00
hathach
a8d6e82395
enhance dual role examples
2022-02-25 17:36:05 +07:00
Charlie Birks
83b638f230
Open OUT endpoint for HID host
2022-02-23 13:03:20 +00:00
hathach
a53e83665e
fix HID_REPORT_ID_N()
2022-02-17 12:12:42 +07:00
hathach
46f4f7ff49
minor rename set sense function
2022-02-15 22:53:23 +07:00
hathach
391edc7afb
msc example response PREVENT_ALLOW_MEDIUM_REMOVAL command as unsupported command
...
LUN1 of msc_disk_dual will be set to not ready to simulate medium not
present (e.g SD card removed)
2022-02-15 22:40:08 +07:00
hathach
456c06aa5e
add tud_msc_request_sense_cb() as weak callback
...
set default error sense to NOT READY, Medium not present
2022-02-14 18:17:49 +07:00
Jerzy Kasenberg
4ca2215684
vendor: Add tx flush functionality
...
So far tud_vendor_n_write() always flushed data.
It requires to have whole vendor packed constructed
before in one buffer.
With this change data do get flushed when endpoint size
is filled on write, when there is no enough data to
fill endpoint data is not sent and subsequent calls to
write functions can add more bytes.
Vendor code needs to call tud_vendor_n_flush() when packet is
ready to be sent.
2022-01-19 15:08:12 +01:00
Jerzy Kasenberg
d069ea1421
vendor: Add tx callback
...
Other drivers already have notification about data sent.
It allows batter control in application on vendor
protocol level.
2022-01-19 14:06:00 +01:00
hathach
45fb60e883
update format correction with actual bus speed
2022-01-16 12:12:57 +07:00
Valentin Milea
c2533a45bd
Merge branch 'master' into feature/feedback_format
2022-01-07 15:12:07 +02:00
Valentin Milea
a284e438f1
Disable feedback format correction by default #1234
2022-01-07 15:02:52 +02:00
Scott Shawcroft
47218eeb67
No exceptions on broadcom. Add parens to if
2022-01-05 16:07:17 -08:00
Valentin Milea
ef879e8a8a
Support disabling feedback format correction #1234
2021-12-06 18:49:58 +02:00
hathach
ab223eb1df
correct 32 button in gamepad hid descriptor template
2021-11-29 13:07:46 +07:00
hathach
a994540860
fix nrf easy dma race condition
2021-11-23 09:36:28 +07:00
hathach
f65917f51a
rename to simply OPT_MCU_MSP432E4, add msp432e to ci
2021-11-08 17:29:26 +07:00
kkitayam
0b3c8c4a59
Implement dcd_edpt_xfer_fifo for dcd_musb
2021-11-06 00:06:27 +09:00
Jerzy Kasenberg
ec8ece2c9d
bth: Update driver to interface association changes
...
Two interfaces that are required by Bluetooth Primary Controller
do not have IAD according to Bluetooth specification.
Those two interfaces were opened separately in process_set_config().
Later interface association was inferred for BTH (along with other
drivers), since then only one call to open() is place for BTH driver
that should prepare both interfaces at once.
To make it work again btd_open() parses two interfaces at once.
2021-11-05 12:33:15 +01:00
Ha Thach
fc59515bfd
Merge pull request #1163 from hathach/generalize-synopsys-dwc2
...
Generalize synopsys dwc2
2021-11-04 13:41:25 +07:00
hathach
07829510e7
Merge branch 'tannewt-rpi' into generalize-synopsys-dwc2
2021-10-26 23:43:35 +07:00
hathach
dbd31895bc
change usage of TU_CHECK_MCU() to prevent macro conflict
2021-10-25 17:04:03 +07:00
Tod Kurt
9f014b059a
properly handle Program Change and Channel Aftertouch messages
2021-10-25 00:07:59 -07:00
hathach
5af989384b
remove ep descriptor wMaxPacketSize bitfield due to endian issue
2021-10-24 13:11:21 +07:00