diff options
-rw-r--r-- | firmware/export/config-h300.h | 3 | ||||
-rw-r--r-- | firmware/usb.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index d57975d45d..88feb9d649 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h | |||
@@ -110,4 +110,7 @@ | |||
110 | 110 | ||
111 | #define HAVE_BACKLIGHT_BRIGHTNESS | 111 | #define HAVE_BACKLIGHT_BRIGHTNESS |
112 | 112 | ||
113 | /* define this if the unit can be powered or charged via USB */ | ||
114 | #define HAVE_USB_POWER | ||
115 | |||
113 | #endif | 116 | #endif |
diff --git a/firmware/usb.c b/firmware/usb.c index 13006ab4ea..94175a4b68 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -55,7 +55,7 @@ void screen_dump(void); /* Nasty again. Defined in apps/ too */ | |||
55 | 55 | ||
56 | /* Messages from usb_tick and thread states */ | 56 | /* Messages from usb_tick and thread states */ |
57 | #define USB_INSERTED 1 | 57 | #define USB_INSERTED 1 |
58 | #define USB_EXTRACTED 2 | 58 | #define USB_EXTRACTED 2 |
59 | #ifdef HAVE_MMC | 59 | #ifdef HAVE_MMC |
60 | #define USB_REENABLE 3 | 60 | #define USB_REENABLE 3 |
61 | #endif | 61 | #endif |
@@ -71,6 +71,9 @@ void screen_dump(void); /* Nasty again. Defined in apps/ too */ | |||
71 | #elif CONFIG_KEYPAD == IPOD_4G_PAD | 71 | #elif CONFIG_KEYPAD == IPOD_4G_PAD |
72 | #define USBPOWER_BUTTON BUTTON_MENU | 72 | #define USBPOWER_BUTTON BUTTON_MENU |
73 | #define USBPOWER_BTN_IGNORE BUTTON_PLAY | 73 | #define USBPOWER_BTN_IGNORE BUTTON_PLAY |
74 | #elif CONFIG_KEYPAD == IRIVER_H300_PAD | ||
75 | #define USBPOWER_BUTTON BUTTON_REC | ||
76 | #define USBPOWER_BTN_IGNORE BUTTON_ON | ||
74 | #endif | 77 | #endif |
75 | #endif /* HAVE_USB_POWER */ | 78 | #endif /* HAVE_USB_POWER */ |
76 | 79 | ||