~ruther/avr-device

9c2e7ecd2a73d9f2e906d92d132e439e24470ded — Andrew Dona-Couch 4 years ago 0a701c0
Extract common EXINT patch from tiny84/85
3 files changed, 25 insertions(+), 40 deletions(-)

M patch/attiny84.yaml
M patch/attiny85.yaml
A patch/common/tiny/exint.yaml
M patch/attiny84.yaml => patch/attiny84.yaml +3 -20
@@ 2,9 2,11 @@ _include:
  - "common/ac.yaml"
  - "common/eeprom.yaml"
  - "common/port.yaml"
  - "common/tiny/usi.yaml"
  - "common/wdt.yaml"

  - "common/tiny/exint.yaml"
  - "common/tiny/usi.yaml"

  - "timer/attiny84.yaml"

AC:


@@ 170,22 172,3 @@ CPU:
    _modify:
      CAL:
        access: read-write
EXINT:
  _modify:
    GIFR:
      access: read-write
  MCUCR:
    _delete:
      ISC??:
    _add:
      ISC0:
        description: "Interrupt Sense Control 0 bits"
        bitOffset: 0
        bitWidth: 2
        access: read-write
    ISC0:
      _replace_enum:
        LOW: [0, "The low level of INTx generates an interrupt request"]
        TOGGLE: [1, "Any logical change on INTx generates an interrupt request"]
        FALLING: [2, "The falling edge of INTx generates an interrupt request"]
        RISING: [3, "The rising edge of INTx generates an interrupt request"]

M patch/attiny85.yaml => patch/attiny85.yaml +3 -20
@@ 2,9 2,11 @@ _include:
  - "common/ac.yaml"
  - "common/eeprom.yaml"
  - "common/port.yaml"
  - "common/tiny/usi.yaml"
  - "common/wdt.yaml"

  - "common/tiny/exint.yaml"
  - "common/tiny/usi.yaml"

  - "timer/attiny85.yaml"

AC:


@@ 106,22 108,3 @@ CPU:
    _modify:
      PLOCK:
        access: read-only
EXINT:
  _modify:
    GIFR:
      access: read-write
  MCUCR:
    _delete:
      ISC??:
    _add:
      ISC0:
        description: "Interrupt Sense Control 0 bits"
        bitOffset: 0
        bitWidth: 2
        access: read-write
    ISC0:
      _replace_enum:
        LOW: [0, "The low level of INTx generates an interrupt request"]
        TOGGLE: [1, "Any logical change on INTx generates an interrupt request"]
        FALLING: [2, "The falling edge of INTx generates an interrupt request"]
        RISING: [3, "The rising edge of INTx generates an interrupt request"]

A patch/common/tiny/exint.yaml => patch/common/tiny/exint.yaml +19 -0
@@ 0,0 1,19 @@
EXINT:
  _modify:
    GIFR:
      access: read-write
  MCUCR:
    _delete:
      ISC??:
    _add:
      ISC0:
        description: "Interrupt Sense Control 0 bits"
        bitOffset: 0
        bitWidth: 2
        access: read-write
    ISC0:
      _replace_enum:
        LOW: [0, "The low level of INTx generates an interrupt request"]
        TOGGLE: [1, "Any logical change on INTx generates an interrupt request"]
        FALLING: [2, "The falling edge of INTx generates an interrupt request"]
        RISING: [3, "The rising edge of INTx generates an interrupt request"]

Do not follow this link