4444 Commits

Author SHA1 Message Date
hathach
350dfb2ea3 more hid api rename 2021-05-22 18:17:32 +07:00
hathach
89dad1ad41 update app 2021-05-22 16:48:07 +07:00
hathach
99add05aa7 simplify hid api
add hid set_protocol() and set_protocol_complete_cb()
2021-05-22 16:27:28 +07:00
hathach
327336e921
fix build for rp2040 2021-05-19 11:16:26 +07:00
hathach
2df5a5367f update hid host get/set protocol to match device 2021-05-18 13:12:33 +07:00
hathach
40cd3a7e20 Merge branch 'master' into host-hid 2021-05-18 13:08:30 +07:00
hathach
ffdcf9a0d0 move report_info to application
update API accordingly, update hid parser for usage, and usage_page.
2021-05-18 12:58:24 +07:00
hathach
da6a7fb2bb update hid report descriptor macro 2021-05-18 12:58:24 +07:00
hathach
5b2d117bcd fix compile 2021-05-18 12:58:24 +07:00
hathach
93661042d9 more API update
- remove tuh_n_hid_n_get_report()
- usbh auto queue get report and invoke callback when received data
2021-05-18 12:58:24 +07:00
hathach
dfa8b41b96 adding hid parser 2021-05-18 12:58:24 +07:00
hathach
9ddc3bfd6d more host hid API
adding hid parser
2021-05-18 12:58:24 +07:00
hathach
641f55f1f1 remove CFG_TUH_HID_KEYBOARD and CFG_TUH_HID_MOUSE 2021-05-18 12:58:24 +07:00
hathach
cc1b83412a continue with hid host rework 2021-05-18 12:58:24 +07:00
hathach
9324fd8f2e more hid host API rework 2021-05-18 12:58:24 +07:00
hathach
7305fec4db change hid device report len from uint8 to uint16 2021-05-18 12:58:24 +07:00
hathach
db8ea7ea1c clean up 2021-05-18 12:58:24 +07:00
hathach
791efecfdf add tuh_device_ready() 2021-05-18 12:58:24 +07:00
hathach
b7a8b278c8 rename tuh_device_is_configured() to tuh_device_configured()
- remove tuh_device_get_state()
- more hid mouse clean up
2021-05-18 12:58:24 +07:00
hathach
69defb5edc rename and moving 2021-05-18 12:58:24 +07:00
hathach
a5cd81a226 correct hid host mount/unmount callback
rename HOST_CLASS_HID to CFG_TUH_HID
2021-05-18 12:58:24 +07:00
hathach
be165a6713 reworking host hid API 2021-05-18 12:58:24 +07:00
hathach
510beef9f8 make tuh_msc_mount_cb() tuh_msc_unmount_cb() as weak callback 2021-05-18 12:58:24 +07:00
hathach
e0dbb489ae rename CFG_TUSB_HOST_ENUM_BUFFER_SIZE to CFG_TUH_ENUMERATION_BUFSZIE
add usbh_get_enum_buf
2021-05-18 12:58:24 +07:00
hathach
e83bdcdfdc reworking hid host 2021-05-18 12:58:24 +07:00
hathach
4023d05e93 minor clean up 2021-05-18 12:58:24 +07:00
hathach
13613eafb7 correct ehci control endpoint address report on xfer complete
improve host log
2021-05-18 12:58:24 +07:00
hathach
3a7f8b3ac3 separte tusb_init/inited() to tud/tuh init/inited
add rhport to tud_init()
2021-05-18 12:58:24 +07:00
hathach
2666e1efec add tuh_inited() and tud_inited() 2021-05-18 12:58:24 +07:00
hathach
68fa17e17c more API rename 2021-05-18 12:58:24 +07:00
hathach
f1148ca5ac reworking hid host 2021-05-18 12:58:24 +07:00
hathach
98f5082191 rename var to be consistent 2021-05-18 12:58:24 +07:00
hathach
1dd2cd43dd add hcd_ehci.h as interface for ehci port 2021-05-18 12:58:24 +07:00
Ha Thach
4f84185b43
Merge pull request #837 from hathach/fix-835-hid-cleanup
Fix 835 hid cleanup
2021-05-18 12:57:59 +07:00
hathach
a26752a93e fix build error 2021-05-18 12:45:59 +07:00
hathach
7e9e682e09 update to use HID spec protocol value for get/set_protocol() 2021-05-18 12:38:11 +07:00
hathach
e163f85ee0 clean up, rename some HID device symbol/API
- add tud_hid_n_interface_protocol()
- rename tud_hid_n_boot_mode() to  tud_hid_n_get_protocol()
- rename tud_hid_boot_mode_cb() to tud_hid_set_protocol_cb()
- add HID_PROTOCOL_BOOT/REPORT to avoid magic number 0,1
- rename HID_PROTOCOL_NONE/KEYBOARD/MOUSE to HID_ITF_PROTOCOL_ to avoid
confusion
2021-05-18 12:32:20 +07:00
Ha Thach
2d15e11830
Merge pull request #827 from kasjer/kasjer/fix-audio-rx_done_cb 2021-05-12 00:14:31 +07:00
Ha Thach
c5e95a8f8d
Merge pull request #829 from kasjer/kasjer/fix-build-for-nrf5340
Allow build for NRF5340 MCU
2021-05-11 20:02:48 +07:00
hathach
9233269a2c only apply errata walkaround for nrf52 2021-05-11 18:38:23 +07:00
Jerzy Kasenberg
e2f795067a Allow build for NRF5340 MCU
Errata code referred to NRF_USBD_BASE.
This definition is not present in NRF5340 but both NRF52 and NRF53
do have NRF_USBD which maps to NRF_USBD_BASE for NRF52 and
to NRF_USBD_S_BASE for NRF5340.
This just make build possible for NRF5340.
2021-05-11 12:37:08 +02:00
Ha Thach
59affc90aa
Merge pull request #828 from corvus-ossifragus/fix-ep-struct-trace-statements
Fix ep struct trace statements
2021-05-10 22:21:15 +07:00
corvus-ossifragus
23e564249c Update .gitignore 2021-05-10 10:15:36 -04:00
corvus-ossifragus
72f5202086 Update trace statements that referenced deprecated structure elements. 2021-05-10 10:09:09 -04:00
Jerzy Kasenberg
74ca1894de audio_device: Fix build error
ep_in_as_intf_num was incorrectly used to access out interface
which is defined for 'in' interface.
Code related to 'out' endpoint should use ep_out_as_intf_num instead.
2021-05-10 15:58:04 +02:00
Ha Thach
2a343ba916
Merge pull request #826 from hathach/minor-cleanup
minor clean up
2021-05-10 19:29:45 +07:00
Ha Thach
1e8a129149
Merge pull request #824 from corvus-ossifragus/fix-keyboard-hid-report-buffer
Update main.c
2021-05-10 19:21:33 +07:00
hathach
13de8f5d98 minor clean up 2021-05-10 19:15:46 +07:00
corvus-ossifragus
0621df8d26 Update main.c
Fix code where HID keyboard was being stuffed into the HID mouse buffer.
2021-05-09 19:11:29 -04:00
Ha Thach
505ee0c8ea
Merge pull request #821 from corvus-ossifragus/debug_build_errors
Update hcd_rp2040.c
2021-05-08 17:47:49 +07:00