AN706-00040-2v0-E
7.2.8.2
USB Task Processing Function
After detecting USB device connection/disconnection, the processing shown in Figure 58
is executed.
(av_demoapp_usb_task)
Start
USB device connection event
Yes
occur and disconnection event
not occur
No
No
USB device
disconnection event occur
Yes
Clear USB device disconnection event.
Clear USB device disconnection event.
Set USB disconnection to USB device
Set USB connection to USB device
connected state.
connected state.
LED off
(LED_Set)
USB host driver polling processing
(USBH_Polling)
Finish
Figure 58 USB Task Processing Function Flow
83