summaryrefslogtreecommitdiff
path: root/src/class/hid/hid_device.c
AgeCommit message (Collapse)Author
2023-07-24rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stackhathach
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-02-27Merge pull request #1852 from silvergasp/mem_sHa Thach
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27minor clean uphathach
2023-02-22use tu_static instead of static _fuzz_threadhathach
2023-02-22Merge pull request #1867 from silvergasp/thread_local_globalsHa Thach
fix: Change all static variables to thread when fuzzing
2023-02-22rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_threadhathach
2023-02-04change length in tud_hid_report_complete_cb() from uint8 to uint16hathach
2023-01-20fix: Change all static variables to thread when fuzzingNathaniel Brough
2023-01-13fix: Replace device calls to memcpy with tu_memcpy_sNathaniel Brough
Introduces a new function tu_memcpy_s, which is effectively a backport of memcpy_s. The change also refactors calls to memcpy over to the more secure tu_memcpy_s.
2022-07-17temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for ↵hathach
up coming release
2022-06-27Merge branch 'master' into add-more-warningshathach
2022-06-27change report len in hid API from uint8_t to uint16_thathach
since HS interrupt endpoint can be up to 1024, 8-bit is not enough. affected APIs are: - tud_hid_n_report() / tud_hid_report() - tud_hid_report_complete_cb()
2022-06-27fix most warnings with rp2040 -wconversionhathach
2022-06-02rhport argument in usbd_ API() is not used (always use the initialized port)hathach
remove the usage of TUD_OPT_RHPORT in class driver
2022-02-25rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLEDhathach
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2021-10-15fix -Wcast-qualhathach
2021-09-13Enforced buffer boundaries for hid devicesszymonh
2021-08-17fix keyboard report reserved is always 0hathach
2021-07-01clean uphathach
2021-07-01better support for hid device set/get protocolhathach
add caplock detection for hid_composite
2021-06-09update gamepad helperhathach
2021-06-02clean up loghathach
2021-05-27include clean uphathach
2021-05-23change hid device internal boot_mode to protocol_modehathach
2021-05-18fix build errorhathach
2021-05-18update to use HID spec protocol value for get/set_protocol()hathach
2021-05-18clean up, rename some HID device symbol/APIhathach
- 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-02-24add itf argument to hid API to support multiple instanceshathach
following API signature is changed: - tud_hid_descriptor_report_cb() - tud_hid_get_report_cb() - tud_hid_set_report_cb() - tud_hid_boot_mode_cb() - tud_hid_set_idle_cb()
2021-02-09tud_hid_report_complete_cb() APIhathach
update hid composite to make use of tud_hid_report_complete_cb() for sending reports when possible.
2021-02-08add tud_hid_n_gamepad_report() helper for gamepad reporthathach
- Add gamepad to hid_composite example. Though it needs a bit of extra work but it will come later as separated PR.
2020-11-19migrate hid device to new control xfer cbhathach
2020-10-09update tud_hid_boot_mode_cb/tud_hid_set_idle_cb support mul interfaceshathach
also clean up code
2020-10-09rename multiple hid callbackhathach
2020-10-08Fix tu_verify argsZachery Littell
2020-10-08Cleanup per review on PRZachery Littell
2020-10-07fix variable names. add itf n callbacks to multihidZachery Littell
2020-10-02fix simple pull request comments. Implement descriptor index hack.Zachery Littell
2020-10-01add index to report descriptor callback. this is breaking and needs to be ↵Zachery Littell
reviewed
2020-10-01create N functions and inlines for multi hid interfacesZachery Littell
2020-09-10update claim edpt for hid and midihathach
2020-07-16rename CFG_TUD_MSC_BUFSIZE to CFG_TUD_MSC_EP_BUFSIZEhathach
rename CFG_TUD_HID_BUFSIZE to CFG_TUD_HID_EP_BUFSIZE
2020-06-17Fix IAR warnings.Mengsk
Pa039 : use of address of unaligned structure member. Pe188: enumerated type mixed with another type.
2020-05-28check max_len for vendor and hidhathach
2020-05-28initial transfer failed in open() shouldn't cause the driver open to fail.hathach
2020-05-28update hid open()hathach
2020-04-15test ok with cdc and mschathach
2020-04-15tested with hidhathach
2019-12-28implement multiple interfaces supportPeter Lawrence
2019-11-27fix #229hathach
2019-11-01Merge branch 'ZLP_Request2' into pigrew-ZLP_Request2hathach