From ad5e5c42fb00334ec0e9b0e9e8c69c4b7d05ac7a Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Tue, 17 Nov 2015 22:40:31 +0100 Subject: hwstub: fix atj213x dsp lua code Change-Id: I5fbd1799b958bedbe74f91bdcdd8a544e15d2a78 --- utils/hwstub/tools/lua/atj/dsp.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'utils/hwstub/tools') 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 -- cgit v1.2.3