micropython/lib/utils
Jim Mussared 710426024a all: Factor gchelper code to one place and use it for unix & ARM ports.
No functionality change is intended with this commit, it just consolidates
the separate implementations of GC helper code to the lib/utils/ directory
as a general set of helper functions useful for any port.  This reduces
duplication of code, and makes it easier for future ports or embedders to
get the GC implementation correct.

Ports should now link against gchelper_native.c and either gchelper_m0.s or
gchelper_m3.s (currently only Cortex-M is supported but other architectures
can follow), or use the fallback gchelper_generic.c which will work on
x86/x64/ARM.

The gc_helper_get_sp function from gchelper_m3.s is not really GC related
and was only used by cc3200, so it has been moved to that port and renamed
to cortex_m3_get_sp.
2020-04-29 23:45:19 +10:00
..
gchelper.h all: Factor gchelper code to one place and use it for unix & ARM ports. 2020-04-29 23:45:19 +10:00
gchelper_generic.c all: Factor gchelper code to one place and use it for unix & ARM ports. 2020-04-29 23:45:19 +10:00
gchelper_m0.s stm32: Move gchelper assembler code to lib/utils for use by other ports. 2019-02-12 14:11:21 +11:00
gchelper_m3.s all: Factor gchelper code to one place and use it for unix & ARM ports. 2020-04-29 23:45:19 +10:00
gchelper_native.c all: Factor gchelper code to one place and use it for unix & ARM ports. 2020-04-29 23:45:19 +10:00
interrupt_char.c py/scheduler: Move clearing of kbd traceback to mp_keyboard_interrupt. 2020-02-07 16:08:31 +11:00
interrupt_char.h py/scheduler: Move mp_keyboard_interrupt from lib/utils to py core. 2020-02-07 16:08:26 +11:00
mpirq.c all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
mpirq.h lib/utils: Add generic MicroPython IRQ helper functions. 2018-12-29 17:08:55 +11:00
printf.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
pyexec.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
pyexec.h lib/utils: Change default value of pyexec_mode_kind to 0 to put in bss. 2020-02-04 18:10:26 +11:00
stdout_helpers.c various: Spelling fixes 2017-05-29 11:36:05 +03:00
sys_stdio_mphal.c all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00