Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/support/drivers/boot.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/support/drivers/boot.lua')
-rw-r--r--lib/support/drivers/boot.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/support/drivers/boot.lua b/lib/support/drivers/boot.lua
new file mode 100644
index 0000000..2471ab9
--- /dev/null
+++ b/lib/support/drivers/boot.lua
@@ -0,0 +1,11 @@
+local device = _G
+local RESET = string.char(0xFF)
+
+api={}
+api.reset = {}
+api.reset.parameters = {} --no parameters
+api.reset.returns = {} --no returns
+api.reset.call = function ()
+ device:send(RESET)
+end
+