summaryrefslogtreecommitdiff
path: root/utils/hwstub/tools/lua/pp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/tools/lua/pp.lua')
-rw-r--r--utils/hwstub/tools/lua/pp.lua9
1 files changed, 9 insertions, 0 deletions
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