29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RM0008<br />

USB on-the-go full-speed (OTG_FS)<br />

OTG_FS core interrupt register (OTG_FS_GINTSTS)<br />

Address offset: 0x014<br />

Reset value: 0x0400 0020<br />

This register interrupts the application for system-level events in the current mode (Device<br />

mode or Host mode).<br />

Some of the bits in this register are valid only in Host mode, while others are valid in Device<br />

mode only. This register also indicates the current mode. To clear the interrupt status bits of<br />

the rc_w1 type, the application must write 1 into the bit.<br />

The FIFO status interrupts are read-only; once software reads from or writes to the FIFO<br />

while servicing these interrupts, FIFO interrupt conditions are cleared automatically.<br />

The application must clear the OTG_FS_GINTSTS register at initialization before<br />

unmasking the interrupt bit to avoid any interrupts generated prior to initialization.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

WKUINT<br />

SRQINT<br />

DISCINT<br />

CIDSCHG<br />

Reserved<br />

PTXFE<br />

HCINT<br />

HPRTINT<br />

Reserved<br />

IPXFR/INCOMPISOOUT<br />

IISOIXFR<br />

OEPINT<br />

IEPINT<br />

Reserved<br />

EOPF<br />

ISOODRP<br />

ENUMDNE<br />

USBRST<br />

USBSUSP<br />

ESUSP<br />

Reserved<br />

BOUTNAKEFF<br />

GINAKEFF<br />

NPTXFE<br />

RXFLVL<br />

SOF<br />

OTGINT<br />

MMIS<br />

CMOD<br />

rc_w1 r r r Res. rc_w1 r r rc_w1 r r r<br />

rc_w1<br />

r<br />

rc_w1<br />

r<br />

Bit 31 WKUPINT: Resume/remote wakeup detected interrupt<br />

In Device mode, this interrupt is asserted when a resume is detected on the USB. In Host<br />

mode, this interrupt is asserted when a remote wakeup is detected on the USB.<br />

Note: Accessible in both Device <strong>and</strong> Host modes.<br />

Bit 30 SRQINT: Session request/new session detected interrupt<br />

In Host mode, this interrupt is asserted when a session request is detected from the device. In<br />

Device mode, this interrupt is asserted when V BUS is in the valid range for a B-peripheral<br />

device. Accessible in both Device <strong>and</strong> Host modes.<br />

Bit 29 DISCINT: Disconnect detected interrupt<br />

Asserted when a device disconnect is detected.<br />

Note: Only accessible in Host mode.<br />

Bit 28 CIDSCHG: Connector ID status change<br />

The core sets this bit when there is a change in connector ID status.<br />

Note: Accessible in both Device <strong>and</strong> Host modes.<br />

Bit 27 Reserved<br />

Bit 26 PTXFE: Periodic TxFIFO empty<br />

Asserted when the periodic transmit FIFO is either half or completely empty <strong>and</strong> there is space<br />

for at least one entry to be written in the periodic request queue. The half or completely empty<br />

status is determined by the periodic TxFIFO empty level bit in the Core AHB configuration<br />

register (PTXFELVL bit in OTG_FS_GAHBCFG).<br />

Note: Only accessible in Host mode.<br />

Doc ID 13902 Rev 9 731/995

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!