#include "config.h"
Go to the source code of this file.
Functions | |
| void | mouse_task_init (void) |
| This function initializes the hardware/software resources required for mouse task. | |
| void | 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 mouse_task.h.
| void mouse_task_init | ( | void | ) |
This function initializes the hardware/software resources required for mouse task.
Definition at line 116 of file mouse_task.c.
References FALSE, g_b_send_ack_report, g_b_send_report, g_u8_cpt_sof, Hwb_button_init, Joy_init, Led0_off, Led1_on, Leds_init, TRUE, and Usb_enable_sof_interrupt.
00117 { 00118 // Init SOF 00119 g_u8_cpt_sof=0; 00120 Usb_enable_sof_interrupt(); 00121 00122 // Init interface board 00123 Joy_init(); 00124 Leds_init(); 00125 Hwb_button_init(); 00126 Led1_on(); 00127 Led0_off(); 00128 00129 // Send a ack report at startup 00130 g_b_send_report = FALSE; 00131 g_b_send_ack_report = TRUE; 00132 }
| void 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 137 of file mouse_task.c.
1.5.3