diff options
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/config.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 61c9899..7de52c6 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -112,4 +112,16 @@ #define CODEC_SIZE 0 #endif +/* IRAM usage */ +#if !defined(SIMULATOR) && /* Not for simulators */ \ + (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ + (CONFIG_CPU == MCF5249)) /* Coldfire: core, plugins, codecs */ +#define ICODE_ATTR __attribute__ ((section(".icode"))) +#define IDATA_ATTR __attribute__ ((section(".idata"))) +#define USE_IRAM +#else +#define ICODE_ATTR +#define IDATA_ATTR +#endif + #endif |