summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h36
1 files changed, 31 insertions, 5 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 406ef509c8..092e02f458 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -539,11 +539,6 @@ Lyre prototype 1*/
539#define CONFIG_TUNER_MULTI 539#define CONFIG_TUNER_MULTI
540#endif 540#endif
541 541
542#if (CONFIG_STORAGE & (CONFIG_STORAGE - 1)) != 0
543/* Multiple storage drivers */
544#define CONFIG_STORAGE_MULTI
545#endif
546
547/* deactivate fading in bootloader/sim */ 542/* deactivate fading in bootloader/sim */
548#if defined(BOOTLOADER) || defined(SIMULATOR) 543#if defined(BOOTLOADER) || defined(SIMULATOR)
549#undef CONFIG_BACKLIGHT_FADING 544#undef CONFIG_BACKLIGHT_FADING
@@ -571,6 +566,37 @@ Lyre prototype 1*/
571 566
572#endif /* CONFIG_BACKLIGHT_FADING */ 567#endif /* CONFIG_BACKLIGHT_FADING */
573 568
569/* Storage related config handling */
570
571#if (CONFIG_STORAGE & (CONFIG_STORAGE - 1)) != 0
572/* Multiple storage drivers */
573#define CONFIG_STORAGE_MULTI
574#endif
575
576/* Explicit HAVE_MULTIVOLUME in the config file. Allow the maximum number */
577#ifdef HAVE_MULTIVOLUME
578#define NUM_VOLUMES_PER_DRIVE 4
579#else
580#define NUM_VOLUMES_PER_DRIVE 1
581#endif
582#if defined(CONFIG_STORAGE_MULTI) && !defined(HAVE_MULTIDRIVE)
583#define HAVE_MULTIDRIVE
584#endif
585
586#if defined(HAVE_MULTIDRIVE) && !defined(HAVE_MULTIVOLUME)
587#define HAVE_MULTIVOLUME
588#endif
589
590#if defined(HAVE_MULTIDRIVE) && !defined(NUM_DRIVES)
591#error HAVE_MULTIDRIVE needs to have an explicit NUM_DRIVES
592#endif
593
594#ifndef NUM_DRIVES
595#define NUM_DRIVES 1
596#endif
597
598#define NUM_VOLUMES (NUM_DRIVES * NUM_VOLUMES_PER_DRIVE)
599
574#if defined(BOOTLOADER) && defined(HAVE_ADJUSTABLE_CPU_FREQ) 600#if defined(BOOTLOADER) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
575/* Bootloaders don't use CPU frequency adjustment */ 601/* Bootloaders don't use CPU frequency adjustment */
576#undef HAVE_ADJUSTABLE_CPU_FREQ 602#undef HAVE_ADJUSTABLE_CPU_FREQ