Commit Graph

292 Commits

Author SHA1 Message Date
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
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
ab223eb1df correct 32 button in gamepad hid descriptor template 2021-11-29 13:07:46 +07:00
hathach
5af989384b remove ep descriptor wMaxPacketSize bitfield due to endian issue 2021-10-24 13:11:21 +07:00
hathach
0b249618b0 fix -Wcast-qual 2021-10-15 23:54:31 +07:00
Charlie Birks
aa97b419b2 Handle HID devices with OUT endpoint listed first
This happens on my PowerA wired Switch pro controller
2021-10-04 11:43:12 +01:00
szymonh
2d6407e7a5 Enforced buffer boundaries for hid devices 2021-09-13 22:56:25 +02:00
MasterPhi
8305766afe fix HID_LOGICAL_MAX overflow. 2021-08-31 11:27:43 +02:00
hathach
629da937f8 slightly change the keyboard descriptor template to pass usb compliant test 2021-08-26 17:55:31 +07:00
hathach
3c0c051df1 add tuh_vid_pid_get()
complete Sony PS4 dualshock controller example
2021-08-24 19:10:23 +07:00
hathach
353c070d00 exclude dev0 from usbh devices pool 2021-08-24 01:06:05 +07:00
hathach
3309425211 sepearate CFG_TUH_DEVICE_MAX and CFG_TUH_HUB
separate dev0 from _usbh_devices pool to save sram
2021-08-23 19:56:53 +07:00
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
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
62f2efbe8c hid host skip get report descriptor if too large instead of assert 2021-08-20 18:26:56 +07:00
hathach
a6d18c400d fix keyboard report reserved is always 0 2021-08-17 13:29:26 +07:00
hathach
2ea0ef4543 correct newline usage keycode (ENTER 0x28) 2021-08-10 16:40:43 +07:00
Ha Thach
0a230d57ee Merge pull request #931 from hathach/more-hid-host
More hid host update
2021-07-05 00:23:56 +07:00
hathach
2b3d547b7b clean up 2021-07-01 23:05:21 +07:00
hathach
ca98996e1f better support for hid device set/get protocol
add caplock detection for hid_composite
2021-07-01 22:46:39 +07:00
hathach
c172caa288 clean up 2021-06-29 00:03:34 +07:00
hathach
efc12ae7d4 fix SET_PROTOCOl, update hid host behavior for default boot interface 2021-06-28 23:57:57 +07:00
hathach
58d3e8c08b update func comment 2021-06-28 17:39:57 +07:00
hathach
c99b70c08c force boot protocol for keyboard/mouse 2021-06-28 17:39:57 +07:00
hathach
5811122cfd change usbh open driver to have max_len and return driver len 2021-06-28 17:39:57 +07:00
Ha Thach
6e939de9d6 Merge pull request #891 from hathach/host-rp2040-double-buffer
RP2040 double buffer
2021-06-28 17:39:09 +07:00
Niklas Hauser
264dc35b95 Fix typo in TUH configuration define 2021-06-21 05:32:43 +02:00
hathach
dfe5a727c6 log clean up 2021-06-11 18:54:09 +07:00
hathach
572d986a02 improve usbh 2021-06-11 17:14:22 +07:00
hathach
c7f51cde40 implement usbh_edpt_busy (WIP), remove hcd_edpt_busy 2021-06-10 17:19:21 +07:00
hathach
13cb016042 add usbh_classdriver.h 2021-06-10 16:48:20 +07:00
hathach
cffa666bd1 use alias for button naming 2021-06-09 17:45:14 +07:00
Marcelo Bezerra
a8abbcc34d Change buttons to start from 0 2021-06-09 12:14:04 +02:00
hathach
dca9bc97d6 miss a helper 2021-06-09 10:45:37 +07:00
hathach
2c0947ebb6 update gamepad helper 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
e393fb32a0 re-adding ifdef removed accidentally 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
d3b6e28387 indent fix 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
de71e72e31 Fix comment in hid.h 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
e12195705c Pull request changes
Remove configuration options and just bump number of buttons to 32
Fix button numbereing and comments in
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
ce634f226e remove excess empty lines 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
3842c806a6 clean up 2021-06-09 10:33:57 +07:00
Marcelo Bezerra
d5f8da44d1 Add optional support for 32 gamepad buttons 2021-06-09 10:33:57 +07:00
hathach
6e2cf2a3ee clean up log 2021-06-02 00:10:35 +07:00
hathach
9ad6fadf6a more include clean up 2021-05-27 18:34:07 +07:00
hathach
9736e54734 include clean up 2021-05-27 17:40:39 +07:00
Ha Thach
4e2684f23a Merge pull request #825 from ogatatsu/hid_desc
fix hid report descriptor
2021-05-26 20:33:45 +07:00