summaryrefslogtreecommitdiffstats
path: root/firmware/export/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/usb.h')
-rw-r--r--firmware/export/usb.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index 48400b11dc..d544f5cab1 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -146,9 +146,16 @@ int usb_detect(void); /* return the raw hardware value - nothing/pc/charger */
void usb_status_event(int current_status);
#ifdef HAVE_USB_POWER
bool usb_powered(void);
-#ifdef CONFIG_CHARGING
-bool usb_charging_enable(bool on);
-bool usb_charging_enabled(void);
+#ifdef HAVE_USB_CHARGING_ENABLE
+enum {
+ USB_CHARGING_DISABLE,
+ USB_CHARGING_ENABLE,
+ USB_CHARGING_FORCE
+};
+/* called by app, implemented by usb_core on targets with rockbox usb
+ * or target-specific code on others
+ */
+void usb_charging_enable(int state);
#endif
#endif
#ifdef HAVE_USBSTACK