~ruther/avr-device

ref: 1a469759a29388aa5e403cade80fb5dc2f4d8def avr-device/patch/common/twi.yaml -rw-r--r-- 668 bytes
1a469759 — Rahix Only build docs for some MCUs on docs.rs 2 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
# 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*:
  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