diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2008-06-04 18:55:58 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2008-06-04 18:55:58 +0000 |
| commit | 27ad822a447374facc721122bcbe576555c40197 (patch) | |
| tree | 4b023d4882fae6a8caca758fa9050c3c39a04e81 /firmware/export | |
| parent | ea840e203646db7f689a817a02b3b31c108d1b69 (diff) | |
| download | rockbox-27ad822a447374facc721122bcbe576555c40197.zip rockbox-27ad822a447374facc721122bcbe576555c40197.tar.gz rockbox-27ad822a447374facc721122bcbe576555c40197.tar.bz2 rockbox-27ad822a447374facc721122bcbe576555c40197.tar.xz | |
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
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/usb_core.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/usb_core.h b/firmware/export/usb_core.h index 3629645..a6cf086 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 |