diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2009-01-14 07:01:49 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2009-01-14 07:01:49 +0000 |
| commit | e2a25592f8655fda9bf9260d22501017fba26390 (patch) | |
| tree | 64ed029f1362c7ef4758e66eb00392af96566099 /firmware/export/usb.h | |
| parent | 3bfb9d44ae6440b75eaf494a1100f6c1ed21a666 (diff) | |
| download | rockbox-e2a25592f8655fda9bf9260d22501017fba26390.zip rockbox-e2a25592f8655fda9bf9260d22501017fba26390.tar.gz rockbox-e2a25592f8655fda9bf9260d22501017fba26390.tar.bz2 rockbox-e2a25592f8655fda9bf9260d22501017fba26390.tar.xz | |
Gigabeat S has no need for a USB tick. Put in a simple framework that allows USB monitoring by event. Also add a couple missed usb_enable calls when the connection is not for 'slave mode'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19768 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/usb.h')
| -rw-r--r-- | firmware/export/usb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 49b70f6..a6cfad5 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h @@ -114,6 +114,8 @@ void usb_wait_for_disconnect(struct event_queue *q); int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks); bool usb_inserted(void); /* return the official value, what's been reported to the threads */ int usb_detect(void); /* return the raw hardware value - nothing/pc/charger */ +/* For tick-less USB monitoring (USB_STATUS_BY_EVENT) */ +void usb_status_event(int current_status); #ifdef HAVE_USB_POWER bool usb_powered(void); #ifdef CONFIG_CHARGING |