micropython/shared
Chris Webb 81985d20c9 shared/runtime/mpirq: Check separate hard IRQ stack correctly.
On the zephyr port, hard IRQ handlers run with a separate stack on a
different thread, so each call to mp_irq_dispatch() and mp_irq_handler()
has to be wrapped with adjustments to the stack-limit checker.

Move these adjustments into the shared mp_irq_dispatch(), introducing
MICROPY_STACK_SIZE_HARD_IRQ which a port can define to non-zero if it
uses a separate stack for hard IRQ handlers. We only need wrap the hard
dispatch case. This should reduce binary size on zephyr without affecting
other ports.

Signed-off-by: Chris Webb <chris@arachsys.com>
2025-09-25 23:59:24 +10:00
..
libc all: Rename the "NORETURN" macro to "MP_NORETURN". 2025-05-13 10:36:47 +10:00
memzip ports: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
netutils shared/netutils: Cast the ticks value before printing. 2025-07-25 11:00:08 +10:00
readline all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
runtime shared/runtime/mpirq: Check separate hard IRQ stack correctly. 2025-09-25 23:59:24 +10:00
timeutils shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
tinyusb shared/tinyusb/mp_usbd_cdc: Rewrite USB CDC TX loop. 2025-09-10 12:35:10 +10:00
README.md lib,shared: Update README's based on contents of these dirs. 2021-07-13 00:17:02 +10:00

This directory contains libraries, utilities and helper code developed specifically for this project. The code is intended to be portable and usable by any port.