mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 09:30:24 +08:00
12 lines
158 B
Python
12 lines
158 B
Python
|
@micropython.asm_thumb
|
||
|
def getIPSR():
|
||
|
mrs(r0, IPSR)
|
||
|
|
||
|
@micropython.asm_thumb
|
||
|
def getBASEPRI():
|
||
|
mrs(r0, BASEPRI)
|
||
|
|
||
|
print(getBASEPRI())
|
||
|
print(getIPSR())
|
||
|
|