~ruther/avr-device

5b8f3bc13ab59a98caa9a25490b40a337f13af86 — Rahix 6 years ago 3b58237
atmega32u4, attiny85: Add more patches

Signed-off-by: Rahix <rahix@rahix.de>
5 files changed, 46 insertions(+), 14 deletions(-)

A patch/atmega32u4.yaml
M patch/attiny85.yaml
M patch/common/ac.yaml
D patch/common/ac/acsr.yaml
A patch/common/twi.yaml
A patch/atmega32u4.yaml => patch/atmega32u4.yaml +3 -0
@@ 0,0 1,3 @@
_include:
  - "common/ac.yaml"
  - "common/twi.yaml"

M patch/attiny85.yaml => patch/attiny85.yaml +10 -1
@@ 1,2 1,11 @@
_include:
    - "common/ac.yaml"
  - "common/ac.yaml"

USI:
  USICR:
    USIWM:
      _replace_enum:
        DISABLED: [0, "All detectors disabled. Port pins operates as normal."]
        THREE_WIRE: [1, "Three-wire mode. Uses DO, DI, and USCK pins."]
        TWO_WIRE_SLAVE: [2, "Two-wire mode (Slave). Uses SDA (DI) and SCL (USCK) pins."]
        TWO_WIRE_MASTER: [3, "Two-wire mode (Master). Uses SDA and SCL pins."]

M patch/common/ac.yaml => patch/common/ac.yaml +11 -2
@@ 1,2 1,11 @@
_include:
    - "ac/acsr.yaml"
AC:
  ACSR:
    _modify:
      ACIS:
        description: "Analog Comparator Interrupt Mode Select"
    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"]

D patch/common/ac/acsr.yaml => patch/common/ac/acsr.yaml +0 -11
@@ 1,11 0,0 @@
AC:
    ACSR:
        _modify:
            ACIS:
                description: "Analog Comparator Interrupt Mode Select"
        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"]

A patch/common/twi.yaml => patch/common/twi.yaml +22 -0
@@ 0,0 1,22 @@
TWI:
  _modify:
    TWCR:
      access: read-write
  TWCR:
    _modify:
      TWWC:
        access: read-only
  TWAMR:
    _modify:
      TWAM:
        description: "TWI (Slave) Address Mask Bits"
  TWSR:
    _modify:
      TWS:
        access: read-only
    TWPS:
      _replace_enum:
        PRESCALER_1: [0, "Prescaler Value 1"]
        PRESCALER_4: [1, "Prescaler Value 4"]
        PRESCALER_16: [2, "Prescaler Value 16"]
        PRESCALER_64: [3, "Prescaler Value 64"]

Do not follow this link