summaryrefslogtreecommitdiff
path: root/firmware/target/arm/usb-tcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/usb-tcc.c')
-rw-r--r--firmware/target/arm/usb-tcc.c8
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
491void usb_drv_set_address(int address) 491void 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)
676bool usb_drv_stalled(int endpoint, bool in) 678bool 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
681void usb_drv_stall(int endpoint, bool stall,bool in) 684void 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