Fujitsu MB9B500 Series Laptop User Manual


 
4.5 USB Function
Hardware Setting
¾ Check if 1,2 of J-USB- and J-USB+ short
¾ Check J701 (Short: 5V, Open: 3.3V)
¾ Connect with PC via USB cable
Flowchart
The following flowchart illuminates the procedure to implement a USB mouse, it is not a
certain flow of a function, but provides a clue to study and understand the sample code.
Start
Button, USB core,
HID initialization
Check ButtonInit(),
HIDInit()
Check Ext INT7
occurred?
Initial Endpoint 0
Check
EXTI8_15_IRQHandler()
Get Device, HID
description
Enable Endpoint 5
interrupt transfer
Bus reset
Configure
Endpoint 0-5
Device has been
connected with
Host
Check
USB_2_IRQHandler()
Use interrupt transfer to
communicate with host
Check
HidMouseSendReport()
Check
USB_1_IRQHandler()
Figure 4-8: USB Function Sample Code Flowchart
Usage
1) Make the hardware setting.
2) Watch the mouse moving when pressing “Up”, “Down”, “Left”, “Right” buttons.
18