summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/debug-dm320.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-03-24 16:40:31 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-03-24 16:40:31 +0000
commit2670e3f0387882dbc70346d0449939a9c5726d0c (patch)
tree1638ccada3010fecab5731bb034f003a13c0696d /firmware/target/arm/tms320dm320/debug-dm320.c
parenta5501d68ccbb2f9690cb8d6a83b17b4bb204aa6c (diff)
downloadrockbox-2670e3f0387882dbc70346d0449939a9c5726d0c.tar.gz
rockbox-2670e3f0387882dbc70346d0449939a9c5726d0c.zip
More M:Robe 500 work: PCM stopping and pausing roughly works, added some keymaps for the WPS screen, and peakmeter now works properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20511 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/debug-dm320.c')
-rwxr-xr-xfirmware/target/arm/tms320dm320/debug-dm320.c13
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
44static signed short *the_rover = (signed short *)0x1900000; 46static 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
65bool __dbg_ports(void) 68bool __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}