samd: Add support for building with user C modules.

Fixes issue #7545.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-07-22 16:18:54 +10:00
parent 7649f5fbd2
commit a5ac3d5645
3 changed files with 36 additions and 4 deletions

View File

@@ -87,6 +87,11 @@ void nlr_jump_fail(void *val) {
}
}
void abort(void) {
for (;;) {
}
}
#ifndef NDEBUG
void MP_WEAK __assert_func(const char *file, int line, const char *func, const char *expr) {
mp_printf(MP_PYTHON_PRINTER, "Assertion '%s' failed, at file %s:%d\n", expr, file, line);