From 27ad822a447374facc721122bcbe576555c40197 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 4 Jun 2008 18:55:58 +0000 Subject: add usb_allowed_current() function, so powermanagement code can know when it's allowed to charge from usb git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17688 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/usb_core.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/export/usb_core.h') diff --git a/firmware/export/usb_core.h b/firmware/export/usb_core.h index 3629645d53..a6cf086e18 100644 --- a/firmware/export/usb_core.h +++ b/firmware/export/usb_core.h @@ -57,5 +57,10 @@ int usb_core_ack_control(struct usb_ctrlrequest* req); #ifdef HAVE_HOTSWAP void usb_core_hotswap_event(int volume,bool inserted); #endif + +#ifdef HAVE_USB_POWER +unsigned short usb_allowed_current(void); +#endif + #endif -- cgit v1.2.3