summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-22 13:32:01 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-07-22 13:32:01 +0000
commit1ebdb8988f1e029828fdfd9523fc5fb6022613ea (patch)
treec605d3026f1d0a8eb81d2a33734f66bb8aae6504
parent7d9cc0e2ce94cc0b0d42371cca1abbee552ad629 (diff)
downloadrockbox-1ebdb8988f1e029828fdfd9523fc5fb6022613ea.tar.gz
rockbox-1ebdb8988f1e029828fdfd9523fc5fb6022613ea.zip
as3525v1 USB: remove stubs if !defined(USE_ROCKBOX_USB)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27519 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/as3525/usb-drv-as3525.c92
1 files changed, 0 insertions, 92 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525.c b/firmware/target/arm/as3525/usb-drv-as3525.c
index f98db62596..bee9689ae3 100644
--- a/firmware/target/arm/as3525/usb-drv-as3525.c
+++ b/firmware/target/arm/as3525/usb-drv-as3525.c
@@ -35,8 +35,6 @@
35#include "usb_core.h" 35#include "usb_core.h"
36#include "string.h" 36#include "string.h"
37 37
38#if defined(USE_ROCKBOX_USB)
39
40#include "usb-drv-as3525.h" 38#include "usb-drv-as3525.h"
41 39
42static struct usb_endpoint endpoints[USB_NUM_EPS][2]; 40static struct usb_endpoint endpoints[USB_NUM_EPS][2];
@@ -820,93 +818,3 @@ bool usb_drv_stalled(int ep, bool in)
820{ 818{
821 return USB_EP_CTRL(ep, in) & USB_EP_CTRL_STALL; 819 return USB_EP_CTRL(ep, in) & USB_EP_CTRL_STALL;
822} 820}
823
824#else
825
826void usb_attach(void)
827{
828}
829
830void usb_drv_init(void)
831{
832}
833
834void usb_drv_exit(void)
835{
836}
837
838int usb_drv_port_speed(void)
839{
840 return 0;
841}
842
843int usb_drv_request_endpoint(int type, int dir)
844{
845 (void)type;
846 (void)dir;
847
848 return -1;
849}
850
851void usb_drv_release_endpoint(int ep)
852{
853 (void)ep;
854}
855
856void usb_drv_cancel_all_transfers(void)
857{
858}
859
860void usb_drv_set_test_mode(int mode)
861{
862 (void)mode;
863}
864
865void usb_drv_set_address(int address)
866{
867 (void)address;
868}
869
870int usb_drv_recv(int ep, void *ptr, int len)
871{
872 (void)ep;
873 (void)ptr;
874 (void)len;
875
876 return -1;
877}
878
879int usb_drv_send(int ep, void *ptr, int len)
880{
881 (void)ep;
882 (void)ptr;
883 (void)len;
884
885 return -1;
886}
887
888int usb_drv_send_nonblocking(int ep, void *ptr, int len)
889{
890 (void)ep;
891 (void)ptr;
892 (void)len;
893
894 return -1;
895}
896
897void usb_drv_stall(int ep, bool stall, bool in)
898{
899 (void)ep;
900 (void)stall;
901 (void)in;
902}
903
904bool usb_drv_stalled(int ep, bool in)
905{
906 (void)ep;
907 (void)in;
908
909 return 0;
910}
911
912#endif