diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2009-02-21 17:56:31 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2009-02-21 17:56:31 +0000 |
| commit | 9698c3bb5c99176f9e854d1e701423ba44b9f2b4 (patch) | |
| tree | b4217f5f03e03133b498c8b3b8abbacc7060d4cf | |
| parent | 3e7715d2f52797aa5e3aedba3543cb29feb8b776 (diff) | |
| download | rockbox-9698c3bb5c99176f9e854d1e701423ba44b9f2b4.zip rockbox-9698c3bb5c99176f9e854d1e701423ba44b9f2b4.tar.gz rockbox-9698c3bb5c99176f9e854d1e701423ba44b9f2b4.tar.bz2 rockbox-9698c3bb5c99176f9e854d1e701423ba44b9f2b4.tar.xz | |
replace USB_IPODSTYLE by USB_HANDLED_BY_OF as that's what it actually means. Fix various configs to use it correctly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20078 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/misc.c | 8 | ||||
| -rw-r--r-- | apps/misc.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-c200.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-c200v2.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-clip.h | 3 | ||||
| -rw-r--r-- | firmware/export/config-e200.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-e200v2.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-fuze.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-h10.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-h10_5gb.h | 2 | ||||
| -rwxr-xr-x | firmware/export/config-hdd1630.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-ipod1g2g.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-ipod3g.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-ipod4g.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-ipodcolor.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-ipodmini.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-ipodmini2g.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-ipodnano.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-ipodvideo.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-mrobe100.h | 2 | ||||
| -rwxr-xr-x | firmware/export/config-sa9200.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-tpj1022.h | 2 |
22 files changed, 13 insertions, 38 deletions
diff --git a/apps/misc.c b/apps/misc.c index 872d915..7bf9ac0 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -85,7 +85,7 @@ #include "playback.h" #ifdef BOOTFILE -#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) +#if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF) #include "rolo.h" #include "yesno.h" #endif @@ -569,13 +569,13 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame { system_flush(); #ifdef BOOTFILE -#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) +#if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF) check_bootfile(false); /* gets initial size */ #endif #endif usb_screen(); #ifdef BOOTFILE -#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) +#if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF) check_bootfile(true); #endif #endif @@ -691,7 +691,7 @@ int get_replaygain_mode(bool have_track_gain, bool have_album_gain) #endif #ifdef BOOTFILE -#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) +#if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF) /* memorize/compare details about the BOOTFILE we don't use dircache because it may not be up to date after diff --git a/apps/misc.h b/apps/misc.h index 998ee9e..1ac63da 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -73,7 +73,7 @@ int get_replaygain_mode(bool have_track_gain, bool have_album_gain); int open_utf8(const char* pathname, int flags); #ifdef BOOTFILE -#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) +#if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF) void check_bootfile(bool do_rolo); #endif #endif diff --git a/firmware/export/config-c200.h b/firmware/export/config-c200.h index cd9f586..111bc8a 100644 --- a/firmware/export/config-c200.h +++ b/firmware/export/config-c200.h @@ -170,8 +170,6 @@ #define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_DATA 0x8 -/* #define USB_IPODSTYLE */ - #ifndef BOOTLOADER #define HAVE_MULTIVOLUME #define HAVE_HOTSWAP diff --git a/firmware/export/config-c200v2.h b/firmware/export/config-c200v2.h index f6a3866..5f8480c 100644 --- a/firmware/export/config-c200v2.h +++ b/firmware/export/config-c200v2.h @@ -160,7 +160,7 @@ #define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_DATA 0x8 -/* #define USB_IPODSTYLE */ +#define USB_HANDLED_BY_OF #ifndef BOOTLOADER #define HAVE_MULTIVOLUME diff --git a/firmware/export/config-clip.h b/firmware/export/config-clip.h index 1068440..9ebd3ec 100644 --- a/firmware/export/config-clip.h +++ b/firmware/export/config-clip.h @@ -170,6 +170,8 @@ #ifndef BOOTLOADER +#define USB_HANDLED_BY_OF + #if 0 /* disabled since there is no USB driver */ /* USB On-the-go */ @@ -183,6 +185,7 @@ #endif + /* Virtual LED (icon) */ #define CONFIG_LED LED_VIRTUAL diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h index 7fba796..559c55f 100644 --- a/firmware/export/config-e200.h +++ b/firmware/export/config-e200.h @@ -167,8 +167,6 @@ #define HAVE_HOTSWAP #endif -/* #define USB_IPODSTYLE */ - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-e200v2.h b/firmware/export/config-e200v2.h index 7824622..e8bc3db 100644 --- a/firmware/export/config-e200v2.h +++ b/firmware/export/config-e200v2.h @@ -171,7 +171,7 @@ #define HAVE_HOTSWAP #endif -/* #define USB_IPODSTYLE */ +#define USB_HANDLED_BY_OF /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_AS3525 diff --git a/firmware/export/config-fuze.h b/firmware/export/config-fuze.h index 0bc2d70..32a7a00 100644 --- a/firmware/export/config-fuze.h +++ b/firmware/export/config-fuze.h @@ -171,7 +171,7 @@ #define HAVE_HOTSWAP #endif -/* #define USB_IPODSTYLE */ +#define USB_HANDLED_BY_OF /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_AS3525 diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index 2056fd4..ca0fb55 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h @@ -159,8 +159,6 @@ #define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_DATA 0x8 -/* #define USB_IPODSTYLE */ - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h index 40acdc6..f9de782 100644 --- a/firmware/export/config-h10_5gb.h +++ b/firmware/export/config-h10_5gb.h @@ -139,8 +139,6 @@ #define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_DATA 0x8 -/* #define USB_IPODSTYLE */ - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-hdd1630.h b/firmware/export/config-hdd1630.h index 2df89ec..e7222b2 100755 --- a/firmware/export/config-hdd1630.h +++ b/firmware/export/config-hdd1630.h @@ -173,8 +173,6 @@ #define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_DATA 0x8 -/* #define USB_IPODSTYLE */ - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-ipod1g2g.h b/firmware/export/config-ipod1g2g.h index a06cb65..1cd9ee2 100644 --- a/firmware/export/config-ipod1g2g.h +++ b/firmware/export/config-ipod1g2g.h @@ -146,7 +146,7 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -#define USB_IPODSTYLE +#define USB_HANDLED_BY_OF /* actually firewire only, but handled like USB */ /* Virtual LED (icon) */ diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h index 0262fbd..0a8ae57 100644 --- a/firmware/export/config-ipod3g.h +++ b/firmware/export/config-ipod3g.h @@ -150,7 +150,7 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -#define USB_IPODSTYLE +#define USB_HANDLED_BY_OF /* actually both firewire and USB, USB isn't handled yet */ /* Virtual LED (icon) */ diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index 5bc0a18..4b60436 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h @@ -167,8 +167,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -#define USB_IPODSTYLE - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index e8a048d..92d3774 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h @@ -144,8 +144,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -#define USB_IPODSTYLE - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h index 0e87d02..44a03ea 100644 --- a/firmware/export/config-ipodmini.h +++ b/firmware/export/config-ipodmini.h @@ -163,8 +163,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -#define USB_IPODSTYLE - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h index a44087f..a21e0a8 100644 --- a/firmware/export/config-ipodmini2g.h +++ b/firmware/export/config-ipodmini2g.h @@ -170,8 +170,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -#define USB_IPODSTYLE - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index c90deb8..0bb28f2 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h @@ -154,8 +154,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -#define USB_IPODSTYLE - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index fb00fd9..dc62174 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h @@ -168,8 +168,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -#define USB_IPODSTYLE - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-mrobe100.h b/firmware/export/config-mrobe100.h index 817c764..4069dff 100644 --- a/firmware/export/config-mrobe100.h +++ b/firmware/export/config-mrobe100.h @@ -144,8 +144,6 @@ /* We're able to shut off power to the HDD */ #define HAVE_ATA_POWER_OFF -/* #define USB_IPODSTYLE */ - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-sa9200.h b/firmware/export/config-sa9200.h index 624befc..233229c 100755 --- a/firmware/export/config-sa9200.h +++ b/firmware/export/config-sa9200.h @@ -133,8 +133,6 @@ /* Type of LCD TODO: hopefully the same as the x5 but check this*/ #define CONFIG_LCD LCD_SA9200 -/* #define USB_IPODSTYLE */ - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC diff --git a/firmware/export/config-tpj1022.h b/firmware/export/config-tpj1022.h index 6cc85fd..c0df0a3 100644 --- a/firmware/export/config-tpj1022.h +++ b/firmware/export/config-tpj1022.h @@ -121,8 +121,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 -/* #define USB_IPODSTYLE */ - /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC |