summaryrefslogtreecommitdiff
path: root/firmware/debug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-01-27 19:17:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-01-27 19:17:08 +0000
commite0d906d2502ae8377413a6eeca425728ae88f89e (patch)
treec3766a59fa9c61a7e3c3bcd53de4327b40ec2dd1 /firmware/debug.c
parent557fc20f3a2e04097a3e298d3042d6b6ec149461 (diff)
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
Diffstat (limited to 'firmware/debug.c')
-rw-r--r--firmware/debug.c5
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 @@
* KIND, either express or implied.
*
****************************************************************************/
-#include "sh7034.h"
+
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#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__