diff --git a/firmware/export/config.h b/firmware/export/config.h index 74be1f9711..26ed7395ff 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -601,6 +601,15 @@ Lyre prototype 1 */ //#error "unknown hwardware platform!" #endif +#ifndef CONFIG_CPU +#define CONFIG_CPU 0 +#endif + +// NOTE: should be placed before sim.h (where CONFIG_CPU is undefined) +#if !(CONFIG_CPU >= PP5002 && CONFIG_CPU <= PP5022) && CODEC_SIZE >= 0x80000 +#define CODEC_AAC_SBR_DEC +#endif + #ifdef __PCTOOL__ #undef CONFIG_CPU #define CONFIG_CPU 0 @@ -681,10 +690,6 @@ Lyre prototype 1 */ /* now set any CONFIG_ defines correctly if they are not used, No need to do this on CONFIG_'s which are compulsory (e.g CONFIG_CODEC ) */ -#if !(CONFIG_CPU >= PP5002 && CONFIG_CPU <= PP5022) && CODEC_SIZE >= 0x80000 -#define CODEC_AAC_SBR_DEC -#endif - #if !defined(CONFIG_BACKLIGHT_FADING) #define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING #endif