2 usb task processing function, Usb task processing function – FUJITSU FMB AN706 User Manual

Page 84

Advertising
background image

AN706-00040-2v0-E

83

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

occur and disconnection event

not occur

Clear USB device disconnection event.

USB device

disconnection event occur

Set USB connection to USB device

connected state.

Clear USB device disconnection event.

Set USB disconnection to USB device

connected state.

Yes

No

USB host driver polling processing

(USBH_Polling)

Finish

No

Yes

LED off

(LED_Set)

Figure 58 USB Task Processing Function Flow

Advertising