#include "config.h"
Go to the source code of this file.
Functions | |
| void | device_mouse_task_init (void) |
| This function initializes the hardware/software resources required for mouse task. | |
| void | device_mouse_task (void) |
| This function has no effect, but is called by scheduler. | |
| void | sof_action (void) |
| This function increments the SOF counter each times. | |
Definition in file device_mouse_task.h.
| void device_mouse_task_init | ( | void | ) |
This function initializes the hardware/software resources required for mouse task.
Definition at line 114 of file device_mouse_task.c.
References FALSE, g_b_send_ack_report, g_b_send_report, Hwb_button_init, Joy_init, Leds_init, TRUE, and Usb_enable_sof_interrupt.
00115 { 00116 // Init SOF 00117 Usb_enable_sof_interrupt(); 00118 00119 // Init interface board 00120 Joy_init(); 00121 Leds_init(); 00122 Hwb_button_init(); 00123 00124 // Send a ack report at startup 00125 g_b_send_report = FALSE; 00126 g_b_send_ack_report = TRUE; 00127 }
| void device_mouse_task | ( | void | ) |
This function has no effect, but is called by scheduler.
It is replaced by mouse_task_by_IT() that is interrupt handled
Definition at line 132 of file device_mouse_task.c.
References Is_usb_id_device, and Usb_enable_sof_interrupt.
00133 { 00134 if(Is_usb_id_device()) 00135 { 00136 Usb_enable_sof_interrupt(); // In case of interrupt disabled when USB ID pin change 00137 } 00138 }
1.5.3