Commit Graph

4972 Commits

Author SHA1 Message Date
hathach 6a16f6ccdd rename CFG_TUSB_HOST_DEVICE_MAX to CFG_TUH_DEVICE_MAX 2021-08-23 11:01:40 +07:00
hathach 800f85329e add tuh_hid_receive_report() for applicaiton to explicitly request report 2021-08-23 11:00:21 +07:00
Ha Thach 58477b71f2
Merge pull request #1035 from hathach/improve-host-stack
Improve host stack
2021-08-20 22:21:30 +07:00
hathach beb1a5c678 minor clean up 2021-08-20 19:39:33 +07:00
hathach 22a5b1608c change host driver open return type to bool
the descriptor len used by driver will be calculated by usbh
2021-08-20 19:31:38 +07:00
hathach 97703587d9 improve host configuration parsing
- remove driver class code binding
- fully support IAD
- auto calculate total length for interface descriptor for driver
2021-08-20 19:08:38 +07:00
hathach 62f2efbe8c hid host skip get report descriptor if too large instead of assert 2021-08-20 18:26:56 +07:00
hathach 1cef2b6a42 extra common edpt helper for device and host stack
tu_edpt_validate() and tu_edpt_bind_driver()
2021-08-20 18:01:10 +07:00
Ha Thach aab133ac69
Merge pull request #1027 from kkitayam/remove_redundant_from_renesas
Remove redundant SOF processing from the Renesas RX family.
2021-08-20 01:07:57 +07:00
kkitayam ff59e98a6a Add compile switch to enable SOF during suspend only 2021-08-19 23:57:34 +09:00
kkitayam 351581537f Removes redundant SOF processing from the Renesas RX family.
The same logic regarding the resume signal was implemented by usbd.

See also: #1023
2021-08-19 22:51:10 +09:00
Ha Thach 219d186c4d
Merge pull request #1034 from hathach/group-f1
Group f1
2021-08-19 19:44:01 +07:00
hathach eda5b92e92 whitespace 2021-08-19 19:13:47 +07:00
hathach 4b72ad9b9f add f1 to ci build 2021-08-19 18:54:53 +07:00
hathach 175a6fbc5f rename to stm32f103_bluepill 2021-08-19 18:53:55 +07:00
hathach ebfd65a9ca add stm32f103 mini v2.0 board 2021-08-19 18:51:51 +07:00
hathach 1992f49343 group stm32f1 board 2021-08-19 18:02:16 +07:00
Ha Thach c4a9a04d67
Merge pull request #1025 from hathach/add-hid-boot-example
add hid_boot_interface example
2021-08-19 11:24:10 +07:00
Ha Thach 3a248951e2
Merge pull request #1024 from HiFiPhile/nuc
Fix nuc126 buffer copy with IAR
2021-08-18 19:14:03 +07:00
Ha Thach 830757d9ce
Merge pull request #1020 from hathach/rp2040-disconnect-suspend
Add Rp2040 suspend & resume support
2021-08-18 16:45:35 +07:00
hathach 3e8276846e correct usb memcpy for nuc120 as well 2021-08-18 16:38:13 +07:00
Ha Thach 0411810bc0
Merge pull request #1026 from hathach/suspend-resume-followup
skipped suspend/resume if not connected
2021-08-17 17:29:13 +07:00
hathach 9b869463dd skipped suspend/resume if not connected 2021-08-17 17:00:53 +07:00
hathach c050612142 fix ci build 2021-08-17 13:33:15 +07:00
hathach a6d18c400d fix keyboard report reserved is always 0 2021-08-17 13:29:26 +07:00
hathach 5f6418ccd7 add hid_boot_interface example 2021-08-17 13:21:24 +07:00
Ha Thach 7cbb11a86c
Merge pull request #992 from majbthrd/net_example_pbuf
net_lwip_webserver: utilize pbuf_copy_partial()
2021-08-17 11:56:54 +07:00
Mengsk 7aff4b178e use USBD_MemCopy. 2021-08-17 00:53:12 +02:00
Peter Lawrence 5a8ea0e0e2 net_lwip_webserver: further simplify pbuf_copy_partial() usage 2021-08-16 17:04:57 -05:00
Ha Thach 02277133ae
Merge pull request #1023 from hathach/nrf-suspend-resume
nRF52 Implement suspend, resume, remote wakeup
2021-08-16 20:40:56 +07:00
hathach 26d347be17 add note for renesas rx remote wakeup 2021-08-16 20:24:07 +07:00
hathach ab2eec77d4 complete suspend, resume, remote wakeup for nrf52 2021-08-16 20:22:14 +07:00
Ha Thach 2bb63406e9
Merge pull request #959 from KarlK90/gd32vf103-support-tiny-usb
[PORT] Add GD32VF103 support and Sipeed Longan Nano Board support
2021-08-15 18:50:00 +07:00
hathach c4a6a5ccb7 skip freertos example for gd32vf103 2021-08-15 17:56:04 +07:00
hathach 73f8fae036 change toolchain to riscv-none-embed-gcc-xpack for ci 2021-08-15 17:28:14 +07:00
hathach 37d9f940ee add gd32vf103 to riscv ci 2021-08-15 17:21:31 +07:00
hathach 09e4348adc move gd32vf103 to its own family 2021-08-15 17:19:25 +07:00
Ha Thach 48f17efa77
Merge pull request #1021 from tringis/fix-synopsys-change-addr
Fix dcd_set_address bug when called more than once
2021-08-14 01:59:38 +07:00
hathach 6af1950c8d
synopsys clear DAD on bus_reset 2021-08-14 01:51:13 +07:00
Tobias Ringström 0ec794376b Fix dcd_set_address bug when called more than once with different
addresses (e.g. after plugging the device into a different port).
2021-08-13 14:11:14 +02:00
Ha Thach 89e4586653
Merge pull request #1019 from kasjer/kasjer/da1469x-fix-no-vbus-startup
da1469x: Fix no VBUS startup
2021-08-13 17:02:21 +07:00
Ha Thach ea1dfc1fd5
Merge pull request #956 from kkitayam/fix_audio_format_for_renesas_rx
add settings for Renesas RX family
2021-08-13 14:36:45 +07:00
hathach d52b981c3a
revert ready() check in claim (do it later in separated PR) 2021-08-12 17:07:39 +07:00
hathach 17ef9f4843
add ready check for edpt claim 2021-08-12 15:54:04 +07:00
hathach 4ad47d9e26
bus_reset will reset all endpoints
allow for dynamic configuration as well as state-less enumeration
2021-08-12 15:40:26 +07:00
Jerzy Kasenberg cde607338d da1469x: Fix no VBUS startup
For self powered device if device started without VBUS present
it would not be correctly attached to USB bus even if tusb_vbus_changed()
was later called.

This modifies dcd_init() so it starts USB state machine without checking
if VBUS is present or not, like all others drivers do.
tusb_vbus_changed() function is also removed its content was moved to dcd_init.
2021-08-12 09:12:25 +02:00
hathach 4f2999bc04
white space 2021-08-12 00:31:26 +07:00
hathach 88d4cb402d
simplify hw_endpoint_init() 2021-08-12 00:11:04 +07:00
hathach a2baf9427d
more dcd clean up 2021-08-11 20:36:23 +07:00
hathach 979af6c2a8
clean up endpoint set/clear stall 2021-08-11 20:29:39 +07:00