summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-01-05 19:35:51 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-01-05 19:35:51 +0000
commit89a7a8138ec97a038200ab3080710bd101a9ff0e (patch)
tree0d407ed964975d8eb3f13eafd85a3abe18918184 /firmware/export
parentf97b9f11e4f95cf87b09f5184e2016d247f72d09 (diff)
Gigabeat S: Make it a removable mass-storage device. Windows will assign a drive to only the main data partition by default. To access the bootloader partition instead, press 'Vol -' while it connects (in bootloader and firmware). Hopefully doesn't break anything for anyone.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28972 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/gigabeats.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/config/gigabeats.h b/firmware/export/config/gigabeats.h
index fcfa274314..cf560aa35f 100644
--- a/firmware/export/config/gigabeats.h
+++ b/firmware/export/config/gigabeats.h
@@ -190,8 +190,17 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
-#define USBPOWER_BUTTON BUTTON_MENU
-#define USBPOWER_BTN_IGNORE BUTTON_POWER
+#define USBPOWER_BUTTON BUTTON_MENU
+
+#ifndef BOOTLOADER
+#define USBPOWER_BTN_IGNORE BUTTON_POWER
+#else
+/* Disable charging-only mode detection in bootloader */
+#define USBPOWER_BTN_IGNORE (BUTTON_MAIN | BUTTON_REMOTE)
+#endif
+
+/* Button that exposures boot partition rather than data during session */
+#define USB_BL_INSTALL_MODE_BTN BUTTON_VOL_DOWN
/* define this if the unit has a battery switch or battery can be removed
* when running */