summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h7
-rw-r--r--firmware/export/usb.h10
2 files changed, 15 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index b73f605d9d..e64ca4127f 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -871,6 +871,13 @@ Lyre prototype 1 */
871#endif 871#endif
872#endif /* HAVE_HEADPHONE_DETECTION */ 872#endif /* HAVE_HEADPHONE_DETECTION */
873 873
874#if defined(HAVE_USB_CHARGING_ENABLE) && defined(HAVE_USBSTACK)
875/* USB charging support in the USB stack requires timeout objects */
876#ifndef INCLUDE_TIMEOUT_API
877#define INCLUDE_TIMEOUT_API
878#endif
879#endif /* HAVE_USB_CHARGING_ENABLE && HAVE_USBSTACK */
880
874#if defined(HAVE_USBSTACK) || (CONFIG_STORAGE & STORAGE_NAND) 881#if defined(HAVE_USBSTACK) || (CONFIG_STORAGE & STORAGE_NAND)
875#define STORAGE_GET_INFO 882#define STORAGE_GET_INFO
876#endif 883#endif
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index d544f5cab1..55b5f2cffb 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -52,6 +52,9 @@ enum {
52 USB_REQUEST_REBOOT, /* Event */ 52 USB_REQUEST_REBOOT, /* Event */
53#endif 53#endif
54 USB_QUIT, /* Event */ 54 USB_QUIT, /* Event */
55#if defined(HAVE_USB_CHARGING_ENABLE) && defined(HAVE_USBSTACK)
56 USB_CHARGER_UPDATE, /* Event */
57#endif
55}; 58};
56 59
57#ifdef HAVE_USB_POWER 60#ifdef HAVE_USB_POWER
@@ -156,8 +159,11 @@ enum {
156 * or target-specific code on others 159 * or target-specific code on others
157 */ 160 */
158void usb_charging_enable(int state); 161void usb_charging_enable(int state);
159#endif 162#ifdef HAVE_USBSTACK
160#endif 163void usb_charger_update(void);
164#endif /* HAVE_USBSTACK */
165#endif /* HAVE_USB_CHARGING_ENABLE */
166#endif /* HAVE_USB_POWER */
161#ifdef HAVE_USBSTACK 167#ifdef HAVE_USBSTACK
162void usb_signal_transfer_completion( 168void usb_signal_transfer_completion(
163 struct usb_transfer_completion_event_data *event_data); 169 struct usb_transfer_completion_event_data *event_data);