| 626 | static struct rt_thread hid_thread; |
| 627 | |
| 628 | static 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 |
| 642 | const static struct rt_device_ops hid_device_ops = |
nothing calls this directly
no test coverage detected