forked from len0rd/rockbox
Centralised the ICODE_ATTR and IDATA_ATTR #defines. Renamed some musepack and rockboy headers to avoid clashes with rockbox headers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6991 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d50ed1248d
commit
d2456b44f7
24 changed files with 47 additions and 82 deletions
|
|
@ -21,15 +21,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
|
||||
#define ICODE_ATTR __attribute__ ((section(".icode")))
|
||||
#define IDATA_ATTR __attribute__ ((section(".idata")))
|
||||
#define USE_IRAM 1
|
||||
#else
|
||||
#define ICODE_ATTR
|
||||
#define IDATA_ATTR
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
/* Get these functions 'out of the way' of the standard functions. Not doing
|
||||
|
|
|
|||
|
|
@ -22,15 +22,6 @@
|
|||
|
||||
/* Various codec "helper functions" */
|
||||
|
||||
#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
|
||||
#define ICODE_ATTR __attribute__ ((section(".icode")))
|
||||
#define IDATA_ATTR __attribute__ ((section(".idata")))
|
||||
#define USE_IRAM 1
|
||||
#else
|
||||
#define ICODE_ATTR
|
||||
#define IDATA_ATTR
|
||||
#endif
|
||||
|
||||
extern int mem_ptr;
|
||||
extern int bufsize;
|
||||
extern unsigned char* mallocbuf; // 512K from the start of MP3 buffer
|
||||
|
|
|
|||
|
|
@ -19,14 +19,7 @@
|
|||
|
||||
/* Various "helper functions" common to all the xxx2wav decoder plugins */
|
||||
|
||||
#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
|
||||
#define ICODE_ATTR __attribute__ ((section(".icode")))
|
||||
#define IDATA_ATTR __attribute__ ((section(".idata")))
|
||||
#define USE_IRAM 1
|
||||
#else
|
||||
#define ICODE_ATTR
|
||||
#define IDATA_ATTR
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
/* the main data structure of the program */
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
|
||||
INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
|
||||
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers
|
||||
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
|
||||
|
||||
ifdef APPEXTRA
|
||||
INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue