From d8071221c5a91fa51f75db9d7a53f1a82a78ffe4 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 5 May 2014 23:17:41 +0200 Subject: hwstub: add some PP and Sansa View code Change-Id: If188a01adee2a0e1c7a46c424a0a9cde9f666831 --- utils/hwstub/tools/lua/pp.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils/hwstub/tools/lua/pp.lua') diff --git a/utils/hwstub/tools/lua/pp.lua b/utils/hwstub/tools/lua/pp.lua index 5f25030..f923478 100644 --- a/utils/hwstub/tools/lua/pp.lua +++ b/utils/hwstub/tools/lua/pp.lua @@ -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 -- cgit v1.1