~ruther/avr-device

ref: d15a55172f76aa48607391ec33e9173da850198f avr-device/patch/atmega328pb.yaml -rw-r--r-- 1.2 KiB
d15a5517 — Jacob McSwain Add support for ATtiny2313/A 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
_svd: ../svd/atmega328pb.svd

# Remove index suffix from all registers and fields
SPI0:
  _strip_end:
    - "0"
SPI1:
  _strip_end:
    - "1"
  SPSR:
    _strip_end:
      - "1"
  SPCR:
    _strip_end:
      - "1"

# Remove index suffix from all registers and fields
TWI0:
  _strip_end:
    - "0"
TWI1:
  _strip_end:
    - "1"
  TWCR:
    _strip_end:
      - "1"
  TWSR:
    _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:
  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/adc.yaml"
  - "common/usart.yaml"
  - "common/spi.yaml"
  - "common/twi.yaml"
  - "common/wdt.yaml"

  - "timer/atmega328pb.yaml"

EXINT:
  EIMSK:
    _modify:
      INT:
        description: External Interrupt Request Enable
    _split: [INT]
Do not follow this link