diff options
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/target_request.c | 10 | ||||
-rw-r--r-- | src/target/target_request.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/target/target_request.c b/src/target/target_request.c index e23a0f7d..020ee790 100644 --- a/src/target/target_request.c +++ b/src/target/target_request.c @@ -53,6 +53,13 @@ int target_asciimsg(target_t *target, u32 length) return ERROR_OK; } +int target_charmsg(target_t *target, u8 msg) +{ + USER_SAMELINE("%c", msg); + + return ERROR_OK; +} + int target_hexmsg(target_t *target, int size, u32 length) { u8 *data = malloc(CEIL(length * size, 4) * 4); @@ -122,6 +129,9 @@ int target_request(target_t *target, u32 request) target_hexmsg(target, (request & 0xff00) >> 8, (request & 0xffff0000) >> 16); } break; + case TARGET_REQ_DEBUGCHAR: + target_charmsg(target, (request & 0x00ff0000) >> 16); + break; /* case TARGET_REQ_SEMIHOSTING: * break; */ diff --git a/src/target/target_request.h b/src/target/target_request.h index 6aacaed7..0547c1d3 100644 --- a/src/target/target_request.h +++ b/src/target/target_request.h @@ -26,6 +26,7 @@ typedef enum target_req_cmd { TARGET_REQ_TRACEMSG, TARGET_REQ_DEBUGMSG, + TARGET_REQ_DEBUGCHAR, /* TARGET_REQ_SEMIHOSTING, */ } target_req_cmd_t; |