summaryrefslogtreecommitdiff
path: root/stmhal/pyexec.h
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-10-21 23:04:38 -0700
committerDamien George <damien.p.george@gmail.com>2014-10-22 19:14:20 +0100
commit8d62bbd46aa178abc6e029b0ba79d915f7f988c2 (patch)
tree80b86e266347cccc1d99f9c1c362037a06c7e94b /stmhal/pyexec.h
parent3e42570538b46d680e796136ff441ae7b8a8fac5 (diff)
Add pyb.hard_reset, and make sys.exit() or raise SystemExit do a soft reset.
Diffstat (limited to 'stmhal/pyexec.h')
-rw-r--r--stmhal/pyexec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/pyexec.h b/stmhal/pyexec.h
index ce9fe5cbc..dec241dee 100644
--- a/stmhal/pyexec.h
+++ b/stmhal/pyexec.h
@@ -31,6 +31,8 @@ typedef enum {
extern pyexec_mode_kind_t pyexec_mode_kind;
+#define PYEXEC_FORCED_EXIT (0x100)
+
int pyexec_raw_repl(void);
int pyexec_friendly_repl(void);
bool pyexec_file(const char *filename);