Open
Description
Bug Description
The @micropython.asm_thumb
decorator and assembly "functions" are not recognised by the code checker.
How To Reproduce
Add this code to the editor:
import micropython
import machine
FICR_PART_CODE = 0x10000100
@micropython.asm_thumb
def reg_read(r0):
ldr(r0, [r0, 0])
print("machine nRF part -> {}".format(hex(machine.mem32[FICR_PART_CODE])))
print("asm_thumb nRF part -> {}".format(hex(reg_read(FICR_PART_CODE))))
Expected behavior
No errors to be indicated in the code editor
Screenshots
Environment
N/A
Additional context
Low priority, but something to look into at some point.
Might be tricky to have all the assembly words as available "functions", but not in the autocompletion (or at least only when used inside a decorated function), or having the decorated function return something without the return keyword, and other weirdnesses.