forked from len0rd/rockbox
Make the tcc usb driver compile without warnings. No functional changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24286 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2f78fa114d
commit
f2a0f9905f
1 changed files with 7 additions and 1 deletions
|
@ -490,6 +490,7 @@ void USB_DEVICE(void)
|
||||||
|
|
||||||
void usb_drv_set_address(int address)
|
void usb_drv_set_address(int address)
|
||||||
{
|
{
|
||||||
|
(void) address;
|
||||||
DEBUG(2, "setting address %d %d", address, TCC7xx_USB_FUNC);
|
DEBUG(2, "setting address %d %d", address, TCC7xx_USB_FUNC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -628,7 +629,8 @@ int usb_drv_recv(int endpoint, void* ptr, int length)
|
||||||
flags = disable_irq_save();
|
flags = disable_irq_save();
|
||||||
|
|
||||||
if (tcc_ep->buf) {
|
if (tcc_ep->buf) {
|
||||||
panicf_my("%s: overrun: %x %x", __func__, tcc_ep->buf, tcc_ep);
|
panicf_my("%s: overrun: %x %x", __func__,
|
||||||
|
(unsigned int)tcc_ep->buf, (unsigned int)tcc_ep);
|
||||||
}
|
}
|
||||||
|
|
||||||
tcc_ep->buf = ptr;
|
tcc_ep->buf = ptr;
|
||||||
|
@ -676,10 +678,14 @@ void usb_drv_set_test_mode(int mode)
|
||||||
bool usb_drv_stalled(int endpoint, bool in)
|
bool usb_drv_stalled(int endpoint, bool in)
|
||||||
{
|
{
|
||||||
panicf_my("%s(%d,%d)", __func__, endpoint, in);
|
panicf_my("%s(%d,%d)", __func__, endpoint, in);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_drv_stall(int endpoint, bool stall,bool in)
|
void usb_drv_stall(int endpoint, bool stall,bool in)
|
||||||
{
|
{
|
||||||
|
(void) endpoint;
|
||||||
|
(void) stall;
|
||||||
|
(void) in;
|
||||||
printf("%s(%d,%d,%d)", __func__, endpoint, stall, in);
|
printf("%s(%d,%d,%d)", __func__, endpoint, stall, in);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue