aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-03-28 19:57:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-03-28 19:57:12 +0000
commit5a87fe949beed0e73f8e24d51bc06002a69dae1e (patch)
tree1d168719a0e7e82f8970772799fd704b9f2d9e7a /os
parentf083a30ce8d6b93c9fa23c94874e4488e79d053f (diff)
downloadChibiOS-5a87fe949beed0e73f8e24d51bc06002a69dae1e.tar.gz
ChibiOS-5a87fe949beed0e73f8e24d51bc06002a69dae1e.tar.bz2
ChibiOS-5a87fe949beed0e73f8e24d51bc06002a69dae1e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4061 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM32/OTGv1/usb_lld.c49
1 files changed, 42 insertions, 7 deletions
diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c
index 35b6dbc96..be0b809fc 100644
--- a/os/hal/platforms/STM32/OTGv1/usb_lld.c
+++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c
@@ -132,6 +132,7 @@ static void otg_reset_ep(void) {
*/
static void rxfifo_reset(USBDriver *usbp) {
+ (void)usbp;
}
/**
@@ -142,6 +143,9 @@ static void rxfifo_reset(USBDriver *usbp) {
*/
static uint32_t rxfifo_alloc(USBDriver *usbp, size_t size) {
+ (void)usbp;
+ (void)size;
+
return 0;
}
@@ -276,7 +280,6 @@ void usb_lld_stop(USBDriver *usbp) {
* @notapi
*/
void usb_lld_reset(USBDriver *usbp) {
- uint32_t cntr;
/* Post reset initialization.*/
@@ -297,6 +300,7 @@ void usb_lld_reset(USBDriver *usbp) {
*/
void usb_lld_set_address(USBDriver *usbp) {
+ (void)usbp;
}
/**
@@ -309,6 +313,8 @@ void usb_lld_set_address(USBDriver *usbp) {
*/
void usb_lld_init_endpoint(USBDriver *usbp, usbep_t ep) {
+ (void)usbp;
+ (void)ep;
}
/**
@@ -320,6 +326,7 @@ void usb_lld_init_endpoint(USBDriver *usbp, usbep_t ep) {
*/
void usb_lld_disable_endpoints(USBDriver *usbp) {
+ (void)usbp;
}
/**
@@ -336,6 +343,10 @@ void usb_lld_disable_endpoints(USBDriver *usbp) {
*/
usbepstatus_t usb_lld_get_status_out(USBDriver *usbp, usbep_t ep) {
+ (void)usbp;
+ (void)ep;
+
+ return 0;
}
/**
@@ -352,6 +363,10 @@ usbepstatus_t usb_lld_get_status_out(USBDriver *usbp, usbep_t ep) {
*/
usbepstatus_t usb_lld_get_status_in(USBDriver *usbp, usbep_t ep) {
+ (void)usbp;
+ (void)ep;
+
+ return 0;
}
/**
@@ -370,6 +385,9 @@ usbepstatus_t usb_lld_get_status_in(USBDriver *usbp, usbep_t ep) {
*/
void usb_lld_read_setup(USBDriver *usbp, usbep_t ep, uint8_t *buf) {
+ (void)usbp;
+ (void)ep;
+ (void)buf;
}
/**
@@ -392,6 +410,11 @@ void usb_lld_read_setup(USBDriver *usbp, usbep_t ep, uint8_t *buf) {
size_t usb_lld_read_packet_buffer(USBDriver *usbp, usbep_t ep,
uint8_t *buf, size_t n) {
+ (void)usbp;
+ (void)ep;
+ (void)buf;
+ (void)n;
+
return 0;
}
@@ -412,6 +435,10 @@ size_t usb_lld_read_packet_buffer(USBDriver *usbp, usbep_t ep,
void usb_lld_write_packet_buffer(USBDriver *usbp, usbep_t ep,
const uint8_t *buf, size_t n) {
+ (void)usbp;
+ (void)ep;
+ (void)buf;
+ (void)n;
}
/**
@@ -427,6 +454,10 @@ void usb_lld_write_packet_buffer(USBDriver *usbp, usbep_t ep,
void usb_lld_prepare_receive(USBDriver *usbp, usbep_t ep,
uint8_t *buf, size_t n) {
+ (void)usbp;
+ (void)ep;
+ (void)buf;
+ (void)n;
}
/**
@@ -442,6 +473,10 @@ void usb_lld_prepare_receive(USBDriver *usbp, usbep_t ep,
void usb_lld_prepare_transmit(USBDriver *usbp, usbep_t ep,
const uint8_t *buf, size_t n) {
+ (void)usbp;
+ (void)ep;
+ (void)buf;
+ (void)n;
}
/**
@@ -455,7 +490,7 @@ void usb_lld_prepare_transmit(USBDriver *usbp, usbep_t ep,
void usb_lld_start_out(USBDriver *usbp, usbep_t ep) {
(void)usbp;
-
+ (void)ep;
}
/**
@@ -469,7 +504,7 @@ void usb_lld_start_out(USBDriver *usbp, usbep_t ep) {
void usb_lld_start_in(USBDriver *usbp, usbep_t ep) {
(void)usbp;
-
+ (void)ep;
}
/**
@@ -483,7 +518,7 @@ void usb_lld_start_in(USBDriver *usbp, usbep_t ep) {
void usb_lld_stall_out(USBDriver *usbp, usbep_t ep) {
(void)usbp;
-
+ (void)ep;
}
/**
@@ -497,7 +532,7 @@ void usb_lld_stall_out(USBDriver *usbp, usbep_t ep) {
void usb_lld_stall_in(USBDriver *usbp, usbep_t ep) {
(void)usbp;
-
+ (void)ep;
}
/**
@@ -511,7 +546,7 @@ void usb_lld_stall_in(USBDriver *usbp, usbep_t ep) {
void usb_lld_clear_out(USBDriver *usbp, usbep_t ep) {
(void)usbp;
-
+ (void)ep;
}
/**
@@ -525,7 +560,7 @@ void usb_lld_clear_out(USBDriver *usbp, usbep_t ep) {
void usb_lld_clear_in(USBDriver *usbp, usbep_t ep) {
(void)usbp;
-
+ (void)ep;
}
#endif /* HAL_USE_USB */