Skip to content

Fix bit shift in AHB1 register for CRC enable/reset/sleep-mode bits, STM32L4x3.svd patch #517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 28, 2021
Merged
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
17 changes: 17 additions & 0 deletions devices/stm32l4x3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,30 @@ RCC:
USBF:
name: USBFSEN
description: USB FS clock enable


# SVD incorrectly shifts CRCEN/CRCRST/CRCSMEN 11 bits instead of 12
AHB1ENR:
_modify:
CRCEN:
bitOffset: 12
AHB1RSTR:
_modify:
CRCRST:
bitOffset: 12
AHB1SMENR:
_modify:
CRCSMEN:
bitOffset: 12

APB1RSTR1:
_add:
USBFSRST:
description: USB FS reset
bitOffset: 26
bitWidth: 1


_modify:
# The SVD calls ADC1 ADC.
ADC:
Expand Down