Merge pull request #244 from daehyeok/stm32g4_adc
Support STM32G4 ADC peripheral
This commit is contained in:
commit
a7d9aa2124
@ -1027,9 +1027,11 @@ fieldset/CCIPR:
|
||||
description: ADCs clock source selection
|
||||
bit_offset: 28
|
||||
bit_size: 2
|
||||
enum: ADCSEL
|
||||
- name: ADC345SEL
|
||||
description: ADC3/4/5 clock source selection
|
||||
bit_offset: 30
|
||||
enum: ADCSEL
|
||||
bit_size: 2
|
||||
fieldset/CCIPR2:
|
||||
description: Peripherals independent clock configuration register
|
||||
@ -1333,6 +1335,18 @@ fieldset/PLLCFGR:
|
||||
description: Main PLL division factor for PLLSAI2CLK
|
||||
bit_offset: 27
|
||||
bit_size: 5
|
||||
enum/ADCSEL:
|
||||
bit_size: 2
|
||||
variants:
|
||||
- name: NOCLK
|
||||
description: No clock selected
|
||||
value: 0
|
||||
- name: PLLP
|
||||
description: PLL 'P' clock selected as ADC clock
|
||||
value: 1
|
||||
- name: SYSCLK
|
||||
description: System clock selected as ADC clock
|
||||
value: 2
|
||||
enum/CLK48SEL:
|
||||
bit_size: 2
|
||||
variants:
|
||||
|
@ -180,6 +180,8 @@ impl PeriMatcher {
|
||||
(".*:ADC:aditf5_v3_1", ("adc", "v4", "ADC")),
|
||||
("STM32G0.*:ADC:.*", ("adc", "g0", "ADC")),
|
||||
("STM32G0.*:ADC_COMMON:.*", ("adccommon", "v3", "ADC_COMMON")),
|
||||
("STM32G4.*:ADC:.*", ("adc", "v4", "ADC")),
|
||||
("STM32G4.*:ADC_COMMON:.*", ("adccommon", "v4", "ADC_COMMON")),
|
||||
(".*:ADC_COMMON:aditf2_v1_1", ("adccommon", "v2", "ADC_COMMON")),
|
||||
(".*:ADC_COMMON:aditf5_v2_0", ("adccommon", "v3", "ADC_COMMON")),
|
||||
(".*:ADC_COMMON:aditf5_v2_2", ("adccommon", "v3", "ADC_COMMON")),
|
||||
|
Loading…
x
Reference in New Issue
Block a user