py/inlineasm: Add ability to specify return type of asm_thumb funcs.

Supported return types are: object, bool, int, uint.

For example:

@micropython.asm_thumb
def foo(r0, r1) -> uint:
    add(r0, r0, r1)
This commit is contained in:
Damien George
2016-01-15 15:20:43 +00:00
parent 3d42aa07dd
commit 8f54c08691
10 changed files with 65 additions and 16 deletions

View File

@@ -113,6 +113,7 @@ Q(asm_thumb)
Q(label)
Q(align)
Q(data)
Q(uint)
#endif
Q(builtins)