Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Family-specific:

* F4:
* Fix incorrect bit position for Ethernet MMCTIMR TGFM (#689)
* Fix OTG_FS registers

* F7:
* Add SDMMC2EN and SDMMC2RST to F765, F7x7, F7x9 (#662)
Expand Down
38 changes: 32 additions & 6 deletions devices/common_patches/usb_otg/otg_fs_fixes_v1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# For F401, F411

OTG_FS_GLOBAL:
GINTMSK:
_modify:
PRTIM:
access: read-write
GCCFG:
_add:
NOVBUSSENS:
description: Vbus sensing disable option
bitOffset: 21
bitWidth: 1

GRXSTSR_Host:
_delete:
- FRMNUM
_modify:
EPNUM:
name: CHNUM
description: Channel number
_add:
GRXSTSP_Device:
description: OTG status read and pop (device mode)
Expand All @@ -9,10 +27,6 @@ OTG_FS_GLOBAL:
resetValue: 0x00000000
access: read-only
fields:
STSPHST:
description: Status phase start
bitOffset: 27
bitWidth: 1
FRMNUM:
description: Frame number
bitOffset: 21
Expand All @@ -33,7 +47,6 @@ OTG_FS_GLOBAL:
description: Endpoint number
bitOffset: 0
bitWidth: 4

GRXSTSP_Host:
description: OTG status read and pop (host mode)
addressOffset: 0x20
Expand All @@ -58,8 +71,14 @@ OTG_FS_GLOBAL:
description: Channel number
bitOffset: 0
bitWidth: 4

_modify:
GRXSTSR_Host:
description: OTG status debug read (host mode)
addressOffset: 0x1C
size: 32
resetValue: 0x00000000
access: read-only
alternateRegister: FS_GRXSTSR_Device
GNPTXFSIZ_Device:
name: DIEPTXF0
displayName: DIEPTXF0
Expand All @@ -75,6 +94,13 @@ OTG_FS_GLOBAL:
description: OTF_FS device IN endpoint transmit FIFO size register


OTG_FS_HOST:
HCFG:
_modify:
FSLSS:
access: read-write


OTG_FS_DEVICE:
_array:
DIEPCTL[123]:
Expand Down