Download Print this page

ST STM32L4+ Series Reference Manual page 2124

Hide thumbs Also See for STM32L4+ Series:

Advertisement

USB on-the-go full-speed (OTG_FS)
56.15.5
OTG reset register (OTG_GRSTCTL)
Address offset: 0x10
Reset value: 0x8000 0000
The application uses this register to reset various hardware features inside the core.
31
30
29
AHB
Res.
Res.
Res.
IDL
r
15
14
13
Res.
Res.
Res.
Res.
Bit 31 AHBIDL: AHB master idle
Indicates that the AHB master state machine is in the Idle condition.
Note: Accessible in both device and host modes.
Bits 30:11 Reserved, must be kept at reset value.
Bits 10:6 TXFNUM[4:0]: Tx FIFO number
This is the FIFO number that must be flushed using the Tx FIFO Flush bit. This field must not
be changed until the core clears the Tx FIFO Flush bit.
00000:
00001:
00010: Tx FIFO 2 flush in device mode
...
01111: Tx FIFO 15 flush in device mode
10000: Flush all the transmit FIFOs in device or host mode.
Note: Accessible in both device and host modes.
Bit 5 TXFFLSH: Tx FIFO flush
This bit selectively flushes a single or all transmit FIFOs, but cannot do so if the core is in the
midst of a transaction.
The application must write this bit only after checking that the core is neither writing to the Tx
FIFO nor reading from the Tx FIFO. Verify using these registers:
Read—NAK Effective interrupt ensures the core is not reading from the FIFO
Write—AHBIDL bit in OTG_GRSTCTL ensures the core is not writing anything to the FIFO.
Flushing is normally recommended when FIFOs are reconfigured. FIFO flushing is also
recommended during device endpoint disable. The application must wait until the core clears
this bit before performing any operations. This bit takes eight clocks to clear, using the slower
clock of phy_clk or hclk.
Note: Accessible in both device and host modes.
2124/2301
28
27
26
25
Res.
Res.
Res.
12
11
10
9
Res.
Non-periodic Tx FIFO flush in host mode
Tx FIFO 0 flush in device mode
Periodic Tx FIFO flush in host mode
Tx FIFO 1 flush in device mode
24
23
22
Res.
Res.
Res.
8
7
6
TXFNUM
FLSH
rw
RM0432 Rev 6
21
20
19
18
Res.
Res.
Res.
Res.
5
4
3
2
TXF
RXF
Res.
FCRST PSRST CSRST
FLSH
rs
rs
rs
RM0432
17
16
Res.
Res.
r
1
0
rs
r

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32L4+ Series and is the answer not in the manual?

Subscribe to Our Youtube Channel