~ruther/avr-device

ref: 1e0eb40c3a8d82c6a3452a21e3cb3c6e56ce346f avr-device/patch/common/adc.yaml -rw-r--r-- 764 bytes
1e0eb40c — Andrew Dona-Couch Add support for ATmega2560 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
# Patches for the Analog Digital Converter
#
# - Make the control-register actually writable
ADC:
  _modify:
    ADCSRA:
      access: read-write
  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"]
  ADMUX:
    REFS:
      _replace_enum:
        AREF: [0, "Aref Internal Vref turned off"]
        AVCC: [1, "AVcc with external capacitor at AREF pin"]
        INTERNAL: [3, "Internal 1.1V Voltage Reference with external capacitor at AREF pin"]
Do not follow this link