From 5020d1f05db920cd0633982016c0b1978a310d20 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Sun, 14 Apr 2013 19:47:11 -0700 Subject: Move semihosting support to cortexm.c. Try to implement more syscalls. --- src/include/target.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include') 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; -- cgit v1.2.3