From 5a87fe949beed0e73f8e24d51bc06002a69dae1e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 28 Mar 2012 19:57:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4061 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/OTGv1/usb_lld.c | 49 +++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 7 deletions(-) (limited to 'os') 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 */ -- cgit v1.2.3