summaryrefslogtreecommitdiffstats
path: root/firmware
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 /firmware
parent7d9cc0e2ce94cc0b0d42371cca1abbee552ad629 (diff)
downloadrockbox-1ebdb8988f1e029828fdfd9523fc5fb6022613ea.tar.gz
rockbox-1ebdb8988f1e029828fdfd9523fc5fb6022613ea.tar.bz2
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
Diffstat (limited to 'firmware')
-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 @@
#include "usb_core.h"
#include "string.h"
-#if defined(USE_ROCKBOX_USB)
-
#include "usb-drv-as3525.h"
static struct usb_endpoint endpoints[USB_NUM_EPS][2];
@@ -820,93 +818,3 @@ bool usb_drv_stalled(int ep, bool in)
{
return USB_EP_CTRL(ep, in) & USB_EP_CTRL_STALL;
}
-
-#else
-
-void usb_attach(void)
-{
-}
-
-void usb_drv_init(void)
-{
-}
-
-void usb_drv_exit(void)
-{
-}
-
-int usb_drv_port_speed(void)
-{
- return 0;
-}
-
-int usb_drv_request_endpoint(int type, int dir)
-{
- (void)type;
- (void)dir;
-
- return -1;
-}
-
-void usb_drv_release_endpoint(int ep)
-{
- (void)ep;
-}
-
-void usb_drv_cancel_all_transfers(void)
-{
-}
-
-void usb_drv_set_test_mode(int mode)
-{
- (void)mode;
-}
-
-void usb_drv_set_address(int address)
-{
- (void)address;
-}
-
-int usb_drv_recv(int ep, void *ptr, int len)
-{
- (void)ep;
- (void)ptr;
- (void)len;
-
- return -1;
-}
-
-int usb_drv_send(int ep, void *ptr, int len)
-{
- (void)ep;
- (void)ptr;
- (void)len;
-
- return -1;
-}
-
-int usb_drv_send_nonblocking(int ep, void *ptr, int len)
-{
- (void)ep;
- (void)ptr;
- (void)len;
-
- return -1;
-}
-
-void usb_drv_stall(int ep, bool stall, bool in)
-{
- (void)ep;
- (void)stall;
- (void)in;
-}
-
-bool usb_drv_stalled(int ep, bool in)
-{
- (void)ep;
- (void)in;
-
- return 0;
-}
-
-#endif