diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2010-01-19 21:17:32 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2010-01-19 21:17:32 +0000 |
commit | f2a0f9905fef725c7757e8bc5dd52c8c79b28b9c (patch) | |
tree | d0589205751b3bfc317b55ba2e88dd0a14777014 | |
parent | 2f78fa114dddcef64db8fe4ffec329178afa4868 (diff) | |
download | rockbox-f2a0f9905fef725c7757e8bc5dd52c8c79b28b9c.tar.gz rockbox-f2a0f9905fef725c7757e8bc5dd52c8c79b28b9c.zip |
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
-rw-r--r-- | firmware/target/arm/usb-tcc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/usb-tcc.c b/firmware/target/arm/usb-tcc.c index 2538efd12e..9d5ae2d50a 100644 --- a/firmware/target/arm/usb-tcc.c +++ b/firmware/target/arm/usb-tcc.c | |||
@@ -490,6 +490,7 @@ void USB_DEVICE(void) | |||
490 | 490 | ||
491 | void usb_drv_set_address(int address) | 491 | void usb_drv_set_address(int address) |
492 | { | 492 | { |
493 | (void) address; | ||
493 | DEBUG(2, "setting address %d %d", address, TCC7xx_USB_FUNC); | 494 | DEBUG(2, "setting address %d %d", address, TCC7xx_USB_FUNC); |
494 | } | 495 | } |
495 | 496 | ||
@@ -628,7 +629,8 @@ int usb_drv_recv(int endpoint, void* ptr, int length) | |||
628 | flags = disable_irq_save(); | 629 | flags = disable_irq_save(); |
629 | 630 | ||
630 | if (tcc_ep->buf) { | 631 | if (tcc_ep->buf) { |
631 | panicf_my("%s: overrun: %x %x", __func__, tcc_ep->buf, tcc_ep); | 632 | panicf_my("%s: overrun: %x %x", __func__, |
633 | (unsigned int)tcc_ep->buf, (unsigned int)tcc_ep); | ||
632 | } | 634 | } |
633 | 635 | ||
634 | tcc_ep->buf = ptr; | 636 | tcc_ep->buf = ptr; |
@@ -676,10 +678,14 @@ void usb_drv_set_test_mode(int mode) | |||
676 | bool usb_drv_stalled(int endpoint, bool in) | 678 | bool usb_drv_stalled(int endpoint, bool in) |
677 | { | 679 | { |
678 | panicf_my("%s(%d,%d)", __func__, endpoint, in); | 680 | panicf_my("%s(%d,%d)", __func__, endpoint, in); |
681 | return false; | ||
679 | } | 682 | } |
680 | 683 | ||
681 | void usb_drv_stall(int endpoint, bool stall,bool in) | 684 | void usb_drv_stall(int endpoint, bool stall,bool in) |
682 | { | 685 | { |
686 | (void) endpoint; | ||
687 | (void) stall; | ||
688 | (void) in; | ||
683 | printf("%s(%d,%d,%d)", __func__, endpoint, stall, in); | 689 | printf("%s(%d,%d,%d)", __func__, endpoint, stall, in); |
684 | } | 690 | } |
685 | 691 | ||