29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

RM0008<br />

OTG_FS AHB configuration register (OTG_FS_GAHBCFG)<br />

Address offset: 0x008<br />

Reset value: 0x0000 0000<br />

This register can be used to configure the core after power-on or a change in mode. This<br />

register mainly contains AHB system-related configuration parameters. Do not change this<br />

register after the initial programming. The application must program this register before<br />

starting any transactions on either the AHB or the USB.<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 />

Reserved<br />

PTXFELVL<br />

TXFELVL<br />

Reserved<br />

GINT<br />

rw rw rw<br />

Bits 31:20 Reserved.<br />

Bit 8 PTXFELVL: Periodic TxFIFO empty level<br />

Indicates when the periodic TxFIFO empty interrupt bit in the Core interrupt register (PTXFE bit<br />

in OTG_FS_GINTSTS) is triggered.<br />

0: PTXFE (in OTG_FS_GINTSTS) interrupt indicates that the Periodic TxFIFO is half empty<br />

1: PTXFE (in OTG_FS_GINTSTS) interrupt indicates that the Periodic TxFIFO is completely<br />

empty<br />

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

Bit 7 TXFELVL: TxFIFO empty level<br />

In device mode, this bit indicates when IN endpoint Transmit FIFO empty interrupt (TXFE in<br />

OTG_FS_DIEPINTx.) is triggered.<br />

0: TXFE (in OTG_FS_DIEPINTx) interrupt indicates that the IN Endpoint TxFIFO is half<br />

empty<br />

1: TXFE (in OTG_FS_DIEPINTx) interrupt indicates that the IN Endpoint TxFIFO is<br />

completely empty<br />

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

Bits 6:1 Reserved.<br />

Bit 0 GINT: Global interrupt mask<br />

The application uses this bit to mask or unmask the interrupt line assertion to itself.<br />

Irrespective of this bit’s setting, the interrupt status registers are updated by the core.<br />

0: Mask the interrupt assertion to the application.<br />

1: Unmask the interrupt assertion to the application.<br />

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

726/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!