diff options
| -rw-r--r-- | firmware/export/config-cowond2.h | 3 | ||||
| -rw-r--r-- | firmware/export/usb.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/config-cowond2.h b/firmware/export/config-cowond2.h index 4341575..45bf90b 100644 --- a/firmware/export/config-cowond2.h +++ b/firmware/export/config-cowond2.h @@ -142,6 +142,9 @@ /* Hardware controlled charging */ #define CONFIG_CHARGING CHARGING_SIMPLE +/* Define this if the unit can be powered or charged via USB */ +#define HAVE_USB_POWER + /* Define current usage levels. */ #define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */ #define CURRENT_BACKLIGHT 30 /* TBD */ diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 2707541..911fa93 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h @@ -89,6 +89,9 @@ enum { #elif CONFIG_KEYPAD == SAMSUNG_YH_PAD #define USBPOWER_BUTTON BUTTON_RIGHT #define USBPOWER_BTN_IGNORE BUTTON_LEFT +#elif CONFIG_KEYPAD == COWOND2_PAD +#define USBPOWER_BUTTON BUTTON_MENU +#define USBPOWER_BTN_IGNORE BUTTON_MINUS #endif #endif /* HAVE_USB_POWER */ |