]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/micropython.py
Add missing modules to the API documentation
[Adafruit_Blinka-hackapet.git] / src / micropython.py
index b5af9b39a5c5627d735dfdd3ecf0dcd756907fdd..b380dcb885833d4f2785dec8b096041548677690 100755 (executable)
@@ -1,2 +1,30 @@
+"""
+`micropython` - MicroPython Specific Decorator Functions
+========================================================
+
+* Author(s): cefn
+"""
+
+
+__version__ = "0.0.0-auto.0"
+__repo__ = "https://github.com/adafruit/Adafruit_Blinka.git"
+
+
 def const(x):
+    "Emulate making a constant"
     return x
+
+
+def native(f):
+    "Emulate making a native"
+    return f
+
+
+def viper(f):
+    "User is attempting to use a viper code emitter"
+    raise SyntaxError("invalid micropython decorator")
+
+
+def asm_thumb(f):
+    "User is attempting to use an inline assembler"
+    raise SyntaxError("invalid micropython decorator")