~ruther/avr-device

ref: bc60d30aebf63c25f1357f3ff934e03c95be23ea avr-device/patch/common/spi.yaml -rw-r--r-- 476 bytes
bc60d30a — Rahix all: Drop unnecessary access mode patches 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Patches for the SPI peripheral
#
# Fix the SP2X status register bit to have write access
SPI*:
  SPSR:
    _modify:
      SPIF:
        access: read-only
      WCOL:
        access: read-only
  SPCR:
    SPR:
      _replace_enum:
        FOSC_4_2: [0, "Fosc/4 if SPI2X == 0 else Fosc/2"]
        FOSC_16_8: [1, "Fosc/16 if SPI2X == 0 else Fosc/8"]
        FOSC_64_32: [2, "Fosc/64 if SPI2X == 0 else Fosc/32"]
        FOSC_128_64: [3, "Fosc/128 if SPI2X == 0 else Fosc/64"]
Do not follow this link