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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index b7b846d5b3..edc37bd5b6 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -131,6 +131,15 @@ enum
131#endif 131#endif
132}; 132};
133 133
134/* Supported usb modes. */
135enum
136{
137 USB_MODE_ASK = 0,
138 USB_MODE_MASS_STORAGE,
139 USB_MODE_CHARGE,
140 USB_MODE_ADB
141};
142
134#ifdef HAVE_USB_POWER 143#ifdef HAVE_USB_POWER
135/*allow people to define this in config-target.h if they need it*/ 144/*allow people to define this in config-target.h if they need it*/
136#if !defined(USBPOWER_BTN_IGNORE) 145#if !defined(USBPOWER_BTN_IGNORE)
@@ -215,6 +224,7 @@ void usb_charging_maxcurrent_change(int maxcurrent);
215/* returns the maximum allowed USB current, based on USB charging mode and state */ 224/* returns the maximum allowed USB current, based on USB charging mode and state */
216int usb_charging_maxcurrent(void); 225int usb_charging_maxcurrent(void);
217#endif /* HAVE_USB_CHARGING_ENABLE */ 226#endif /* HAVE_USB_CHARGING_ENABLE */
227void usb_set_mode(int mode);
218#endif /* HAVE_USB_POWER */ 228#endif /* HAVE_USB_POWER */
219#ifdef HAVE_USBSTACK 229#ifdef HAVE_USBSTACK
220/* USB driver call this function to notify that a transfer has completed */ 230/* USB driver call this function to notify that a transfer has completed */