mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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
This commit is contained in:
parent
3bfb9d44ae
commit
e2a25592f8
4 changed files with 57 additions and 23 deletions
|
|
@ -59,6 +59,7 @@ void usb_connect_event(void)
|
|||
USB_INSERTED : USB_EXTRACTED;
|
||||
/* Notify power that USB charging is potentially available */
|
||||
charger_usb_detect_event(usb_status);
|
||||
usb_status_event(usb_status);
|
||||
}
|
||||
|
||||
int usb_detect(void)
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@
|
|||
#define USB_DRIVER_CLOSE
|
||||
#endif
|
||||
|
||||
/* Connect by events, not by tick polling */
|
||||
#define USB_STATUS_BY_EVENT
|
||||
|
||||
void usb_connect_event(void);
|
||||
void usb_init_device(void);
|
||||
int usb_detect(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue