diff options
Diffstat (limited to 'fw/semihosting.c')
-rw-r--r-- | fw/semihosting.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fw/semihosting.c b/fw/semihosting.c deleted file mode 100644 index 96ebc7a..0000000 --- a/fw/semihosting.c +++ /dev/null @@ -1,10 +0,0 @@ - -#define SYS_WRITE0 0x04 - -void write0(const char *c) __attribute__((naked)); -void write0(const char *c) { - __asm__("mov r1, %0" : : "r" (c)); - __asm__("mov r0, %0" : : "I" (SYS_WRITE0)); - __asm__("bkpt 0xab"); - __asm__("bx lr"); -} |