#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 118 of file device_mouse_task.c.
References FALSE, g_b_send_ack_report, g_b_send_report, g_u16_pos_scroll, Hwb_button_init, init_adc(), Joy_init, Leds_init, TRUE, and Usb_enable_sof_interrupt.
00119 { 00120 // Init SOF 00121 Usb_enable_sof_interrupt(); 00122 00123 // Init interface board 00124 Joy_init(); 00125 Leds_init(); 00126 Hwb_button_init(); 00127 init_adc(); 00128 g_u16_pos_scroll=Get_adc_pot_val(); 00129 00130 // Send a ack report at startup 00131 g_b_send_report = FALSE; 00132 g_b_send_ack_report = TRUE; 00133 }
| 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 138 of file device_mouse_task.c.
References Is_usb_id_device, and Usb_enable_sof_interrupt.
00139 { 00140 if(Is_usb_id_device()) 00141 { 00142 Usb_enable_sof_interrupt(); // In case of interrupt disabled when USB ID pin change 00143 } 00144 }
1.5.3