~ruther/avr-device

a2c84372a87bbfa9f71029da4fdb7268f6dc6158 — Jonah Dahlquist 5 years ago 57eef72
Add patch for SPI device

4 files changed, 21 insertions(+), 3 deletions(-)

M patch/atmega1280.yaml
M patch/atmega328p.yaml
M patch/atmega32u4.yaml
A patch/common/spi.yaml
M patch/atmega1280.yaml => patch/atmega1280.yaml +4 -3
@@ 1,5 1,6 @@
_include:
  - "common/usart.yaml"
  - "common/twi.yaml"
  - "common/ac.yaml"
  - "common/wdt.yaml"
\ No newline at end of file
  - "common/spi.yaml"
  - "common/twi.yaml"
  - "common/usart.yaml"
  - "common/wdt.yaml"

M patch/atmega328p.yaml => patch/atmega328p.yaml +1 -0
@@ 1,5 1,6 @@
_include:
  - "common/ac.yaml"
  - "common/spi.yaml"
  - "common/timer/tc0.yaml"
  - "common/twi.yaml"
  - "common/usart.yaml"

M patch/atmega32u4.yaml => patch/atmega32u4.yaml +1 -0
@@ 1,6 1,7 @@
_include:
  - "common/ac.yaml"
  - "common/pll.yaml"
  - "common/spi.yaml"
  - "common/timer/tc0.yaml"
  - "common/twi.yaml"
  - "common/usart.yaml"

A patch/common/spi.yaml => patch/common/spi.yaml +15 -0
@@ 0,0 1,15 @@
# Patches for the SPI peripheral
#
# Fix the SP2X status register bit to have write access
SPI:
  _modify:
    SPSR:
      access: read-write
  SPSR:
    _modify:
      SPIF:
        access: read-only
      WCOL:
        access: read-only
      SPI2X:
        access: read-write

Do not follow this link