⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sti55x8chip.cfg

📁 flash programming STI 5.5.1.4 DCU3
💻 CFG
字号:

#######################################################
##
## Set up STi55x8 register blocks within the MPEG block
##
#######################################################

proc sti55x8MPEGRegisters addr=$1 chiptype = $2 {

  VideoDecoderRegisters (addr, chiptype)

  ClockGenerator2Registers (addr, chiptype)
  DigitalEncoder2Registers (addr + 0x600, chiptype)
  PESParserRegisters (addr)
  SDRAM1DBlockMove2Registers (addr)
  AudioAC3Decoder2Registers (addr + 0x200)
  SubPictureDecoderRegisters (addr + 0x400, chiptype)
  FrequencySynthesiserRegisters (addr + 0x100)
}

#######################################################
##
## Set up STi55x8 peripheral register blocks
##
#######################################################

proc sti55x8registers chiptype=$1 i=0 cycles=5 {

  sti55x8MPEGRegisters (Devices[Devices.Videoindex].addr, chiptype)

  OverlayGraphicsRegisters(Devices[Devices.Videoindex].addr)
  OnScreenDisplayRegisters(Devices[Devices.Videoindex].addr)  
  EMIRegisters (Devices[Devices.EMIindex].addr, true, true, chiptype)
  DCU2Registers (Devices[Devices.DCU2index].addr)
  CacheControl2Registers (Devices[Devices.CACHEindex].addr)
  InterruptControllerRegisters (Devices[Devices.INTCTRLindex].addr)
  for (i=0;i<Devices.NUMASC;i++) {
    AsynchronousSerialControllerRegisters (Devices[Devices.ASCindex+i].addr, i, true, true, chiptype)
  }
  for (i=0;i<Devices.NUMSCI;i++) {
    SmartCardInterfaceRegisters (Devices[Devices.SCIindex+i].addr, i)
  }
  SynchronousSerialController2Registers (Devices[Devices.SCCindex].addr,0)
  if (chiptype == "5518") {
     SynchronousSerialController2Registers (Devices[Devices.SCCindex].addr+0x1000,1)
  }
  PWMControllerRegisters (Devices[Devices.PWMCTRLindex].addr)
  for (i=0;i<Devices.NUMPIO;i++) {
    PIOControllerRegisters (Devices[Devices.PIOindex+i].addr, i)
  }
  if (chiptype == "5518") {
    InterruptLevelController2Registers (Devices[Devices.INTLEVELCTRLindex].addr, Devices[Devices.INTLEVELCTRLNUMINPUTSindex].addr)
  } else {
    InterruptLevelControllerRegisters (Devices[Devices.INTLEVELCTRLindex].addr, Devices[Devices.INTLEVELCTRLNUMINPUTSindex].addr, false, false)
  }
  for (i=0;i<Devices.NUMMPEGDMA;i++) {
     MPEGDMAController2Registers (Devices[Devices.MPEGDMACTRLindex+i].addr, i)
  }  
  BlockMoveDMAControllerRegisters (Devices[Devices.ChanBlockMoveindex].addr)
  LinkRegisters (Devices[Devices.LNKindex].addr, chiptype)
  FrontEndInterfaceRegisters (Devices[Devices.LNKindex].addr)
  ModemAnalogueFEIRegisters (Devices[Devices.ModemAnalogueFEIindex].addr, chiptype)
  if (chiptype == "5508") {
    KaraokeRegisters (Devices[Devices.Karaokeindex].addr)
  }
  if (chiptype == "5518") {
    TeletextInterfaceRegisters (Devices[Devices.Teletextindex].addr, false, chiptype)
    LowPowerControllerRegisters(Devices[Devices.LPCindex].addr,true)
    InfraRedBlasterRegisters(Devices[Devices.IRBindex].addr,chiptype)
  }
}




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -