diff options
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/talk.c | 2 | ||||
-rw-r--r-- | firmware/bitswap.S | 1 | ||||
-rw-r--r-- | firmware/export/bitswap.h | 25 | ||||
-rw-r--r-- | firmware/mpeg.c | 2 |
5 files changed, 29 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 6892cb957f..9a7a397bea 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -67,7 +67,7 @@ | |||
67 | static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; | 67 | static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; |
68 | #else | 68 | #else |
69 | extern unsigned char pluginbuf[]; | 69 | extern unsigned char pluginbuf[]; |
70 | extern void bitswap(unsigned char *data, int length); | 70 | #include "bitswap.h" |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | static bool plugin_loaded = false; | 73 | static bool plugin_loaded = false; |
diff --git a/apps/talk.c b/apps/talk.c index 941af1dfd9..c0fe599b60 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include "lang.h" | 32 | #include "lang.h" |
33 | #include "talk.h" | 33 | #include "talk.h" |
34 | #include "id3.h" | 34 | #include "id3.h" |
35 | extern void bitswap(unsigned char *data, int length); /* no header for this */ | 35 | #include "bitswap.h" |
36 | 36 | ||
37 | /***************** Constants *****************/ | 37 | /***************** Constants *****************/ |
38 | 38 | ||
diff --git a/firmware/bitswap.S b/firmware/bitswap.S index 25d7a99ad2..08e609b9e5 100644 --- a/firmware/bitswap.S +++ b/firmware/bitswap.S | |||
@@ -109,6 +109,7 @@ _bitswap: | |||
109 | nop | 109 | nop |
110 | 110 | ||
111 | .align 2 | 111 | .align 2 |
112 | .global _fliptable | ||
112 | 113 | ||
113 | .byte 0x01, 0x81, 0x41, 0xc1, 0x21, 0xa1, 0x61, 0xe1 | 114 | .byte 0x01, 0x81, 0x41, 0xc1, 0x21, 0xa1, 0x61, 0xe1 |
114 | .byte 0x11, 0x91, 0x51, 0xd1, 0x31, 0xb1, 0x71, 0xf1 | 115 | .byte 0x11, 0x91, 0x51, 0xd1, 0x31, 0xb1, 0x71, 0xf1 |
diff --git a/firmware/export/bitswap.h b/firmware/export/bitswap.h new file mode 100644 index 0000000000..92b37c33e1 --- /dev/null +++ b/firmware/export/bitswap.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2004 by Jens Arnold | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #ifndef _BITSWAP_H_ | ||
20 | #define _BITSWAP_H_ | ||
21 | |||
22 | extern void bitswap(unsigned char *data, int length); | ||
23 | extern const unsigned char fliptable[]; /* index is signed char! */ | ||
24 | |||
25 | #endif | ||
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index a958d56939..e6d59176f7 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include "mpegplay.h" | 42 | #include "mpegplay.h" |
43 | #endif /* #ifndef SIMULATOR */ | 43 | #endif /* #ifndef SIMULATOR */ |
44 | 44 | ||
45 | extern void bitswap(unsigned char *data, int length); | 45 | #include "bitswap.h" |
46 | 46 | ||
47 | #ifdef HAVE_MAS3587F | 47 | #ifdef HAVE_MAS3587F |
48 | static void init_recording(void); | 48 | static void init_recording(void); |