1
0
Fork 0
forked from len0rd/rockbox

hwstub: add some PP and Sansa View code

Change-Id: If188a01adee2a0e1c7a46c424a0a9cde9f666831
This commit is contained in:
Amaury Pouly 2014-05-05 23:17:41 +02:00
parent 5b89e6618f
commit d8071221c5
3 changed files with 235 additions and 0 deletions

View file

@ -60,3 +60,12 @@ PP.debug_on = false
function PP.debug(...)
if PP.debug_on then print(...) end
end
hh = h:create_topic("debug")
hh:add("PP.debug(...) prints some debug output if PP.debug_on is true and does nothing otherwise.")
PP.debug_on = false
if PP.info.chip ~= nil then
require "pp/gpio"
end