aboutsummaryrefslogtreecommitdiff
path: root/stmhal/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index 4f5277975..2134e94fd 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -569,6 +569,10 @@ soft_reset:
goto soft_reset;
}
+/// \moduleref sys
+/// \function exit([retval])
+/// Raise a `SystemExit` exception. If an argument is given, it is the
+/// value given to `SystemExit`.
STATIC NORETURN mp_obj_t mp_sys_exit(uint n_args, const mp_obj_t *args) {
int rc = 0;
if (n_args > 0) {