Go to the source code of this file.
Data Structures | |
| struct | S_hid_set_control |
Defines | |
| #define | Set_page_usb() |
Functions | |
| void | usb_task_init (void) |
| This function initializes the USB the associated variables. | |
| void | usb_start_device (void) |
| This function initializes the USB device controller. | |
| void | usb_task (void) |
| Entry point of the USB mamnagement. | |
|
|
Definition at line 24 of file usb_task.h. Referenced by usb_start_device(), usb_task(), and usb_task_init(). |
|
|
This function initializes the USB the associated variables. This function enables the USB controller and init the USB interrupts. The aim is to allow the USB connection detection in order to send the appropriate USB event to the operating mode manager.
Definition at line 68 of file usb_task.c. References FALSE, Set_page_usb, sof_counter, toggle_next_time, TRUE, usb_connected, usb_continuous_mode, Usb_enable, and usb_start_device().
|
|
|
This function initializes the USB device controller. This function enables the USB controller and init the USB interrupts. The aim is to allow the USB connection detection in order to send the appropriate USB event to the operating mode manager.
Definition at line 95 of file usb_task.c. References Enable_interrupt, Enable_usb_interrupt, Set_page_usb, U16, Usb_ack_suspend, Usb_attach, Usb_detach, Usb_enable_reset_interrupt, Usb_enable_resume_interrupt, Usb_enable_sof_interrupt, Usb_enable_suspend_interrupt, Usb_enable_wake_up_interrupt, usb_generate_clock(), usb_init_device(), Usb_set_speed, and Usb_unfreeze_clock. Referenced by usb_task_init().
|
|
|
Entry point of the USB mamnagement. This function is the entry point of the USB management. Each USB event is checked here in order to launch the appropriate action. If a Setup request occurs on the Default Control Endpoint, the usb_process_request() function is call in the usb_enum.c file If a new USB mass storage Command Block Wrapper (CBW) occurs, this one will be decoded and the SCSI command will be taken in charge by the scsi decoder.
this part of the code can be modify following the application end of modification Definition at line 133 of file usb_task.c. References Disable_ale, Enable_interrupt, EP_CONTROL, EP_HID_IN, FALSE, Is_usb_in_ready, Is_usb_receive_setup, Led_all_off, Pll_stop, send_free, Set_page_usb, SetControlBytes, TRUE, S_hid_set_control::type, Usb_ack_in_ready, usb_connected, usb_continuous_mode, usb_process_request(), Usb_select_endpoint, and Usb_suspend_action.
|
1.3.7