~ruther/avr-device

ref: aae9508c0ea13ccee41fb2738e9b5f77dac8deb8 avr-device/patch/common/ac.yaml -rw-r--r-- 662 bytes
aae9508c — Rahix common: Add some comments to the patch files 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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:
  _modify:
    ACSR:
      access: read-write
  ACSR:
    _modify:
      ACIS:
        description: "Analog Comparator Interrupt Mode Select"
      ACO:
        access: read-only
    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