diff options
author | Damien George <damien.p.george@gmail.com> | 2015-06-25 00:21:35 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-06-25 00:21:35 +0100 |
commit | 2110dc5a6dc9de415e8f4dda75262d4b98d1f0a4 (patch) | |
tree | 4293916bc3c64fca683c51e8580135c58321734b /docs/reference/asm_thumb2_misc.rst | |
parent | aef3846c13d05ddf42e5d6a29042497765f4e871 (diff) | |
download | micropython-2110dc5a6dc9de415e8f4dda75262d4b98d1f0a4.tar.gz micropython-2110dc5a6dc9de415e8f4dda75262d4b98d1f0a4.zip |
docs: Add reference for Thumb2 inline assembler.
Thanks to Peter Hinch for contributing this.
Diffstat (limited to 'docs/reference/asm_thumb2_misc.rst')
-rw-r--r-- | docs/reference/asm_thumb2_misc.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/reference/asm_thumb2_misc.rst b/docs/reference/asm_thumb2_misc.rst new file mode 100644 index 0000000000..eb96f48777 --- /dev/null +++ b/docs/reference/asm_thumb2_misc.rst @@ -0,0 +1,10 @@ +Miscellaneous instructions +========================== + +* nop() ``pass`` no operation. +* wfi() Suspend execution in a low power state until an interrupt occurs. +* cpsid(flags) set the Priority Mask Register - disable interrupts. +* cpsie(flags) clear the Priority Mask Register - enable interrupts. + +Currently the ``cpsie()`` and ``cpsid()`` functions are partially implemented. +They require but ignore the flags argument and serve as a means of enabling and disabling interrupts. |