adc-cleanup
This commit is contained in:
parent
9ec9e0afb8
commit
313bd8e51b
@ -305,32 +305,26 @@ fieldset/SR:
|
||||
description: Analog watchdog flag
|
||||
bit_offset: 0
|
||||
bit_size: 1
|
||||
enum: AWD
|
||||
- name: EOC
|
||||
description: Regular channel end of conversion
|
||||
bit_offset: 1
|
||||
bit_size: 1
|
||||
enum: EOC
|
||||
- name: JEOC
|
||||
description: Injected channel end of conversion
|
||||
bit_offset: 2
|
||||
bit_size: 1
|
||||
enum: JEOC
|
||||
- name: JSTRT
|
||||
description: Injected channel start flag
|
||||
bit_offset: 3
|
||||
bit_size: 1
|
||||
enum: JSTRT
|
||||
- name: STRT
|
||||
description: Regular channel start flag
|
||||
bit_offset: 4
|
||||
bit_size: 1
|
||||
enum: STRT
|
||||
- name: OVR
|
||||
description: Overrun
|
||||
bit_offset: 5
|
||||
bit_size: 1
|
||||
enum: OVR
|
||||
enum/ALIGN:
|
||||
bit_size: 1
|
||||
variants:
|
||||
@ -340,15 +334,6 @@ enum/ALIGN:
|
||||
- name: Left
|
||||
description: Left alignment
|
||||
value: 1
|
||||
enum/AWD:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NoEvent
|
||||
description: No analog watchdog event occurred
|
||||
value: 0
|
||||
- name: Event
|
||||
description: Analog watchdog event occurred
|
||||
value: 1
|
||||
enum/AWDSGL:
|
||||
bit_size: 1
|
||||
variants:
|
||||
@ -376,15 +361,6 @@ enum/DDS:
|
||||
- name: Continuous
|
||||
description: DMA requests are issued as long as data are converted and DMA=1
|
||||
value: 1
|
||||
enum/EOC:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotComplete
|
||||
description: Conversion is not complete
|
||||
value: 0
|
||||
- name: Complete
|
||||
description: Conversion complete
|
||||
value: 1
|
||||
enum/EOCS:
|
||||
bit_size: 1
|
||||
variants:
|
||||
@ -409,15 +385,6 @@ enum/EXTEN:
|
||||
- name: BothEdges
|
||||
description: Trigger detection on both the rising and falling edges
|
||||
value: 3
|
||||
enum/JEOC:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotComplete
|
||||
description: Conversion is not complete
|
||||
value: 0
|
||||
- name: Complete
|
||||
description: Conversion complete
|
||||
value: 1
|
||||
enum/JEXTEN:
|
||||
bit_size: 2
|
||||
variants:
|
||||
@ -433,24 +400,6 @@ enum/JEXTEN:
|
||||
- name: BothEdges
|
||||
description: Trigger detection on both the rising and falling edges
|
||||
value: 3
|
||||
enum/JSTRT:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotStarted
|
||||
description: No injected channel conversion started
|
||||
value: 0
|
||||
- name: Started
|
||||
description: Injected channel conversion has started
|
||||
value: 1
|
||||
enum/OVR:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NoOverrun
|
||||
description: No overrun occurred
|
||||
value: 0
|
||||
- name: Overrun
|
||||
description: Overrun occurred
|
||||
value: 1
|
||||
enum/RES:
|
||||
bit_size: 2
|
||||
variants:
|
||||
@ -520,12 +469,3 @@ enum/SMPR_SMPx_x:
|
||||
- name: Cycles480
|
||||
description: 480 cycles
|
||||
value: 7
|
||||
enum/STRT:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotStarted
|
||||
description: No regular channel conversion started
|
||||
value: 0
|
||||
- name: Started
|
||||
description: Regular channel conversion has started
|
||||
value: 1
|
||||
|
@ -70,7 +70,6 @@ fieldset/CSR:
|
||||
array:
|
||||
len: 3
|
||||
stride: 8
|
||||
enum: AWD
|
||||
- name: EOC
|
||||
description: End of conversion of ADC 1
|
||||
bit_offset: 1
|
||||
@ -78,7 +77,6 @@ fieldset/CSR:
|
||||
array:
|
||||
len: 3
|
||||
stride: 8
|
||||
enum: EOC
|
||||
- name: JEOC
|
||||
description: Injected channel end of conversion of ADC 1
|
||||
bit_offset: 2
|
||||
@ -86,7 +84,6 @@ fieldset/CSR:
|
||||
array:
|
||||
len: 3
|
||||
stride: 8
|
||||
enum: JEOC
|
||||
- name: JSTRT
|
||||
description: Injected channel Start flag of ADC 1
|
||||
bit_offset: 3
|
||||
@ -94,7 +91,6 @@ fieldset/CSR:
|
||||
array:
|
||||
len: 3
|
||||
stride: 8
|
||||
enum: JSTRT
|
||||
- name: STRT
|
||||
description: Regular channel Start flag of ADC 1
|
||||
bit_offset: 4
|
||||
@ -102,7 +98,6 @@ fieldset/CSR:
|
||||
array:
|
||||
len: 3
|
||||
stride: 8
|
||||
enum: STRT
|
||||
- name: OVR
|
||||
description: Overrun flag of ADC 1
|
||||
bit_offset: 5
|
||||
@ -110,7 +105,6 @@ fieldset/CSR:
|
||||
array:
|
||||
len: 3
|
||||
stride: 8
|
||||
enum: OVR
|
||||
enum/ADCPRE:
|
||||
bit_size: 2
|
||||
variants:
|
||||
@ -126,15 +120,6 @@ enum/ADCPRE:
|
||||
- name: Div8
|
||||
description: PCLK2 divided by 8
|
||||
value: 3
|
||||
enum/AWD:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NoEvent
|
||||
description: No analog watchdog event occurred
|
||||
value: 0
|
||||
- name: Event
|
||||
description: Analog watchdog event occurred
|
||||
value: 1
|
||||
enum/DDS:
|
||||
bit_size: 1
|
||||
variants:
|
||||
@ -159,33 +144,6 @@ enum/DMA:
|
||||
- name: Mode3
|
||||
description: DMA mode 3 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2)
|
||||
value: 3
|
||||
enum/EOC:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotComplete
|
||||
description: Conversion is not complete
|
||||
value: 0
|
||||
- name: Complete
|
||||
description: Conversion complete
|
||||
value: 1
|
||||
enum/JEOC:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotComplete
|
||||
description: Conversion is not complete
|
||||
value: 0
|
||||
- name: Complete
|
||||
description: Conversion complete
|
||||
value: 1
|
||||
enum/JSTRT:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotStarted
|
||||
description: No injected channel conversion started
|
||||
value: 0
|
||||
- name: Started
|
||||
description: Injected channel conversion has started
|
||||
value: 1
|
||||
enum/MULTI:
|
||||
bit_size: 5
|
||||
variants:
|
||||
@ -228,21 +186,3 @@ enum/MULTI:
|
||||
- name: TripleA
|
||||
description: Triple ADC, alternate trigger mode only
|
||||
value: 24
|
||||
enum/OVR:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NoOverrun
|
||||
description: No overrun occurred
|
||||
value: 0
|
||||
- name: Overrun
|
||||
description: Overrun occurred
|
||||
value: 1
|
||||
enum/STRT:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotStarted
|
||||
description: No regular channel conversion started
|
||||
value: 0
|
||||
- name: Started
|
||||
description: Regular channel conversion has started
|
||||
value: 1
|
||||
|
@ -84,130 +84,90 @@ fieldset/CSR:
|
||||
description: Master ADC ready
|
||||
bit_offset: 0
|
||||
bit_size: 1
|
||||
enum: ADRDY_MST
|
||||
- name: EOSMP_MST
|
||||
description: End of Sampling phase flag of the master ADC
|
||||
bit_offset: 1
|
||||
bit_size: 1
|
||||
enum: EOSMP_MST
|
||||
- name: EOC_MST
|
||||
description: End of regular conversion of the master ADC
|
||||
bit_offset: 2
|
||||
bit_size: 1
|
||||
enum: EOC_MST
|
||||
- name: EOS_MST
|
||||
description: End of regular sequence flag of the master ADC
|
||||
bit_offset: 3
|
||||
bit_size: 1
|
||||
enum: EOS_MST
|
||||
- name: OVR_MST
|
||||
description: Overrun flag of the master ADC
|
||||
bit_offset: 4
|
||||
bit_size: 1
|
||||
enum: OVR_MST
|
||||
- name: JEOC_MST
|
||||
description: End of injected conversion flag of the master ADC
|
||||
bit_offset: 5
|
||||
bit_size: 1
|
||||
enum: JEOC_MST
|
||||
- name: JEOS_MST
|
||||
description: End of injected sequence flag of the master ADC
|
||||
bit_offset: 6
|
||||
bit_size: 1
|
||||
enum: JEOS_MST
|
||||
- name: AWD1_MST
|
||||
description: Analog watchdog 1 flag of the master ADC
|
||||
bit_offset: 7
|
||||
bit_size: 1
|
||||
enum: AWD1_MST
|
||||
- name: AWD2_MST
|
||||
description: Analog watchdog 2 flag of the master ADC
|
||||
bit_offset: 8
|
||||
bit_size: 1
|
||||
enum: AWD1_MST
|
||||
- name: AWD3_MST
|
||||
description: Analog watchdog 3 flag of the master ADC
|
||||
bit_offset: 9
|
||||
bit_size: 1
|
||||
enum: AWD1_MST
|
||||
- name: JQOVF_MST
|
||||
description: Injected Context Queue Overflow flag of the master ADC
|
||||
bit_offset: 10
|
||||
bit_size: 1
|
||||
enum: JQOVF_MST
|
||||
- name: ADRDY_SLV
|
||||
description: Slave ADC ready
|
||||
bit_offset: 16
|
||||
bit_size: 1
|
||||
enum: ADRDY_MST
|
||||
- name: EOSMP_SLV
|
||||
description: End of Sampling phase flag of the slave ADC
|
||||
bit_offset: 17
|
||||
bit_size: 1
|
||||
enum: EOSMP_MST
|
||||
- name: EOC_SLV
|
||||
description: End of regular conversion of the slave ADC
|
||||
bit_offset: 18
|
||||
bit_size: 1
|
||||
enum: EOC_MST
|
||||
- name: EOS_SLV
|
||||
description: End of regular sequence flag of the slave ADC
|
||||
bit_offset: 19
|
||||
bit_size: 1
|
||||
enum: EOS_MST
|
||||
- name: OVR_SLV
|
||||
description: Overrun flag of the slave ADC
|
||||
bit_offset: 20
|
||||
bit_size: 1
|
||||
enum: OVR_MST
|
||||
- name: JEOC_SLV
|
||||
description: End of injected conversion flag of the slave ADC
|
||||
bit_offset: 21
|
||||
bit_size: 1
|
||||
enum: JEOC_MST
|
||||
- name: JEOS_SLV
|
||||
description: End of injected sequence flag of the slave ADC
|
||||
bit_offset: 22
|
||||
bit_size: 1
|
||||
enum: JEOS_MST
|
||||
- name: AWD1_SLV
|
||||
description: Analog watchdog 1 flag of the slave ADC
|
||||
bit_offset: 23
|
||||
bit_size: 1
|
||||
enum: AWD1_MST
|
||||
- name: AWD2_SLV
|
||||
description: Analog watchdog 2 flag of the slave ADC
|
||||
bit_offset: 24
|
||||
bit_size: 1
|
||||
enum: AWD1_MST
|
||||
- name: AWD3_SLV
|
||||
description: Analog watchdog 3 flag of the slave ADC
|
||||
bit_offset: 25
|
||||
bit_size: 1
|
||||
enum: AWD1_MST
|
||||
- name: JQOVF_SLV
|
||||
description: Injected Context Queue Overflow flag of the slave ADC
|
||||
bit_offset: 26
|
||||
bit_size: 1
|
||||
enum: JQOVF_MST
|
||||
enum/ADRDY_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotReady
|
||||
description: ADC is not ready to start conversion
|
||||
value: 0
|
||||
- name: Ready
|
||||
description: ADC is ready to start conversion
|
||||
value: 1
|
||||
enum/AWD1_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NoEvent
|
||||
description: No analog watchdog event occurred
|
||||
value: 0
|
||||
- name: Event
|
||||
description: Analog watchdog event occurred
|
||||
value: 1
|
||||
enum/CKMODE:
|
||||
bit_size: 2
|
||||
variants:
|
||||
@ -262,69 +222,6 @@ enum/DUAL:
|
||||
- name: DualA
|
||||
description: Dual, alternate trigger mode only
|
||||
value: 9
|
||||
enum/EOC_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotComplete
|
||||
description: Regular conversion is not complete
|
||||
value: 0
|
||||
- name: Complete
|
||||
description: Regular conversion complete
|
||||
value: 1
|
||||
enum/EOSMP_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotEnded
|
||||
description: End of sampling phase no yet reached
|
||||
value: 0
|
||||
- name: Ended
|
||||
description: End of sampling phase reached
|
||||
value: 1
|
||||
enum/EOS_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotComplete
|
||||
description: Regular sequence is not complete
|
||||
value: 0
|
||||
- name: Complete
|
||||
description: Regular sequence complete
|
||||
value: 1
|
||||
enum/JEOC_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotComplete
|
||||
description: Injected conversion is not complete
|
||||
value: 0
|
||||
- name: Complete
|
||||
description: Injected conversion complete
|
||||
value: 1
|
||||
enum/JEOS_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NotComplete
|
||||
description: Injected sequence is not complete
|
||||
value: 0
|
||||
- name: Complete
|
||||
description: Injected sequence complete
|
||||
value: 1
|
||||
enum/JQOVF_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NoOverflow
|
||||
description: No injected context queue overflow has occurred
|
||||
value: 0
|
||||
- name: Overflow
|
||||
description: Injected context queue overflow has occurred
|
||||
value: 1
|
||||
enum/OVR_MST:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: NoOverrun
|
||||
description: No overrun occurred
|
||||
value: 0
|
||||
- name: Overrun
|
||||
description: Overrun occurred
|
||||
value: 1
|
||||
enum/PRESC:
|
||||
bit_size: 4
|
||||
variants:
|
||||
|
3
transforms/ADC.yaml
Normal file
3
transforms/ADC.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
transforms:
|
||||
- !DeleteEnums
|
||||
from: ^(AWD1?|J?EOC|JEOS|J?STRT|OVR|ADRDY|EOS(MP)?|JQOVF)(_MST)?$
|
Loading…
x
Reference in New Issue
Block a user