60 Commits

Author SHA1 Message Date
hathach
84f81f6b21 simplify hid keyboard & mouse report to one API each 2019-05-01 17:06:18 +07:00
hathach
0b6999a28e add tud_hid_set_idle_cb
- rename tud_hid_mode_changed_cb to tud_hid_mode_changed_cb
- add mouse ac pan descriptor template support
2019-05-01 16:53:35 +07:00
hathach
67aa45f75f
remove CFG_TUD_HID_ASCII_TO_KEYCODE_LOOKUP 2019-04-25 21:41:21 +07:00
hathach
23bcf1cc7a
remove auto descriptor and its option CFG_TUD_DESC_AUTO 2019-04-18 23:59:21 +07:00
hathach
307ba23046
wrap up hid device refactor 2019-04-18 22:31:35 +07:00
hathach
a30461b078
update tud_hid_keyboard/mouse helper 2019-04-18 13:27:06 +07:00
hathach
8d2db4dd70
add tud_hid_mode_changed_cb() 2019-04-18 12:32:19 +07:00
hathach
1ffcadd373
hid update 2019-04-18 11:52:23 +07:00
hathach
cc2fce31e5
refactor hid, rename hid_generic to simply hid_ 2019-04-18 00:36:17 +07:00
hathach
4af16efea7
add tud_ready() to hid_ready() 2019-04-02 02:14:39 +07:00
hathach
0bdd4bd550
added Suspend and Resume event for nrf5x port
also rename DCD_EVENT_SUSPENDED to DCD_EVENT_SUSPEND
2019-03-29 01:34:53 +07:00
hathach
da452d4ba6
cleanup, remove the use of _TINY_USB_SOURCE_FILE_ 2019-03-27 17:48:42 +07:00
hathach
d866999bf0
remove idle rate enforcement, should be done in application level 2019-03-23 21:46:51 +07:00
hathach
c211ee19dd migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
hathach
59c1b4b427
zero init internal class/device data 2019-01-29 19:39:34 +07:00
hathach
902697ca07 add dcd_get_microframe() 2018-12-17 12:14:11 +07:00
hathach
1c49c479ca seperate tusb_task() to tud_task() and tuh_task()
tusb_task() still exists for backward compatible
2018-12-13 14:51:37 +07:00
hathach
c1c501e0c2
change usbd xfer_cb return type to bool 2018-12-12 13:12:06 +07:00
hathach
b6cb4757d2
change class driver open return type to bool 2018-12-12 13:00:59 +07:00
hathach
6d86db3977
rename edpt_dir/number/addr to tu_edpt_* 2018-12-12 11:51:31 +07:00
hathach
064eec5dd8
clean up warnings 2018-11-26 12:29:55 +07:00
Scott Shawcroft
47fabe42ed
One tweak to make -Wdiscarded-qualifiers happy. 2018-11-23 12:48:55 -08:00
hathach
cb8782e5f2
rename tusb_event_t to xfer_result_t 2018-11-23 15:14:47 +07:00
hathach
60d8cde695
rename CFG_TUSB_MEM_SECTION to CFG_TUSB_MEM_SECTION 2018-11-22 17:21:07 +07:00
hathach
215f8603b1 nrf5x: refactor device control transfer.
- make control transfer as part of usbd. Class driver must use
usbd_control_ API() instead of dcd_ api.
- change the signature of class driver's control_request
- allow control request complete to stall in staus stage
- move control request parser & handling to usbd.
2018-11-16 21:56:39 +07:00
Scott Shawcroft
30e3c64134
Polish up control split and treat it more like a normal endpoint. 2018-11-08 13:45:30 -08:00
Scott Shawcroft
7a40ec2647
Split out the control endpoint logic 2018-11-07 23:04:34 -08:00
Scott Shawcroft
c582c0fda9
Add SAMD21 and SAMD51 support for CircuitPython.
The ProtoThreads style subtasks were removed because it led to
extremely unclear control flow. RTOSes can be used if threading is
needed.

Also added some additional functionality to MSC to support dynamic
LUNs and read-only LUNs.
2018-11-07 12:02:28 -08:00
hathach
c7340f4b0e clean up helper func 2018-10-23 12:19:32 +07:00
hathach
c5d2f661e7 rename common func to avoid conflict 2018-08-23 20:09:28 +07:00
hathach
e07b1acbed rename VERIFY to TU_VERIFY to avoid conflict with application 2018-08-13 18:10:23 +07:00
hathach
6d96b12e27 improve auto descriptor 2018-08-01 00:50:04 +07:00
hathach
9444d45af6 dev hid enhancement, add report descriptor templates for keyboard, mouse, consumer, syscontrol, gamepad 2018-07-31 23:10:50 +07:00
hathach
a2b7b9ddb9 fix hid warning, move report descriptor template to hid.h 2018-07-31 14:59:39 +07:00
hathach
191b73b58c tud_hid_generic_get_report_cb and tud_hid_generic_set_report_cb are mandantory 2018-07-31 13:45:31 +07:00
hathach
1a0ffcee25 add tud_hid_generic_report() 2018-07-31 13:31:03 +07:00
hathach
8eeee22ffc enhance device hid driver
seperate inteface and report
2018-07-30 17:01:20 +07:00
hathach
8b17c54609 fix hid generic various error 2018-07-28 22:42:44 +07:00
hathach
c729db2294 beter hid report 2018-07-28 18:14:30 +07:00
hathach
6034553be7 adding hid_generic support 2018-07-28 13:50:46 +07:00
hathach
9f61493020 change HID config, move HID boot config to part of auto descriptor only 2018-07-28 12:38:45 +07:00
hathach
456506045f seperate CFG_TUD_HID_BOOT_PROTOCOL to CFG_TUD_HID_KEYBOARD_BOOT & CFG_TUD_HID_MOUSE_BOOT 2018-07-27 21:48:15 +07:00
hathach
faf88d00c2 clean up 2018-07-26 16:01:14 +07:00
hathach
602315cd57 fix hid keyboard idle rate 2018-07-26 11:27:34 +07:00
hathach
1982886f87 add control set boot protocol support and keyboard idle rate
- tud_hid_keyboard_is_boot_protocol()
- tud_hid_mouse_is_boot_protocol()
2018-07-25 15:58:52 +07:00
hathach
a6fede4962 improve tud_hid_mouse API() 2018-07-24 20:51:50 +07:00
hathach
b370283174 rename tud_hid_mouse_busy to tud_hid_mouse_ready 2018-07-24 20:41:06 +07:00
hathach
17369cfda0 change tud_hid_keyboard_busy() to tud_hid_keyboard_ready() for positive meaning 2018-07-24 18:18:02 +07:00
hathach
255f832904 rename device mouse API 2018-07-24 16:55:30 +07:00
hathach
3dc1d847b8 rename device keyboard api 2018-07-24 16:52:38 +07:00