micropython: add micropython component
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
@micropython.asm_thumb
|
||||
def getIPSR():
|
||||
mrs(r0, IPSR)
|
||||
|
||||
|
||||
@micropython.asm_thumb
|
||||
def getBASEPRI():
|
||||
mrs(r0, BASEPRI)
|
||||
|
||||
|
||||
print(getBASEPRI())
|
||||
print(getIPSR())
|
Reference in New Issue
Block a user