diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/dsp/main.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/dsp/main.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/firmware/target/arm/tms320dm320/dsp/main.c b/firmware/target/arm/tms320dm320/dsp/main.c index 8c36e6a88b..a62bb50ba2 100644 --- a/firmware/target/arm/tms320dm320/dsp/main.c +++ b/firmware/target/arm/tms320dm320/dsp/main.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "ipc.h" | 24 | #include "ipc.h" |
25 | #include "dma.h" | 25 | #include "dma.h" |
26 | #include "audio.h" | 26 | #include "audio.h" |
27 | #include <math.h> | ||
28 | 27 | ||
29 | void main(void) { | 28 | void main(void) { |
30 | TCR = 1 << 4; /* Stop the timer. */ | 29 | TCR = 1 << 4; /* Stop the timer. */ |
@@ -36,7 +35,9 @@ void main(void) { | |||
36 | 35 | ||
37 | dma_init(); | 36 | dma_init(); |
38 | 37 | ||
38 | #if defined(HAVE_DEBUG) | ||
39 | debugf("DSP inited..."); | 39 | debugf("DSP inited..."); |
40 | #endif | ||
40 | 41 | ||
41 | for (;;) { | 42 | for (;;) { |
42 | asm(" IDLE 1"); | 43 | asm(" IDLE 1"); |
@@ -45,13 +46,6 @@ void main(void) { | |||
45 | } | 46 | } |
46 | 47 | ||
47 | /* Obsoleted/testing snippets: */ | 48 | /* Obsoleted/testing snippets: */ |
48 | #ifdef REMAP_VECTORS | ||
49 | /* Remap vectors to 0x3F80 (set in linker.cmd). */ | ||
50 | PMST = (PMST & 0x7f) | 0x3F80; | ||
51 | |||
52 | /* Make sure working interrupts aren't a fluke. */ | ||
53 | memset((unsigned short *)0x7f80, 0, 0x80); | ||
54 | #endif | ||
55 | 49 | ||
56 | #ifdef DATA_32_SINE | 50 | #ifdef DATA_32_SINE |
57 | for (i = 0; i < 32; i++) { | 51 | for (i = 0; i < 32; i++) { |