~ruther/avr-device

ref: 0806f412874ec0be5df85574f163102da6314ae7 avr-device/patch/common/pll.yaml -rw-r--r-- 1005 bytes
0806f412 — Rahix svdpatch: Add _write_constraint modifier 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
29
30
31
32
33
34
35
# Patches for the PLL Clock Generator
#
# - Make the Lock Detector field read-only
# - Add descriptions for "Input Multiplexer" and "USB Postscaler"
# - Add enumerated values to "Lock Frequency" and Postscaler fields
PLL:
  PLLCSR:
    _modify:
      PLOCK:
        access: read-only
  PLLFRQ:
    _modify:
      PINMUX:
        description: "PLL Input Multiplexer"
      PLLUSB:
        description: "PLL Postscaler for USB Peripheral"
      PDIV:
        description: "PLL Lock Frequency"
        _write_constraint: none
      PLLTM:
        description: "PLL Postscaler for High Speed Timer"
        _write_constraint: enum
    PDIV:
      MHZ40: [0b0011, "40 MHz"]
      MHZ48: [0b0100, "48 MHz"]
      MHZ56: [0b0101, "56 MHz"]
      MHZ72: [0b0111, "72 MHz"]
      MHZ80: [0b1000, "80 MHz"]
      MHZ88: [0b1001, "88 MHz"]
      MHZ96: [0b1010, "96 MHz"]
    PLLTM:
      DISCONNECTED: [0, "0 (Disconnected)"]
      FACTOR_1:     [1, "1"]
      FACTOR_15:    [2, "1.5"]
      FACTOR_2:     [3, "2"]
Do not follow this link