summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/usb_drv.h4
-rw-r--r--firmware/target/arm/usb-s3c6400x.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/usb_drv.h b/firmware/export/usb_drv.h
index c29d2892d6..fad9c79c10 100644
--- a/firmware/export/usb_drv.h
+++ b/firmware/export/usb_drv.h
@@ -33,8 +33,8 @@ void usb_drv_attach(void);
void usb_drv_int(void); /* Call from target INT handler */
void usb_drv_stall(int endpoint, bool stall,bool in);
bool usb_drv_stalled(int endpoint,bool in);
-int usb_drv_send(int endpoint, const void* ptr, int length);
-int usb_drv_send_nonblocking(int endpoint, const void* ptr, int length);
+int usb_drv_send(int endpoint, void* ptr, int length);
+int usb_drv_send_nonblocking(int endpoint, void* ptr, int length);
int usb_drv_recv(int endpoint, void* ptr, int length);
void usb_drv_ack(struct usb_ctrlrequest* req);
void usb_drv_set_address(int address);
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c
index 8755eabdf9..dbba9f39aa 100644
--- a/firmware/target/arm/usb-s3c6400x.c
+++ b/firmware/target/arm/usb-s3c6400x.c
@@ -318,7 +318,7 @@ static void ep_recv(int ep, void *ptr, int length)
DOEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */
}
-int usb_drv_send(int endpoint, const void *ptr, int length)
+int usb_drv_send(int endpoint, void *ptr, int length)
{
endpoint &= 0x7f;
endpoints[endpoint].done = false;
@@ -328,7 +328,7 @@ int usb_drv_send(int endpoint, const void *ptr, int length)
return endpoints[endpoint].rc;
}
-int usb_drv_send_nonblocking(int endpoint, const void *ptr, int length)
+int usb_drv_send_nonblocking(int endpoint, void *ptr, int length)
{
ep_send(endpoint & 0x7f, ptr, length);
return 0;