~ruther/avr-device

ref: 06ef5e65c7234543f08be66f1a10c284e2cdd68f avr-device/patch/common/ac.yaml -rw-r--r-- 641 bytes
06ef5e65 — Michael Buesch Small fixes 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Patches for the Analog Comparator
#
# - Make the control-register actually writable
# - Fix the description of the "Interrupt Mode Select" field
# - Make just the Output field of ACSR read-only
# - Fix the "Interrupt Mode Select" enumerated values
AC:
  ACSR,ACSR?A,ACSRA:
    _modify:
      ACIS,ACIS?:
        description: "Analog Comparator Interrupt Mode Select"
      ACO:
        access: read-only
    ACIS,ACIS?:
      _replace_enum:
        ON_TOGGLE: [0, "Interrupt on Toggle"]
        # Leaving [1, 'Reserved'] out
        ON_FALLING_EDGE: [2, "Interrupt on Falling Edge"]
        ON_RISING_EDGE: [3, "Interrupt on Rising Edge"]
Do not follow this link