From e0d906d2502ae8377413a6eeca425728ae88f89e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 27 Jan 2005 19:17:08 +0000 Subject: Made almost the entire file dependent on SH7034. This probably needs attention. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5681 a1c6a512-1295-4272-9138-f99709370657 --- firmware/debug.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware/debug.c') 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 @@ * KIND, either express or implied. * ****************************************************************************/ -#include "sh7034.h" + #include #include #include #include "config.h" +#include "cpu.h" #ifdef DEBUG static char debugmembuf[100]; @@ -46,6 +47,7 @@ void debug_init(void) } #ifdef DEBUG +#if CONFIG_CPU == SH7034 /* these are still very SH-oriented */ static int debug_tx_ready(void) { return (SSR1 & SCI_TDRE); @@ -195,6 +197,7 @@ static void debug(const char *msg) mem2hex(msg, &debugbuf[1], strlen(msg)); putpacket(debugbuf); } +#endif /* SH7034 */ #endif /* end of DEBUG section */ #ifdef __GNUC__ -- cgit v1.2.3