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)
downloadrockbox-e0d906d2502ae8377413a6eeca425728ae88f89e.tar.gz
rockbox-e0d906d2502ae8377413a6eeca425728ae88f89e.zip
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 @@
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
26static char debugmembuf[100]; 27static 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 */
49static int debug_tx_ready(void) 51static 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__