diff options
Diffstat (limited to 'firmware/target/coldfire/iriver/h100/usb-h100.c')
-rw-r--r-- | firmware/target/coldfire/iriver/h100/usb-h100.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/coldfire/iriver/h100/usb-h100.c b/firmware/target/coldfire/iriver/h100/usb-h100.c index 3b00e967da..5a2f7f500b 100644 --- a/firmware/target/coldfire/iriver/h100/usb-h100.c +++ b/firmware/target/coldfire/iriver/h100/usb-h100.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include "cpu.h" | 21 | #include "cpu.h" |
22 | #include "system.h" | 22 | #include "system.h" |
23 | #include "kernel.h" | 23 | #include "kernel.h" |
24 | #include "usb.h" | ||
24 | 25 | ||
25 | void usb_init_device(void) | 26 | void usb_init_device(void) |
26 | { | 27 | { |
@@ -30,9 +31,9 @@ void usb_init_device(void) | |||
30 | or_l(0x01000040, &GPIO_FUNCTION); | 31 | or_l(0x01000040, &GPIO_FUNCTION); |
31 | } | 32 | } |
32 | 33 | ||
33 | bool usb_detect(void) | 34 | int usb_detect(void) |
34 | { | 35 | { |
35 | return (GPIO1_READ & 0x80)?true:false; | 36 | return (GPIO1_READ & 0x80) ? USB_INSERTED : USB_EXTRACTED; |
36 | } | 37 | } |
37 | 38 | ||
38 | void usb_enable(bool on) | 39 | void usb_enable(bool on) |