diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2015-01-02 12:38:34 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2015-01-08 16:45:11 +0100 |
commit | ae37d1944fdc66f303749ee8c0613105e4d32b3d (patch) | |
tree | 82a75be04392bcc53007fbe77c94288113dd334e /firmware/export | |
parent | 268114ee666448398a13a9099e95d4f28d90493e (diff) | |
download | rockbox-ae37d1944fdc66f303749ee8c0613105e4d32b3d.tar.gz rockbox-ae37d1944fdc66f303749ee8c0613105e4d32b3d.zip |
usb: document usb_status_event and #ifdef it with USB_STATUS_BY_EVENT
Change-Id: I62cdb8ad71a598279fe99cc91d87eafda26cbbc7
Reviewed-on: http://gerrit.rockbox.org/1095
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/usb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 6c9cdac6e1..f13ade2acd 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -110,8 +110,10 @@ void usb_wait_for_disconnect(struct event_queue *q); | |||
110 | int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks); | 110 | int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks); |
111 | bool usb_inserted(void); /* return the official value, what's been reported to the threads */ | 111 | bool usb_inserted(void); /* return the official value, what's been reported to the threads */ |
112 | int usb_detect(void); /* return the raw hardware value - nothing/pc/charger */ | 112 | int usb_detect(void); /* return the raw hardware value - nothing/pc/charger */ |
113 | /* For tick-less USB monitoring (USB_STATUS_BY_EVENT) */ | 113 | #ifdef USB_STATUS_BY_EVENT |
114 | /* Notify USB insertion state (USB_INSERTED or USB_EXTRACTED) */ | ||
114 | void usb_status_event(int current_status); | 115 | void usb_status_event(int current_status); |
116 | #endif | ||
115 | #ifdef HAVE_USB_POWER | 117 | #ifdef HAVE_USB_POWER |
116 | bool usb_powered(void); | 118 | bool usb_powered(void); |
117 | #ifdef HAVE_USB_CHARGING_ENABLE | 119 | #ifdef HAVE_USB_CHARGING_ENABLE |