diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-03-09 22:02:30 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-03-09 22:02:30 +0000 |
commit | efe3ec86f11d07ab1b1e152b1927b62cd4fc437f (patch) | |
tree | 6a01d67ba687f71806b7250238c683ef7f797fe3 /firmware/target/arm | |
parent | e92d9967d6b2cffd95dc42fdd10ebcd85d6368ca (diff) |
A few tweaks to get USB support compiling again on TCC targets (part of FS#9917 by Michaƫl Burtin).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20264 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/usb-tcc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/usb-tcc.c b/firmware/target/arm/usb-tcc.c index aa4c2e4226..6f15e68af8 100644 --- a/firmware/target/arm/usb-tcc.c +++ b/firmware/target/arm/usb-tcc.c @@ -122,7 +122,7 @@ void usb_drv_release_endpoint(int ep) int flags; ep = ep & 0x7f; - if (ep < 1 || ep > NUM_ENDPOINTS) + if (ep < 1 || ep > USB_NUM_ENDPOINTS) return ; flags = disable_irq_save(); @@ -744,6 +744,10 @@ void usb_enable(bool on) usb_core_exit(); } +void usb_attach(void) +{ + usb_enable(true); +} int usb_detect(void) { |