diff options
Diffstat (limited to 'firmware/export/usb_core.h')
-rw-r--r-- | firmware/export/usb_core.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/export/usb_core.h b/firmware/export/usb_core.h index 5286dbcdfe..6405aa492d 100644 --- a/firmware/export/usb_core.h +++ b/firmware/export/usb_core.h | |||
@@ -59,8 +59,14 @@ void usb_core_release_endpoint(int dir); | |||
59 | void usb_core_hotswap_event(int volume,bool inserted); | 59 | void usb_core_hotswap_event(int volume,bool inserted); |
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | #ifdef HAVE_USB_POWER | 62 | #ifdef HAVE_USB_CHARGING_ENABLE |
63 | unsigned short usb_allowed_current(void); | 63 | /* hardware which knows how to control usb current should use one |
64 | * of the following to find out from the usb stack how much is ok | ||
65 | */ | ||
66 | /* implemented by target, called by usb when value changes */ | ||
67 | void usb_charging_maxcurrent_change(int maxcurrent); | ||
68 | /* implemented by usb, called by target to get value */ | ||
69 | int usb_charging_maxcurrent(void); | ||
64 | #endif | 70 | #endif |
65 | 71 | ||
66 | #endif | 72 | #endif |