summaryrefslogtreecommitdiff
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 */
146void usb_status_event(int current_status); 146void usb_status_event(int current_status);
147#ifdef HAVE_USB_POWER 147#ifdef HAVE_USB_POWER
148bool usb_powered(void); 148bool usb_powered(void);
149#ifdef CONFIG_CHARGING 149#ifdef HAVE_USB_CHARGING_ENABLE
150bool usb_charging_enable(bool on); 150enum {
151bool usb_charging_enabled(void); 151 USB_CHARGING_DISABLE,
152 USB_CHARGING_ENABLE,
153 USB_CHARGING_FORCE
154};
155/* called by app, implemented by usb_core on targets with rockbox usb
156 * or target-specific code on others
157 */
158void usb_charging_enable(int state);
152#endif 159#endif
153#endif 160#endif
154#ifdef HAVE_USBSTACK 161#ifdef HAVE_USBSTACK