summaryrefslogtreecommitdiff
path: root/tools/metrics.py
diff options
context:
space:
mode:
authorMatthias Blankertz <matthias@blankertz.org>2024-05-31 18:49:59 +0200
committerDamien George <damien@micropython.org>2024-06-03 14:40:23 +1000
commit93394da69c46324b53465abaee05919d543a754a (patch)
tree51bce60e4f9628d3434296bcac7f81e375b92efc /tools/metrics.py
parent84a8f7ea6dfa3529b024d31fa25bb91153bbfc35 (diff)
rp2/modmachine: Use atomic section macros in lightsleep code.
To avoid undefined references to `mp_thread_begin_atomic_section()` / `mp_thread_end_atomic_section()`, replace them with the `MICROPY_BEGIN_ATOMIC_SECTION` / `MICROPY_END_ATOMIC_SECTION` macros. That way, it's possible to build again with `MICROPY_PY_THREAD` disabled (made possible by efa54c27b9eab3b61319e7f16d05db0ac3b6bc14). Fixes commit 19844b4983066c5771cb60a341c3fce52bca2a87. Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
Diffstat (limited to 'tools/metrics.py')
0 files changed, 0 insertions, 0 deletions