1
0
Fork 0
forked from len0rd/rockbox

Added header file for bitswap, and made the fliptable global for re-use

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5120 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-09-26 09:25:59 +00:00
parent 7a031eb4d3
commit 4341211ddc
5 changed files with 29 additions and 3 deletions

View file

@ -67,7 +67,7 @@
static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE];
#else #else
extern unsigned char pluginbuf[]; extern unsigned char pluginbuf[];
extern void bitswap(unsigned char *data, int length); #include "bitswap.h"
#endif #endif
static bool plugin_loaded = false; static bool plugin_loaded = false;

View file

@ -32,7 +32,7 @@
#include "lang.h" #include "lang.h"
#include "talk.h" #include "talk.h"
#include "id3.h" #include "id3.h"
extern void bitswap(unsigned char *data, int length); /* no header for this */ #include "bitswap.h"
/***************** Constants *****************/ /***************** Constants *****************/

View file

@ -109,6 +109,7 @@ _bitswap:
nop nop
.align 2 .align 2
.global _fliptable
.byte 0x01, 0x81, 0x41, 0xc1, 0x21, 0xa1, 0x61, 0xe1 .byte 0x01, 0x81, 0x41, 0xc1, 0x21, 0xa1, 0x61, 0xe1
.byte 0x11, 0x91, 0x51, 0xd1, 0x31, 0xb1, 0x71, 0xf1 .byte 0x11, 0x91, 0x51, 0xd1, 0x31, 0xb1, 0x71, 0xf1

25
firmware/export/bitswap.h Normal file
View file

@ -0,0 +1,25 @@
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2004 by Jens Arnold
*
* All files in this archive are subject to the GNU General Public License.
* See the file COPYING in the source tree root for full license agreement.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef _BITSWAP_H_
#define _BITSWAP_H_
extern void bitswap(unsigned char *data, int length);
extern const unsigned char fliptable[]; /* index is signed char! */
#endif

View file

@ -42,7 +42,7 @@
#include "mpegplay.h" #include "mpegplay.h"
#endif /* #ifndef SIMULATOR */ #endif /* #ifndef SIMULATOR */
extern void bitswap(unsigned char *data, int length); #include "bitswap.h"
#ifdef HAVE_MAS3587F #ifdef HAVE_MAS3587F
static void init_recording(void); static void init_recording(void);