From 7a8c615de3444e6341ccbdf9f6ef545802707184 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 23 May 2009 15:19:11 +0000 Subject: swap bootloader and non-bootloader cases around to avoid an ugly #ifndef git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21058 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/firmware/export/config.h b/firmware/export/config.h index 5366e41752..163b59cd03 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -772,18 +772,7 @@ Lyre prototype 1*/ #endif /* CONFIG_USBOTG */ /* define the class drivers to enable */ -#ifndef BOOTLOADER - -//#define USB_ENABLE_SERIAL -#define USB_ENABLE_STORAGE - -#ifdef USB_HAS_INTERRUPT -#define USB_ENABLE_HID -#else -#define USB_ENABLE_CHARGING_ONLY -#endif - -#else /* BOOTLOADER */ +#ifdef BOOTLOADER /* enable usb storage for targets that do bootloader usb */ #if (defined(TOSHIBA_GIGABEAT_S) || \ @@ -793,6 +782,16 @@ Lyre prototype 1*/ #define USB_ENABLE_STORAGE #endif +#else /* BOOTLOADER */ + +//#define USB_ENABLE_SERIAL + +#ifdef USB_HAS_INTERRUPT +#define USB_ENABLE_HID +#else +#define USB_ENABLE_CHARGING_ONLY +#endif + #endif /* BOOTLOADER */ #endif /* HAVE_USBSTACK */ -- cgit v1.2.3