sysbus:
    init:
        Tag <0x40001010 0x4> "OSCCTRL_STATUS" 0x103
        Tag <0x4000101C 0x4> "OSCCTRL_DFLLCTRLA" 0x2
        Tag <0x40001030 0x4> "OSCCTRL_DPLL0CTRLA" 0x2
        Tag <0x40001040 0x4> "OSCCTRL_DPLL0STATUS" 0x3
        Tag <0x4000140C 0x4> "OSC32KCTRL_STATUS" 0x01

OSCCTRL_DPLL0: Memory.ArrayMemory @ sysbus 0x40001034
    size: 0x8

UNKNOWN2: Python.PythonPeripheral @ sysbus 0x40000814
    size: 0x4
    initable: true
    filename: "scripts/pydev/repeater.py"

UNKNOWN3: Python.PythonPeripheral @ sysbus 0x40000820
    size: 0x4
    initable: true
    filename: "scripts/pydev/repeater.py"

UNKNOWN4: Python.PythonPeripheral @ sysbus 0x40001C90
    size: 0x4
    initable: true
    filename: "scripts/pydev/repeater.py"

// Used by pic32cx_sg61_cult
GCLK_GENCTRL0: Python.PythonPeripheral @ sysbus 0x40001C20
    size: 0x4
    initable: true
    script: '''
if request.IsInit:
    lastVal = 0x100
elif request.IsRead:
    request.Value = lastVal | 0x100
elif request.IsWrite:
    lastVal = request.Value
'''

GCLK_GENCTRL1: Python.PythonPeripheral @ sysbus 0x40001C24
    size: 0x4
    initable: true
    filename: "scripts/pydev/repeater.py"

GCLK_PCHCTRL12: Python.PythonPeripheral @ sysbus 0x40001D08
    size: 0x4
    initable: true
    filename: "scripts/pydev/repeater.py"
