diff --git a/data/registers/comp_h7.yaml b/data/registers/comp_h7.yaml new file mode 100644 index 0000000..40bffbc --- /dev/null +++ b/data/registers/comp_h7.yaml @@ -0,0 +1,164 @@ +block/COMP1: + description: COMP1. + items: + - name: SR + description: Comparator status register. + byte_offset: 0 + access: Read + fieldset: SR + - name: ICFR + description: Comparator interrupt clear flag register. + byte_offset: 4 + access: Write + fieldset: ICFR + - name: OR + description: Comparator option register. + byte_offset: 8 + fieldset: OR + - name: CFGR1 + description: Comparator configuration register 1. + byte_offset: 12 + fieldset: CFGR1 + - name: CFGR2 + description: Comparator configuration register 2. + byte_offset: 16 + fieldset: CFGR2 +fieldset/CFGR1: + description: Comparator configuration register 1. + fields: + - name: EN + description: COMP channel 1 enable bit. + bit_offset: 0 + bit_size: 1 + - name: BRGEN + description: Scaler bridge enable. + bit_offset: 1 + bit_size: 1 + - name: SCALEN + description: Voltage scaler enable bit. + bit_offset: 2 + bit_size: 1 + - name: POLARITY + description: COMP channel 1 polarity selection bit. + bit_offset: 3 + bit_size: 1 + - name: ITEN + description: COMP channel 1 interrupt enable. + bit_offset: 6 + bit_size: 1 + - name: HYST + description: COMP channel 1 hysteresis selection bits. + bit_offset: 8 + bit_size: 2 + - name: PWRMODE + description: Power Mode of the COMP channel 1. + bit_offset: 12 + bit_size: 2 + - name: INMSEL + description: COMP channel 1 inverting input selection field. + bit_offset: 16 + bit_size: 3 + - name: INPSEL + description: COMP channel 1 non-inverting input selection bit. + bit_offset: 20 + bit_size: 1 + - name: BLANKING + description: COMP channel 1 blanking source selection bits. + bit_offset: 24 + bit_size: 4 + - name: LOCK + description: Lock bit. + bit_offset: 31 + bit_size: 1 +fieldset/CFGR2: + description: Comparator configuration register 2. + fields: + - name: EN + description: COMP channel 1 enable bit. + bit_offset: 0 + bit_size: 1 + - name: BRGEN + description: Scaler bridge enable. + bit_offset: 1 + bit_size: 1 + - name: SCALEN + description: Voltage scaler enable bit. + bit_offset: 2 + bit_size: 1 + - name: POLARITY + description: COMP channel 1 polarity selection bit. + bit_offset: 3 + bit_size: 1 + - name: WINMODE + description: Window comparator mode selection bit. + bit_offset: 4 + bit_size: 1 + - name: ITEN + description: COMP channel 1 interrupt enable. + bit_offset: 6 + bit_size: 1 + - name: HYST + description: COMP channel 1 hysteresis selection bits. + bit_offset: 8 + bit_size: 2 + - name: PWRMODE + description: Power Mode of the COMP channel 1. + bit_offset: 12 + bit_size: 2 + - name: INMSEL + description: COMP channel 1 inverting input selection field. + bit_offset: 16 + bit_size: 3 + - name: INPSEL + description: COMP channel 1 non-inverting input selection bit. + bit_offset: 20 + bit_size: 1 + - name: BLANKING + description: COMP channel 1 blanking source selection bits. + bit_offset: 24 + bit_size: 4 + - name: LOCK + description: Lock bit. + bit_offset: 31 + bit_size: 1 +fieldset/ICFR: + description: Comparator interrupt clear flag register. + fields: + - name: CC1IF + description: Clear COMP channel 1 Interrupt Flag. + bit_offset: 16 + bit_size: 1 + - name: CC2IF + description: Clear COMP channel 2 Interrupt Flag. + bit_offset: 17 + bit_size: 1 +fieldset/OR: + description: Comparator option register. + fields: + - name: AFOP + description: Selection of source for alternate function of output ports. + bit_offset: 0 + bit_size: 11 + - name: OR + description: Option Register. + bit_offset: 11 + bit_size: 21 +fieldset/SR: + description: Comparator status register. + fields: + - name: C1VAL + description: COMP channel 1 output status bit. + bit_offset: 0 + bit_size: 1 + - name: C2VAL + description: COMP channel 2 output status bit. + bit_offset: 1 + bit_size: 1 + - name: C1IF + description: COMP channel 1 Interrupt Flag. + bit_offset: 16 + bit_size: 1 + - name: C2IF + description: COMP channel 2 Interrupt Flag. + bit_offset: 17 + bit_size: 1