Revision 72
packet now working fine
lab4.c | ||
---|---|---|
44 | 44 |
int mouse_id = 0; |
45 | 45 |
int mouse_irq = BIT(mouse_irq_bit); |
46 | 46 |
if (subscribe_mouse_interrupt(mouse_irq_bit, &mouse_id)) return 1; |
47 |
if(mouse_enable_data_reporting()) return 1;
|
|
47 |
if (mouse_issue_cmd(ENABLE_DATA_REP)) return 1;
|
|
48 | 48 |
/// cycle |
49 | 49 |
int good = 1; |
50 | 50 |
uint32_t cnt_now = 0; |
... | ... | |
76 | 76 |
} |
77 | 77 |
|
78 | 78 |
if (unsubscribe_interrupt(&mouse_id)) return 1; |
79 |
int ret = mouse_set_data_report(false);
|
|
80 |
printf("%d\n", ret); |
|
79 |
if (mouse_issue_cmd(DIS_DATA_REP)) return 1;
|
|
80 |
|
|
81 | 81 |
return 0; |
82 | 82 |
} |
83 | 83 |
|
Also available in: Unified diff