micropython/ports/unix
Amir Gonnen cb332ddae8 unix/modffi: Add option to lock GC in callback, and cfun access.
Add an optional 'lock' kwarg to callback that locks GC and scheduler.  This
allows the callback to be invoked asynchronously in 'interrupt context',
for example as a signal handler.

Also add the 'cfun' member function to callback, that allows retrieving the
C callback function address.  This is needed when the callback should be
set to a struct field.

See related #7373.

Signed-off-by: Amir Gonnen <amirgonnen@gmail.com>
2021-06-24 23:12:26 +10:00
..
variants examples/usercmodules: Simplify user C module enabling. 2021-04-01 16:27:38 +11:00
.gitignore
Makefile stm32: Provide a custom BTstack runloop that integrates with soft timer. 2021-06-23 13:14:26 +10:00
alloc.c
coverage.c py/repl: Autocomplete builtin modules. 2021-05-02 23:11:14 +10:00
coveragecpp.cpp
fatfs_port.c
gccollect.c
input.c
input.h
main.c unix/main: Increase stack limit on ARM architectures. 2021-06-05 11:03:09 +10:00
modffi.c unix/modffi: Add option to lock GC in callback, and cfun access. 2021-06-24 23:12:26 +10:00
modjni.c
modmachine.c
modos.c
modtermios.c
modtime.c
moduos_vfs.c
moduselect.c unix/moduselect: Don't allow both posix and non-posix configurations. 2021-02-16 14:59:52 +11:00
modusocket.c
mpbthciport.c
mpbtstackport.h
mpbtstackport_common.c
mpbtstackport_h4.c
mpbtstackport_usb.c
mpconfigport.h
mpconfigport.mk
mphalport.h
mpnimbleport.c
mpnimbleport.h
mpthreadport.c unix: Fix build on arm64-darwin due to integer cast. 2021-06-15 00:08:24 +10:00
mpthreadport.h
qstrdefsport.h
unix_mphal.c py/mpstate: Schedule KeyboardInterrupt on main thread. 2021-06-19 09:49:00 +10:00