diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/debug-dm320.c')
-rwxr-xr-x | firmware/target/arm/tms320dm320/debug-dm320.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/firmware/target/arm/tms320dm320/debug-dm320.c b/firmware/target/arm/tms320dm320/debug-dm320.c index c09990b1ed..5dfe9bbae7 100755 --- a/firmware/target/arm/tms320dm320/debug-dm320.c +++ b/firmware/target/arm/tms320dm320/debug-dm320.c | |||
@@ -29,16 +29,18 @@ | |||
29 | #include "debug.h" | 29 | #include "debug.h" |
30 | #include "sprintf.h" | 30 | #include "sprintf.h" |
31 | #include "font.h" | 31 | #include "font.h" |
32 | #include "pcm.h" | ||
33 | #include "debug-target.h" | ||
34 | #include "lcd-target.h" | 32 | #include "lcd-target.h" |
35 | #include "dsp-target.h" | ||
36 | #include "dsp/ipc.h" | ||
37 | 33 | ||
38 | #ifndef CREATIVE_ZVx | 34 | #ifndef CREATIVE_ZVx |
39 | #include "tsc2100.h" | 35 | #include "tsc2100.h" |
40 | #endif | 36 | #endif |
41 | 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" | ||
42 | #define ARM_BUFFER_SIZE (PCM_SIZE) | 44 | #define ARM_BUFFER_SIZE (PCM_SIZE) |
43 | 45 | ||
44 | static signed short *the_rover = (signed short *)0x1900000; | 46 | static signed short *the_rover = (signed short *)0x1900000; |
@@ -61,9 +63,11 @@ void pcmtest_get_more(unsigned char** start, size_t* size) | |||
61 | DEBUGF("pcm_sdram at 0x%08lx, sdem_addr 0x%08lx", | 63 | DEBUGF("pcm_sdram at 0x%08lx, sdem_addr 0x%08lx", |
62 | (unsigned long)the_rover, (unsigned long)sdem_addr); | 64 | (unsigned long)the_rover, (unsigned long)sdem_addr); |
63 | } | 65 | } |
66 | #endif | ||
64 | 67 | ||
65 | bool __dbg_ports(void) | 68 | bool __dbg_ports(void) |
66 | { | 69 | { |
70 | #if defined(PCM_TEST) | ||
67 | int fd; | 71 | int fd; |
68 | int bytes; | 72 | int bytes; |
69 | 73 | ||
@@ -74,6 +78,7 @@ bool __dbg_ports(void) | |||
74 | DEBUGF("read %d rover bytes", bytes); | 78 | DEBUGF("read %d rover bytes", bytes); |
75 | 79 | ||
76 | pcm_play_data(&pcmtest_get_more,(unsigned char*)the_rover, ARM_BUFFER_SIZE); | 80 | pcm_play_data(&pcmtest_get_more,(unsigned char*)the_rover, ARM_BUFFER_SIZE); |
81 | #endif | ||
77 | 82 | ||
78 | return false; | 83 | return false; |
79 | } | 84 | } |