mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 19:53:18 -04:00
New USB charging system, part 2 - "Force" charging mode
Enable support for the "force" mode of USB charging. This should work on Gigabeat S and Nano2g (and any other future target which has a RB usb stack and supports charging) - if a host connection is not detected within 10 seconds of USB insertion, assume that the connected device is an AC charger and charge anyway, if the user has specified "force" as the mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26594 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
47181b8b9b
commit
2eb0142587
4 changed files with 56 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue