summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/debug-dm320.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tms320dm320/debug-dm320.c')
-rwxr-xr-xfirmware/target/arm/tms320dm320/debug-dm320.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/firmware/target/arm/tms320dm320/debug-dm320.c b/firmware/target/arm/tms320dm320/debug-dm320.c
index 5dfe9bbae7..53acd3f655 100755
--- a/firmware/target/arm/tms320dm320/debug-dm320.c
+++ b/firmware/target/arm/tms320dm320/debug-dm320.c
@@ -35,58 +35,11 @@
35#include "tsc2100.h" 35#include "tsc2100.h"
36#endif 36#endif
37 37
38#if defined(PCM_TEST)
39/* Leaving this in for potential debugging for other targets */
40#include "pcm.h"
41#include "debug-target.h"
42#include "dsp-target.h"
43#include "dsp/ipc.h"
44#define ARM_BUFFER_SIZE (PCM_SIZE)
45
46static signed short *the_rover = (signed short *)0x1900000;
47static unsigned int index_rover = 0;
48
49void pcmtest_get_more(unsigned char** start, size_t* size)
50{
51 unsigned long sdem_addr;
52 sdem_addr = (unsigned long)the_rover + index_rover;
53
54 *start = (unsigned char*)(sdem_addr);
55 *size = ARM_BUFFER_SIZE;
56
57 index_rover += ARM_BUFFER_SIZE;
58 if (index_rover >= 4*1024*1024)
59 {
60 index_rover = 0;
61 }
62
63 DEBUGF("pcm_sdram at 0x%08lx, sdem_addr 0x%08lx",
64 (unsigned long)the_rover, (unsigned long)sdem_addr);
65}
66#endif
67
68bool __dbg_ports(void) 38bool __dbg_ports(void)
69{ 39{
70#if defined(PCM_TEST)
71 int fd;
72 int bytes;
73
74 fd = open("/test.raw", O_RDONLY);
75 bytes = read(fd, the_rover, 4*1024*1024);
76 close(fd);
77
78 DEBUGF("read %d rover bytes", bytes);
79
80 pcm_play_data(&pcmtest_get_more,(unsigned char*)the_rover, ARM_BUFFER_SIZE);
81#endif
82
83 return false; 40 return false;
84} 41}
85 42
86#ifndef CREATIVE_ZVx
87extern char r_buffer[5];
88extern int r_button;
89#endif
90bool __dbg_hw_info(void) 43bool __dbg_hw_info(void)
91{ 44{
92 int line = 0, oldline; 45 int line = 0, oldline;
@@ -171,11 +124,6 @@ bool __dbg_hw_info(void)
171 address+=0x800; 124 address+=0x800;
172 else if (button==BUTTON_RC_REW) 125 else if (button==BUTTON_RC_REW)
173 address-=0x800; 126 address-=0x800;
174
175 snprintf(buf, sizeof(buf), "Buffer: 0x%02x%02x%02x%02x%02x",
176 r_buffer[0], r_buffer[1], r_buffer[2], r_buffer[3],r_buffer[4] ); lcd_puts(0, line++, buf);
177 snprintf(buf, sizeof(buf), "Button: 0x%08x, HWread: 0x%08x",
178 (unsigned int)button, r_button); lcd_puts(0, line++, buf);
179#else 127#else
180 button = button_get(false); 128 button = button_get(false);
181 if(button & BUTTON_POWER) 129 if(button & BUTTON_POWER)