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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index a7f0a3578f..979a14d0c9 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -908,6 +908,16 @@ Lyre prototype 1 */
908#define INITDATA_ATTR 908#define INITDATA_ATTR
909#endif 909#endif
910 910
911/* We need to call storage_init more than once only if USB storage mode is
912 * handled in hardware:
913 * Deinit storage -> let hardware handle USB mode -> storage_init() again
914 */
915#if defined(HAVE_USBSTACK) || defined(USB_NONE)
916#define STORAGE_INIT_ATTR INIT_ATTR
917#else
918#define STORAGE_INIT_ATTR
919#endif
920
911#if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) 921#if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__)
912#define DATA_ATTR __attribute__ ((section("__DATA, .data"))) 922#define DATA_ATTR __attribute__ ((section("__DATA, .data")))
913#else 923#else