Modules | |
| USB device custom actions | |
Defines | |
| #define | USB_DEVICE_SN_USE DISABLE |
| #define | USE_DEVICE_SN_UNIQUE DISABLE |
| #define | EP_KBD_IN 1 |
| #define | USB_REMOTE_WAKEUP_FEATURE ENABLE |
| #define | Usb_unicode(a) ((U16)(a)) |
Functions | |
| void | sof_action (void) |
| void | suspend_action (void) |
| void | keyboard_task_init (void) |
| This function initializes the hardware/software ressources required for keyboard task. | |
| #define USB_DEVICE_SN_USE DISABLE |
Definition at line 176 of file conf_usb.h.
| #define USE_DEVICE_SN_UNIQUE DISABLE |
Definition at line 177 of file conf_usb.h.
| #define EP_KBD_IN 1 |
Definition at line 179 of file conf_usb.h.
Referenced by keyboard_task(), usb_user_endpoint_init(), and usb_user_interface_reset().
| #define USB_REMOTE_WAKEUP_FEATURE ENABLE |
Definition at line 182 of file conf_usb.h.
Referenced by usb_clear_feature(), and usb_set_feature().
| #define Usb_unicode | ( | a | ) | ((U16)(a)) |
Definition at line 184 of file conf_usb.h.
| void sof_action | ( | void | ) |
| void suspend_action | ( | void | ) |
Definition at line 254 of file keyboard_task.c.
00255 { 00256 #if (USB_REMOTE_WAKEUP_FEATURE == ENABLED) 00257 if (remote_wakeup_feature == ENABLED) 00258 { 00259 Switches_enable_it() 00260 } 00261 #endif 00262 Enable_interrupt(); 00263 Enter_power_down_mode(); 00264 }
| void keyboard_task_init | ( | void | ) |
This function initializes the hardware/software ressources required for keyboard task.
Definition at line 107 of file keyboard_task.c.
00108 { 00109 transmit_no_key = FALSE; 00110 key_hit = FALSE; 00111 usb_kbd_state = 0; 00112 Joy_init(); 00113 cpt_sof = 0; 00114 Usb_enable_sof_interrupt(); 00115 }
1.5.3