~ruther/avr-device

ref: aae9508c0ea13ccee41fb2738e9b5f77dac8deb8 avr-device/patch/common/twi.yaml -rw-r--r-- 713 bytes
aae9508c — Rahix common: Add some comments to the patch files 5 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