2013-06-13 00:12:01 +00:00
|
|
|
package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path
|
2016-02-07 21:46:58 +00:00
|
|
|
require "stmp"
|
|
|
|
require "pp"
|
|
|
|
require "rk27xx"
|
|
|
|
require "atj"
|
|
|
|
require "jz"
|
2014-11-25 23:00:11 +00:00
|
|
|
require "hwlib"
|
2013-07-18 21:55:35 +00:00
|
|
|
require "dumper"
|
2016-02-07 21:46:58 +00:00
|
|
|
|
|
|
|
LOAD = {}
|
|
|
|
|
|
|
|
function LOAD.init()
|
|
|
|
if hwstub.dev.target.id == hwstub.dev.target.STMP then
|
|
|
|
STMP.init()
|
|
|
|
elseif hwstub.dev.target.id == hwstub.dev.target.PP then
|
|
|
|
PP.init()
|
|
|
|
elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then
|
|
|
|
RK27XX.init()
|
|
|
|
elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then
|
|
|
|
ATJ.init()
|
|
|
|
elseif hwstub.dev.target.id == hwstub.dev.target.JZ then
|
|
|
|
JZ.init()
|
|
|
|
end
|
|
|
|
end
|