rp2/mutex_extra: Implement additional mutex functions.

These allow entering/exiting a mutex and also disabling/restoring
interrupts, in an atomic way.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-01-02 14:45:44 +11:00
parent c3989e398f
commit 8438c8790c
4 changed files with 67 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ set(MICROPY_SOURCE_PORT
mphalport.c
mpnetworkport.c
mpthreadport.c
mutex_extra.c
pendsv.c
rp2_flash.c
rp2_pio.c