aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGareth McMullin2013-04-14 19:47:11 -0700
committerGareth McMullin2013-05-18 15:33:58 +1200
commit5020d1f05db920cd0633982016c0b1978a310d20 (patch)
tree0de2e1b9ac2864f42d9440894f921cb9eeae16cb /src/include
parentaca421d0bbd021c4b0e320195692d9760d9ecdcd (diff)
Move semihosting support to cortexm.c.
Try to implement more syscalls.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/target.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/target.h b/src/include/target.h
index cd3079c..b83a2e9 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -116,6 +116,10 @@ target *target_attach(target *t, target_destroy_callback destroy_cb);
#define target_flash_write(target, dest, src, len) \
(target)->flash_write((target), (dest), (src), (len))
+/* Host I/O */
+#define target_hostio_reply(target, recode, errcode) \
+ (target)->hostio_reply((target), (retcode), (errcode))
+
struct target_s {
/* Notify controlling debugger if target is lost */
@@ -171,6 +175,9 @@ struct target_s {
int (*flash_write)(struct target_s *target, uint32_t dest,
const uint8_t *src, int len);
+ /* Host I/O support */
+ void (*hostio_reply)(target *t, int32_t retcode, uint32_t errcode);
+
const char *driver;
struct target_command_s *commands;