diff options
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/config.h | 7 | ||||
| -rw-r--r-- | firmware/export/usb.h | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index b73f605..e64ca41 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -871,6 +871,13 @@ Lyre prototype 1 */ #endif #endif /* HAVE_HEADPHONE_DETECTION */ +#if defined(HAVE_USB_CHARGING_ENABLE) && defined(HAVE_USBSTACK) +/* USB charging support in the USB stack requires timeout objects */ +#ifndef INCLUDE_TIMEOUT_API +#define INCLUDE_TIMEOUT_API +#endif +#endif /* HAVE_USB_CHARGING_ENABLE && HAVE_USBSTACK */ + #if defined(HAVE_USBSTACK) || (CONFIG_STORAGE & STORAGE_NAND) #define STORAGE_GET_INFO #endif diff --git a/firmware/export/usb.h b/firmware/export/usb.h index d544f5c..55b5f2c 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h @@ -52,6 +52,9 @@ enum { USB_REQUEST_REBOOT, /* Event */ #endif USB_QUIT, /* Event */ +#if defined(HAVE_USB_CHARGING_ENABLE) && defined(HAVE_USBSTACK) + USB_CHARGER_UPDATE, /* Event */ +#endif }; #ifdef HAVE_USB_POWER @@ -156,8 +159,11 @@ enum { * or target-specific code on others */ void usb_charging_enable(int state); -#endif -#endif +#ifdef HAVE_USBSTACK +void usb_charger_update(void); +#endif /* HAVE_USBSTACK */ +#endif /* HAVE_USB_CHARGING_ENABLE */ +#endif /* HAVE_USB_POWER */ #ifdef HAVE_USBSTACK void usb_signal_transfer_completion( struct usb_transfer_completion_event_data *event_data); |