aboutsummaryrefslogtreecommitdiff
path: root/src/target/semihosting_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/semihosting_common.h')
-rw-r--r--src/target/semihosting_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/semihosting_common.h b/src/target/semihosting_common.h
index 1b71690..9fe76ba 100644
--- a/src/target/semihosting_common.h
+++ b/src/target/semihosting_common.h
@@ -103,6 +103,13 @@ enum semihosting_redirect_config {
SEMIHOSTING_REDIRECT_CFG_ALL,
};
+enum semihosting_result {
+ SEMIHOSTING_NONE, /* Not halted for a semihosting call. */
+ SEMIHOSTING_HANDLED, /* Call handled, and target was resumed. */
+ SEMIHOSTING_WAITING, /* Call handled, target is halted waiting until we can resume. */
+ SEMIHOSTING_ERROR /* Something went wrong. */
+};
+
struct target;
/*