Skip to content

Commit

Permalink
Merge #697
Browse files Browse the repository at this point in the history
697: stm32f411 otg fixes r=newAM a=Windfisch

Hi, these are some issues I noticed when I was developing my usb host crate for the stm32f411.

Co-authored-by: Florian Jung <flo@windfis.ch>
  • Loading branch information
bors[bot] and Windfisch committed Apr 24, 2022
2 parents 267475d + be3af4a commit eddd89e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -20,6 +20,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
@@ -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

0 comments on commit eddd89e

Please sign in to comment.