MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / hid_thread_entry

Function hid_thread_entry

components/legacy/usb/usbdevice/class/hid.c:628–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626static struct rt_thread hid_thread;
627
628static void hid_thread_entry(void* parameter)
629{
630 struct hid_report report;
631 struct hid_s *hiddev;
632 hiddev = (struct hid_s *)parameter;
633 while(1)
634 {
635 if(rt_mq_recv(&hiddev->hid_mq, &report, sizeof(report),RT_WAITING_FOREVER) < 0)
636 continue;
637 HID_Report_Received(&report);
638 }
639}
640
641#ifdef RT_USING_DEVICE_OPS
642const static struct rt_device_ops hid_device_ops =

Callers

nothing calls this directly

Calls 2

rt_mq_recvFunction · 0.85
HID_Report_ReceivedFunction · 0.85

Tested by

no test coverage detected