diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-05-05 23:17:41 +0200 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-05-11 19:56:15 +0200 |
| commit | d8071221c5a91fa51f75db9d7a53f1a82a78ffe4 (patch) | |
| tree | cc16197e41197666daf76681b8faf97776fd78d8 /utils/hwstub/tools/lua/pp.lua | |
| parent | 5b89e6618f023b46be1dc91ba4eab46e78bc7121 (diff) | |
| download | rockbox-d8071221c5a91fa51f75db9d7a53f1a82a78ffe4.zip rockbox-d8071221c5a91fa51f75db9d7a53f1a82a78ffe4.tar.gz rockbox-d8071221c5a91fa51f75db9d7a53f1a82a78ffe4.tar.bz2 rockbox-d8071221c5a91fa51f75db9d7a53f1a82a78ffe4.tar.xz | |
hwstub: add some PP and Sansa View code
Change-Id: If188a01adee2a0e1c7a46c424a0a9cde9f666831
Diffstat (limited to 'utils/hwstub/tools/lua/pp.lua')
| -rw-r--r-- | utils/hwstub/tools/lua/pp.lua | 9 |
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 |