diff options
Diffstat (limited to 'firmware/debug.c')
-rw-r--r-- | firmware/debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/debug.c b/firmware/debug.c index 38823107e3..5cc032b1b3 100644 --- a/firmware/debug.c +++ b/firmware/debug.c | |||
@@ -16,11 +16,12 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #include "sh7034.h" | 19 | |
20 | #include <string.h> | 20 | #include <string.h> |
21 | #include <stdio.h> | 21 | #include <stdio.h> |
22 | #include <stdarg.h> | 22 | #include <stdarg.h> |
23 | #include "config.h" | 23 | #include "config.h" |
24 | #include "cpu.h" | ||
24 | 25 | ||
25 | #ifdef DEBUG | 26 | #ifdef DEBUG |
26 | static char debugmembuf[100]; | 27 | static char debugmembuf[100]; |
@@ -46,6 +47,7 @@ void debug_init(void) | |||
46 | } | 47 | } |
47 | 48 | ||
48 | #ifdef DEBUG | 49 | #ifdef DEBUG |
50 | #if CONFIG_CPU == SH7034 /* these are still very SH-oriented */ | ||
49 | static int debug_tx_ready(void) | 51 | static int debug_tx_ready(void) |
50 | { | 52 | { |
51 | return (SSR1 & SCI_TDRE); | 53 | return (SSR1 & SCI_TDRE); |
@@ -195,6 +197,7 @@ static void debug(const char *msg) | |||
195 | mem2hex(msg, &debugbuf[1], strlen(msg)); | 197 | mem2hex(msg, &debugbuf[1], strlen(msg)); |
196 | putpacket(debugbuf); | 198 | putpacket(debugbuf); |
197 | } | 199 | } |
200 | #endif /* SH7034 */ | ||
198 | #endif /* end of DEBUG section */ | 201 | #endif /* end of DEBUG section */ |
199 | 202 | ||
200 | #ifdef __GNUC__ | 203 | #ifdef __GNUC__ |