~ruther/avr-device

ref: 660e3c0982f46cf716fc64fc0ece3f47272a9fc7 avr-device/patch/attiny85.yaml -rw-r--r-- 5.1 KiB
660e3c09 — Andrew Dona-Couch attiny85: Numerous patch improvements 4 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
_include:
  - "common/ac.yaml"
  - "common/wdt.yaml"

  - "timer/attiny85.yaml"

AC:
  _modify:
    DIDR0:
      description: "Digital Input Disable Register 0"
ADC:
  _modify:
    ADCSRA:
      description: "ADC Control and Status Register A"
  ADCSRA:
    ADPS:
      _replace_enum:
        PRESCALER_2: [1, "Prescaler Value 2"]
        PRESCALER_4: [2, "Prescaler Value 4"]
        PRESCALER_8: [3, "Prescaler Value 8"]
        PRESCALER_16: [4, "Prescaler Value 16"]
        PRESCALER_32: [5, "Prescaler Value 32"]
        PRESCALER_64: [6, "Prescaler Value 64"]
        PRESCALER_128: [7, "Prescaler Value 128"]
  ADCSRB:
    ADTS:
      _replace_enum:
        FREE: [0, "Free Running mode"]
        AC: [1, "Analog Comparator"]
        INT0: [2, "External Interrupt Request 0"]
        TC0_CMA: [3, "Timer/Counter0 Compare Match A"]
        TC0_OVF: [4, "Timer/Counter0 Overflow"]
        TC0_CMB: [5, "Timer/Counter0 Compare Match B"]
        PCIR: [6, "Pin Change Interrupt Request"]
  ADMUX:
    _modify:
      MUX:
        _write_constraint: enum
      REFS:
        _write_constraint: enum
    MUX:
      _replace_enum:
        ADC0: [0, "Single-ended Input ADC0"]
        ADC1: [1, "Single-ended Input ADC1"]
        ADC2: [2, "Single-ended Input ADC2"]
        ADC3: [3, "Single-ended Input ADC3"]
        ADC2_ADC2_G1: [4, "Differential Inputs Positive ADC2 Negative ADC2 1x Gain"]
        ADC2_ADC2_G20: [5, "Differential Inputs Positive ADC2 Negative ADC2 20x Gain"]
        ADC2_ADC3_G1: [6, "Differential Inputs Positive ADC2 Negative ADC3 1x Gain"]
        ADC2_ADC3_G20: [7, "Differential Inputs Positive ADC2 Negative ADC3 20x Gain"]
        ADC0_ADC0_G1: [8, "Differential Inputs Positive ADC0 Negative ADC0 1x Gain"]
        ADC0_ADC0_G20: [9, "Differential Inputs Positive ADC0 Negative ADC0 20x Gain"]
        ADC0_ADC1_G1: [10, "Differential Inputs Positive ADC0 Negative ADC1 1x Gain"]
        ADC0_ADC1_G20: [11, "Differential Inputs Postive ADC0 Negative ADC1 20x Gain"]
        ADC_VBG: [12, "Internal Reference (VBG)"]
        ADC_GND: [13, "0V (GND)"]
        TEMPSENS: [15, "Temperature sensor"]
    REFS:
      _replace_enum:
        VCC: [0, "Vcc used as Voltage Reference, disconnected from Aref"]
        AREF: [1, "External Voltage Reference at AREF pin, Internal Voltage Reference turned off"]
        INTERNAL: [2, "Internal Voltage Reference (1.1V when REFS2 is cleared, 2.56V when REFS2 is set) without external bypass"]
        INTERNAL_BYPASS: [3, "Internal 2.56V Voltage Reference with external bypass capacitor at AREF pin (REFS2 must be set)"]
CPU:
  _modify:
    CLKPR:
      access: read-write
    MCUSR:
      access: read-write
    OSCCAL:
      access: read-write
  CLKPR:
    CLKPS:
      _replace_enum:
        PRESCALER_1: [0, "Prescaler Value 1"]
        PRESCALER_2: [1, "Prescaler Value 2"]
        PRESCALER_4: [2, "Prescaler Value 4"]
        PRESCALER_8: [3, "Prescaler Value 8"]
        PRESCALER_16: [4, "Prescaler Value 16"]
        PRESCALER_32: [5, "Prescaler Value 32"]
        PRESCALER_64: [6, "Prescaler Value 64"]
        PRESCALER_128: [7, "Prescaler Value 128"]
        PRESCALER_256: [8, "Prescaler Value 256"]
  MCUCR:
    _delete:
      ISC?:
    _add:
      BODS:
        description: "BOD Sleep (available on some devices)"
        bitOffset: 7
        bitWidth: 1
        access: read-write
      BODSE:
        description: "BOD Sleep Enable (available on some devices)"
        bitOffset: 2
        bitWidth: 1
        access: read-write
  OSCCAL:
    _modify:
      CAL:
        access: read-write
  PLLCSR:
    _modify:
      PLOCK:
        access: read-only
EEPROM:
  EECR:
    EEPM:
      _replace_enum:
        ATOMIC: [0, "Atomic (erase and write in one operation)"]
        ERASE: [1, "Erase only"]
        WRITE: [2, "Write 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"]
USI:
  _modify:
    USISR:
      access: read-write
  USICR:
    _modify:
      USICLK:
        access: write-only
      USITC:
        access: write-only
    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."]
    USICS:
      NO_CLOCK: [0, "No Clock/Software clock strobe"]
      TC0:      [1, "Timer/Counter0 Compare Match"]
      EXT_POS:  [2, "External, positive edge"]
      EXT_NEG:  [3, "External, negative edge"]
  USISR:
    _modify:
      USIDC:
        access: read-only
Do not follow this link