~ruther/avr-device

5387fdd8116d91cf3d097487ce2782ca05c43496 — jaxter184 4 years ago 0c63ac5
Fix atmega328pb AC patch
1 files changed, 20 insertions(+), 1 deletions(-)

M patch/atmega328pb.yaml
M patch/atmega328pb.yaml => patch/atmega328pb.yaml +20 -1
@@ 28,8 28,27 @@ TWI1:
    _strip_end:
      - "1"

# the svd has a register called ACSRA with no fields that
# messes up the patch when using `common/ac.yaml`, so the
# ac has to be patched here instead.
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"]

_include:
  - "common/ac.yaml"
  - "common/adc.yaml"
  - "common/port.yaml"
  - "common/usart.yaml"

Do not follow this link