hid_device_port.c 754 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-01-15 tfx2001 first version
  9. */
  10. #include <tusb.h>
  11. TU_ATTR_WEAK uint16_t tud_hid_get_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_t report_type, uint8_t* buffer, uint16_t reqlen)
  12. {
  13. (void) instance;
  14. (void) report_id;
  15. (void) report_type;
  16. (void) buffer;
  17. (void) reqlen;
  18. return 0;
  19. }
  20. TU_ATTR_WEAK void tud_hid_set_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_t report_type, uint8_t const* buffer, uint16_t bufsize)
  21. {
  22. (void) instance;
  23. (void) report_id;
  24. (void) report_type;
  25. (void) buffer;
  26. (void) bufsize;
  27. }