Enable USING_STORAGE_CALLBACK on hosted targets. Fixes config.cfg not written properly.

Change-Id: I3c87b41baae284b818be5c272d984d937ae0e350
This commit is contained in:
Thomas Martitz 2012-05-13 18:56:38 +02:00
parent 36d7f64555
commit 6b8330d216

View file

@ -43,10 +43,10 @@ enum {
DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1),
};
#define USING_STORAGE_CALLBACK (CONFIG_PLATFORM & PLATFORM_NATIVE) \
&& ! ((CONFIG_STORAGE & STORAGE_NAND) \
&& (CONFIG_NAND == NAND_IFP7XX)) \
&& !defined(BOOTLOADER)
#define USING_STORAGE_CALLBACK ((CONFIG_STORAGE & STORAGE_NAND) \
&& (CONFIG_NAND == NAND_IFP7XX)) \
&& !defined(BOOTLOADER) || \
(CONFIG_PLATFORM & PLATFORM_HOSTED)
extern void register_storage_idle_func(void (*function)(void *data));
#if USING_STORAGE_CALLBACK