CRS: Use L0 CRS definitions for G0 and G4
Comparing the register definitions these peripherals are identical.
This commit is contained in:
parent
a1189407f7
commit
efc220eb38
@ -38,6 +38,7 @@ fieldset/CFGR:
|
|||||||
description: SYNC signal source selection
|
description: SYNC signal source selection
|
||||||
bit_offset: 28
|
bit_offset: 28
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
|
enum: SYNCSRC
|
||||||
- name: SYNCPOL
|
- name: SYNCPOL
|
||||||
description: SYNC polarity selection
|
description: SYNC polarity selection
|
||||||
bit_offset: 31
|
bit_offset: 31
|
||||||
@ -135,3 +136,42 @@ fieldset/ISR:
|
|||||||
description: Frequency error capture
|
description: Frequency error capture
|
||||||
bit_offset: 16
|
bit_offset: 16
|
||||||
bit_size: 16
|
bit_size: 16
|
||||||
|
enum/SYNCSRC:
|
||||||
|
bit_size: 2
|
||||||
|
variants:
|
||||||
|
- name: GPIO
|
||||||
|
description: GPIO selected as SYNC signal source
|
||||||
|
value: 0
|
||||||
|
- name: LSE
|
||||||
|
description: LSE selected as SYNC signal source
|
||||||
|
value: 1
|
||||||
|
- name: USB
|
||||||
|
description: USB SOF selected as SYNC signal source
|
||||||
|
value: 2
|
||||||
|
enum/SYNCDIV:
|
||||||
|
bit_size: 3
|
||||||
|
variants:
|
||||||
|
- name: DIV1
|
||||||
|
description: f(SYNCDIV) = f(SYNCSRC)
|
||||||
|
value: 0
|
||||||
|
- name: DIV2
|
||||||
|
description: f(SYNCDIV) = f(SYNCSRC)/2
|
||||||
|
value: 1
|
||||||
|
- name: DIV4
|
||||||
|
description: f(SYNCDIV) = f(SYNCSRC)/4
|
||||||
|
value: 2
|
||||||
|
- name: DIV8
|
||||||
|
description: f(SYNCDIV) = f(SYNCSRC)/8
|
||||||
|
value: 3
|
||||||
|
- name: DIV16
|
||||||
|
description: f(SYNCDIV) = f(SYNCSRC)/16
|
||||||
|
value: 4
|
||||||
|
- name: DIV32
|
||||||
|
description: f(SYNCDIV) = f(SYNCSRC)/32
|
||||||
|
value: 5
|
||||||
|
- name: DIV64
|
||||||
|
description: f(SYNCDIV) = f(SYNCSRC)/64
|
||||||
|
value: 6
|
||||||
|
- name: DIV128
|
||||||
|
description: f(SYNCDIV) = f(SYNCSRC)/128
|
||||||
|
value: 7
|
@ -284,7 +284,10 @@ impl PeriMatcher {
|
|||||||
("STM32H50.*:EXTI:.*", ("exti", "h50", "EXTI")),
|
("STM32H50.*:EXTI:.*", ("exti", "h50", "EXTI")),
|
||||||
("STM32H5.*:EXTI:.*", ("exti", "h5", "EXTI")),
|
("STM32H5.*:EXTI:.*", ("exti", "h5", "EXTI")),
|
||||||
(".*:EXTI:.*", ("exti", "v1", "EXTI")),
|
(".*:EXTI:.*", ("exti", "v1", "EXTI")),
|
||||||
("STM32L0.*:CRS:.*", ("crs", "l0", "CRS")),
|
("STM32L0.*:CRS:.*", ("crs", "v1", "CRS")),
|
||||||
|
("STM32G0B1.*:CRS:.*", ("crs", "v1", "CRS")),
|
||||||
|
("STM32G0C1.*:CRS:.*", ("crs", "v1", "CRS")),
|
||||||
|
("STM32G4.*:CRS:.*", ("crs", "v1", "CRS")),
|
||||||
(".*SDMMC:sdmmc2_v1_0", ("sdmmc", "v2", "SDMMC")),
|
(".*SDMMC:sdmmc2_v1_0", ("sdmmc", "v2", "SDMMC")),
|
||||||
("STM32C0.*:PWR:.*", ("pwr", "c0", "PWR")),
|
("STM32C0.*:PWR:.*", ("pwr", "c0", "PWR")),
|
||||||
("STM32G0.*:PWR:.*", ("pwr", "g0", "PWR")),
|
("STM32G0.*:PWR:.*", ("pwr", "g0", "PWR")),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user