X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=contrib%2Flibdcc%2Fdcc_stdio.c;h=a25e7dd169bc5aa4f3b5443a3d372f3cf2f9023c;hp=1a7eef40f6be818a0163b10b6179d8d0b812abf5;hb=0c160046d7538eceaf31559de4f3b13d62d666ab;hpb=23aa223ec417646e4389e990c3168e113e90f3d0 diff --git a/contrib/libdcc/dcc_stdio.c b/contrib/libdcc/dcc_stdio.c index 1a7eef40f6..a25e7dd169 100644 --- a/contrib/libdcc/dcc_stdio.c +++ b/contrib/libdcc/dcc_stdio.c @@ -24,6 +24,11 @@ #include "dcc_stdio.h" +#define TARGET_REQ_TRACEMSG 0x00 +#define TARGET_REQ_DEBUGMSG_ASCII 0x01 +#define TARGET_REQ_DEBUGMSG_HEXMSG(size) (0x01 | ((size & 0xff) << 8)) +#define TARGET_REQ_DEBUGCHAR 0x02 + #if defined(__ARM_ARCH_7M__) /* we use the cortex_m3 DCRDR reg to simulate a arm7_9 dcc channel @@ -34,11 +39,6 @@ #define NVIC_DBG_DATA_R (*((volatile unsigned short *)0xE000EDF8)) -#define TARGET_REQ_TRACEMSG 0x00 -#define TARGET_REQ_DEBUGMSG_ASCII 0x01 -#define TARGET_REQ_DEBUGMSG_HEXMSG(size) (0x01 | ((size & 0xff) << 8)) -#define TARGET_REQ_DEBUGCHAR 0x02 - #define BUSY 1 void dbg_write(unsigned long dcc_data) @@ -56,7 +56,7 @@ void dbg_write(unsigned long dcc_data) } } -#elif defined(__ARM_ARCH_4T__) || defined(__ARM_ARCH_5TE__) +#elif defined(__ARM_ARCH_4T__) || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5T__) void dbg_write(unsigned long dcc_data) {