diff options
Diffstat (limited to 'apps/codecs/libmusepack/musepack.h')
-rw-r--r-- | apps/codecs/libmusepack/musepack.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/codecs/libmusepack/musepack.h b/apps/codecs/libmusepack/musepack.h index 8233f21f91..5d1ad0de3f 100644 --- a/apps/codecs/libmusepack/musepack.h +++ b/apps/codecs/libmusepack/musepack.h @@ -56,6 +56,16 @@ extern "C" { #define IBSS_ATTR_MPC_SAMPLE_BUF IBSS_ATTR #endif +#ifndef IBSS_ATTR_MPC_LARGE_IRAM +#if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || (CONFIG_CPU == MCF5250) +/* PP5022/24 and MCF5250 have 128KB of IRAM */ +#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR +#else +/* other PP's and MCF5249 have 96KB of IRAM */ +#define IBSS_ATTR_MPC_LARGE_IRAM +#endif +#endif + #ifdef ROCKBOX_LITTLE_ENDIAN #define MPC_LITTLE_ENDIAN #endif |