diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2015-11-17 22:40:31 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2015-11-17 22:40:31 +0100 |
commit | ad5e5c42fb00334ec0e9b0e9e8c69c4b7d05ac7a (patch) | |
tree | 580c291bafb641119cbfd289ff683da467027319 | |
parent | f47f04b65fc7603ec5926dd5f941d6690a0daf91 (diff) | |
download | rockbox-ad5e5c4.tar.gz rockbox-ad5e5c4.zip |
hwstub: fix atj213x dsp lua code
Change-Id: I5fbd1799b958bedbe74f91bdcdd8a544e15d2a78
-rw-r--r-- | utils/hwstub/tools/lua/atj/dsp.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/hwstub/tools/lua/atj/dsp.lua b/utils/hwstub/tools/lua/atj/dsp.lua index 93c80e36ef..675378b6d4 100644 --- a/utils/hwstub/tools/lua/atj/dsp.lua +++ b/utils/hwstub/tools/lua/atj/dsp.lua @@ -37,21 +37,21 @@ end -- specified number of miliseconds before stoping DSP -- Then you can inspect DSP memories from MIPS side function ATJ.dsp.run(msec) - DSP.stop() - DSP.start() + ATJ.dsp.stop() + ATJ.dsp.start() hwstub.mdelay(msec) - DSP.stop() + ATJ.dsp.stop() end -- Clear DSP program memory function ATJ.dsp.clearPM() - DSP.stop() + ATJ.dsp.stop() for i=0,16*1024-1,4 do DEV.write32(0xb4040000+i, 0) end end -- Clear DSP data memory function ATJ.dsp.clearDM() - DSP.stop() + ATJ.dsp.stop() for i=0,16*1024-1,4 do DEV.write32(0xb4050000+i, 0) end end @@ -83,9 +83,9 @@ function ATJ.dsp.prog(opcodes, base, type) end local offset=0 - DSP.stop() + ATJ.dsp.stop() for i,opcode in ipairs(opcodes) do - DSP.write(base+4*offset, opcode) + ATJ.dsp.write(base+4*offset, opcode) offset=offset+1 end end @@ -112,7 +112,7 @@ function ATJ.dsp.progfile(path) -- Search for header describing target memory if string.find(line, '@PA') ~= nil then type = 'p' - elseif string.find(line, '@PD' ~= nil) then + elseif string.find(line, '@PD') ~= nil then type = 'd' end @@ -148,7 +148,7 @@ function ATJ.dsp.progfile(path) end -- Write to DSP memory - DSP.prog(opcodes, addr, type) + ATJ.dsp.prog(opcodes, addr, type) opcodes={} addr = nil type = nil |