micropython/ports
Andrew Leech 86bfabec11 py/modmicropython: Add heap_locked function to test state of heap.
This commit adds micropython.heap_locked() which returns the current
lock-depth of the heap, and can be used by Python code to check if the heap
is locked or not.  This new function is configured via
MICROPY_PY_MICROPYTHON_HEAP_LOCKED and is disabled by default.

This commit also changes the return value of micropython.heap_unlock() so
it returns the current lock-depth as well.
2020-03-11 16:54:16 +11:00
..
bare-arm all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
cc3200 all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
esp32 esp32: Deinitialize Bluetooth on soft reset. 2020-03-11 13:02:00 +11:00
esp8266 esp8266/machine_pin: Disable ets_loop_iter during hard IRQ handler. 2020-03-10 16:48:34 +11:00
javascript all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
mimxrt mimxrt: Add MIMXRT1010 board. 2020-03-11 15:36:27 +11:00
minimal all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
nrf all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
pic16bit all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
powerpc all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
qemu-arm all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
samd samd: Fix to build with latest tinyusb. 2020-03-11 15:34:10 +11:00
stm32 extmod/vfs: Factor out vfs mount-and-chdir helper from stm32. 2020-03-11 14:24:26 +11:00
teensy all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
unix py/modmicropython: Add heap_locked function to test state of heap. 2020-03-11 16:54:16 +11:00
windows all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
zephyr all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00