📄 st20gp6addr.cfg
字号:
## addresses of onchip gp6 devices
Devices.index=0
Devices.EMIindex=Devices.index++
Devices[Devices.EMIindex].symname = "EMIAddr"
Devices[Devices.EMIindex].addr = 0x2000
Devices.DCU2index=Devices.index++
Devices[Devices.DCU2index].symname = "DCU2Addr"
Devices[Devices.DCU2index].addr = 0x3000
Devices.INTCTRLindex=Devices.index++
Devices[Devices.INTCTRLindex].symname = "InterruptControllerAddr"
Devices[Devices.INTCTRLindex].addr = 0x20000000
Devices.INTCTRLLEVELSindex=Devices.index++
Devices[Devices.INTCTRLLEVELSindex].symname = "InterruptControllerLevels"
Devices[Devices.INTCTRLLEVELSindex].addr = 8
Devices.LPCTRLindex=Devices.index++
Devices[Devices.LPCTRLindex].symname = "LowPowerControllerAddr"
Devices[Devices.LPCTRLindex].addr = 0x20000400
Devices.RTClockindex=Devices.index++
Devices[Devices.RTClockindex].symname = "RealTimeClockAddr"
Devices[Devices.RTClockindex].addr = 0x20002000
Devices.INTLEVELCTRLindex=Devices.index++
Devices[Devices.INTLEVELCTRLindex].symname = "InterruptLevelControllerAddr"
Devices[Devices.INTLEVELCTRLindex].addr = 0x20001000
Devices.INTLEVELCTRLNUMINPUTSindex=Devices.index++
Devices[Devices.INTLEVELCTRLNUMINPUTSindex].symname = "InterruptLevelControllerNumInputs"
Devices[Devices.INTLEVELCTRLNUMINPUTSindex].addr = 18
Devices.INTLEVELCTRLINPUTOFFSETindex=Devices.index++
Devices[Devices.INTLEVELCTRLINPUTOFFSETindex].symname = "InterruptLevelControllerInputOffset"
Devices[Devices.INTLEVELCTRLINPUTOFFSETindex].addr = 18
Devices.ASCindex=Devices.index
Devices.NUMASC=2
for (i=0;i<Devices.NUMASC;i++) {
Devices[Devices.ASCindex+i].symname = "ASC"+(mkstr(i))+"Addr"
Devices[Devices.ASCindex+i].addr = 0x20004000 + (i * 0x2000)
}
Devices.index += Devices.NUMASC
Devices.PIOindex=Devices.index
Devices.NUMPIO=2
for (i=0;i<Devices.NUMPIO;i++) {
Devices[Devices.PIOindex+i].symname = "PIOController"+(mkstr(i))+"Addr"
Devices[Devices.PIOindex+i].addr = 0x20008000 + (i * 0x1000)
}
Devices.index += Devices.NUMPIO
Devices.DSPindex=Devices.index++
Devices[Devices.DSPindex].symname = "DSPControllerAddr"
Devices[Devices.DSPindex].addr = 0x2000c000
proc gp6memory {
memory INTERNAL 0x80000000 0x10000 RAM
memory SYSTEM 0x80000000 0x140 RAM
memory ONCHIPDEVICES 0 0x5000 DEVICE ## can be word accessed via DCU
memory ONCHIPPERIPHERALS 0x20000000 0xD000 PERIPHERAL ## cannot be accessed via DCU
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -