Support STM32WLEx ADC peripheral

Use adc_g0 since very similar to the WLE one.
This commit is contained in:
Olle Sandberg 2023-09-04 09:04:34 +02:00
parent 7e2310f49f
commit ab99fff0af
2 changed files with 14 additions and 0 deletions

View File

@ -689,6 +689,7 @@ fieldset/CCIPR:
description: ADC clock source selection description: ADC clock source selection
bit_offset: 28 bit_offset: 28
bit_size: 2 bit_size: 2
enum: ADCSEL
- name: RNGSEL - name: RNGSEL
description: RNG clock source selection description: RNG clock source selection
bit_offset: 30 bit_offset: 30
@ -1044,3 +1045,15 @@ fieldset/PLLCFGR:
description: Main PLL division factor for PLLRCLK description: Main PLL division factor for PLLRCLK
bit_offset: 29 bit_offset: 29
bit_size: 3 bit_size: 3
enum/ADCSEL:
bit_size: 2
variants:
- name: HSI16
description: HSI16 used as ADC clock source
value: 1
- name: PLLPCLK
description: PLLPCLK used as ADC clock source
value: 2
- name: SYSCLK
description: SYSCLK used as ADC clock source
value: 3

View File

@ -208,6 +208,7 @@ impl PeriMatcher {
("STM32WB.*:SYSCFG:.*", ("syscfg", "wb", "SYSCFG")), ("STM32WB.*:SYSCFG:.*", ("syscfg", "wb", "SYSCFG")),
("STM32WL5.*:SYSCFG:.*", ("syscfg", "wl5", "SYSCFG")), ("STM32WL5.*:SYSCFG:.*", ("syscfg", "wl5", "SYSCFG")),
("STM32WLE.*:SYSCFG:.*", ("syscfg", "wle", "SYSCFG")), ("STM32WLE.*:SYSCFG:.*", ("syscfg", "wle", "SYSCFG")),
("STM32WLE.*:ADC:.*", ("adc", "g0", "ADC")),
("STM32H50.*:SBS:.*", ("sbs", "h50", "SBS")), ("STM32H50.*:SBS:.*", ("sbs", "h50", "SBS")),
("STM32H5.*:SBS:.*", ("sbs", "h5", "SBS")), ("STM32H5.*:SBS:.*", ("sbs", "h5", "SBS")),
(".*:IWDG:iwdg1_v1_1", ("iwdg", "v1", "IWDG")), (".*:IWDG:iwdg1_v1_1", ("iwdg", "v1", "IWDG")),