~ruther/avr-device

694f88b42ee7d27e6d83c07ad8189dbeb19736f0 — Rahix 4 years ago f34cc88
patch: spi: Patch enumerated values for SPI prescaler

Rename the values for the SPI clock prescaler from VAL_0xXX to more
meaningful identifiers.

Signed-off-by: Rahix <rahix@rahix.de>
1 files changed, 7 insertions(+), 0 deletions(-)

M patch/common/spi.yaml
M patch/common/spi.yaml => patch/common/spi.yaml +7 -0
@@ 13,3 13,10 @@ SPI*:
        access: read-only
      SPI2X:
        access: read-write
  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