rtc-cleanup

This commit is contained in:
eZio Pan 2024-01-02 19:01:53 +08:00
parent aa06d3ab90
commit 8e2437a6c3
2 changed files with 21 additions and 20 deletions

View File

@ -713,10 +713,10 @@ enum/ALRMF:
enum/ALRMR_MSK: enum/ALRMR_MSK:
bit_size: 1 bit_size: 1
variants: variants:
- name: Mask - name: ToMatch
description: Alarm set if the date/day match description: Alarm set if the date/day match
value: 0 value: 0
- name: NotMask - name: NotMatch
description: Date/day dont care in Alarm comparison description: Date/day dont care in Alarm comparison
value: 1 value: 1
enum/ALRMR_PM: enum/ALRMR_PM:
@ -854,15 +854,6 @@ enum/RECALPF:
- name: Pending - name: Pending
description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0
value: 1 value: 1
enum/REFCKON:
bit_size: 1
variants:
- name: Disabled
description: RTC_REFIN detection disabled
value: 0
- name: Enabled
description: RTC_REFIN detection enabled
value: 1
enum/SSRUF: enum/SSRUF:
bit_size: 1 bit_size: 1
variants: variants:
@ -875,15 +866,6 @@ enum/SSRUMF:
- name: Underflow - name: Underflow
description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1
value: 1 value: 1
enum/TAMPALRM_PU:
bit_size: 1
variants:
- name: NoPullUp
description: No pull-up is applied on TAMPALRM output
value: 0
- name: PullUp
description: A pull-up is applied on TAMPALRM output
value: 1
enum/TAMPALRM_TYPE: enum/TAMPALRM_TYPE:
bit_size: 1 bit_size: 1
variants: variants:

19
transforms/RTC.yaml Normal file
View File

@ -0,0 +1,19 @@
transforms:
- !DeleteEnums
from: ^(CNF|REFCKON|ALRWF|INIT|TAMPALRM_PU)$
- !RenameEnumVariants
enum: ^RTOFF$
from: Enabled
to: Ongoing
- !RenameEnumVariants
enum: ^RTOFF$
from: Disabled
to: Terminated
- !RenameEnumVariants
enum: ^ALRMR_MSK$
from: Mask
to: ToMatch
- !RenameEnumVariants
enum: ^ALRMR_MSK$
from: NotMask
to: NotMatch