~ruther/avr-device

ref: d15a55172f76aa48607391ec33e9173da850198f avr-device/patch/attiny841.yaml -rw-r--r-- 1.5 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
_svd: ../svd/attiny841.svd

_include:
  - "common/ac.yaml"
  - "common/spi.yaml"
  - "common/usart.yaml"
  - "common/wdt.yaml"

  - "timer/attiny841.yaml"

ADC:
  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"]
  ADMUXB:
    REFS:
      _replace_enum:
        VCC: [0, "Vcc"]
        INTERNAL_1: [1, "Internal 1.1V Voltage Reference with AREF disconnected"]
        INTERNAL_2: [2, "Internal 2.2V Voltage Reference with AREF disconnected"]
        INTERNAL_4: [3, "Internal 4.096V Voltage Reference with AREF disconnected"]
        AREF: [4, "AREF with internal reference off"]
        AREF_INTERNAL_1: [5, "Internal 1.1V Voltage Reference with external capacitor at AREF pin"]
        AREF_INTERNAL_2: [6, "Internal 2.2V Voltage Reference with external capacitor at AREF pin"]
        AREF_INTERNAL_4: [7, "Internal 4.096V Voltage Reference with external capacitor at AREF pin"]

# While this chip does have a TWI peripheral, it only performs as a
# slave, so it doesn't have many of the fields that the common peripheral
# does, like TWWC, TWAMR, and TWPS
TWI*:
  TWSCRB:
    TWAA:
      _replace_enum:
        SEND_ACK: [0, "Send ACK (timing depends on `TWSME`)"]
        SEND_NACK: [1, "Send NACK (timing depends on `TWSME`)"]
Do not follow this link