~ruther/avr-device

ref: 1e0eb40c3a8d82c6a3452a21e3cb3c6e56ce346f avr-device/patch/common/twi.yaml -rw-r--r-- 713 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
24
25
26
27
28
# Patches for the Two-Wire-Interface peripheral (i2c)
#
# - Make the Control Register read-write with only the
#   "Write Collision Flag" being read-only
# - Fix the "Slave Address Mask" description
# - Fix the Prescaler enumerated values
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