Texas Instruments OMAP5912 Reference Manual page 1441

Multimedia processor device overview and architecture
Hide thumbs Also See for OMAP5912:
Table of Contents

Advertisement

Figure 16.
Setup Interrupt Handler
Setup stage handler
Application-specific
action to cancel any
ongoing transfer
Parse command
wlength_count =
wlength
Is the request
legal and
supported?
Yes
Is a control read
?
Yes
Set control
read flag.
Write EP_NUM register:
− EP_NUM.EP_NUM = 0
− EP_NUM.EP_DIR = 1
− EP_NUM.EP_SEL = 1
− EP_NUM.SETUP_SEL = 0
Write non-ISO TX
FIFO data
Set CTRL.
Set_FIFO_En to 1.
Write EP_NUM register:
− EP_NUM.EP_NUM = 0
− EP_NUM.EP_DIR = 1
− EP_NUM.EP_SEL = 0
− EP_NUM.SETUP_SEL = 0
Decrement wlenght_
count by number of
bytes written.
SPRU761A
Clear control
flags.
No
No
Set control
wlength_count
write flag.
>0 ?
Yes
Ready to
receive
data?
No
Want to
go out of
the ISR?
Yes
Enable NAK interrupt
by setting
SYSCON1.NAK_EN
1 if not enabled.
Set
SYSCON2.STALL_CMD
to 1 to stall next
EP0 transaction.
No
Prepare for control
write stage status
Write EP_NUM register:
Yes
− EP_NUM.EP_NUM = 0
− EP_NUM.EP_DIR = 0
− EP_NUM.EP_SEL = 0
− EP_NUM.SETUP_SEL = 0
No
Wait until ready
to receive.
Universal Serial Bus (USB)
USB Device Controller
Set
CTRL.SET_FIFO_EN
to 1.
End of setup
stage handler
149

Advertisement

Table of Contents
loading

Table of Contents