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
This commit is contained in:
Rob Purchase 2009-03-09 22:02:30 +00:00
parent e92d9967d6
commit efe3ec86f1
4 changed files with 12 additions and 1 deletions

View file

@ -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)
{