mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 19:42:40 -05:00
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:
parent
e92d9967d6
commit
efe3ec86f1
4 changed files with 12 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue