aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-05-01 15:50:35 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-05-01 15:50:35 +0000
commit11ecb1a7586ddaf6276a087d51de829b00d5f386 (patch)
tree4f5ad4b7ef204329156c779c6166bd8f70d5222c /testhal
parentb920c0b7ff759436162a961fc97242473b1a9554 (diff)
downloadChibiOS-11ecb1a7586ddaf6276a087d51de829b00d5f386.tar.gz
ChibiOS-11ecb1a7586ddaf6276a087d51de829b00d5f386.tar.bz2
ChibiOS-11ecb1a7586ddaf6276a087d51de829b00d5f386.zip
Fixed problem with multiple SerialUSB instances.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5651 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32F1xx/USB_CDC/main.c2
-rw-r--r--testhal/STM32F1xx/USB_CDC_F107/main.c2
-rw-r--r--testhal/STM32F30x/USB_CDC/main.c2
-rw-r--r--testhal/STM32F37x/USB_CDC/main.c2
-rw-r--r--testhal/STM32F4xx/USB_CDC/main.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/testhal/STM32F1xx/USB_CDC/main.c b/testhal/STM32F1xx/USB_CDC/main.c
index 1bcba05fb..8b11e7ed4 100644
--- a/testhal/STM32F1xx/USB_CDC/main.c
+++ b/testhal/STM32F1xx/USB_CDC/main.c
@@ -294,7 +294,7 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
usbInitEndpointI(usbp, USBD1_INTERRUPT_REQUEST_EP, &ep2config);
/* Resetting the state of the CDC subsystem.*/
- sduConfigureHookI(usbp);
+ sduConfigureHookI(&SDU1);
chSysUnlockFromIsr();
return;
diff --git a/testhal/STM32F1xx/USB_CDC_F107/main.c b/testhal/STM32F1xx/USB_CDC_F107/main.c
index 9e4399983..8dda559c0 100644
--- a/testhal/STM32F1xx/USB_CDC_F107/main.c
+++ b/testhal/STM32F1xx/USB_CDC_F107/main.c
@@ -294,7 +294,7 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
usbInitEndpointI(usbp, USBD1_INTERRUPT_REQUEST_EP, &ep2config);
/* Resetting the state of the CDC subsystem.*/
- sduConfigureHookI(usbp);
+ sduConfigureHookI(&SDU1);
chSysUnlockFromIsr();
return;
diff --git a/testhal/STM32F30x/USB_CDC/main.c b/testhal/STM32F30x/USB_CDC/main.c
index 8c3f99a54..6555da8d3 100644
--- a/testhal/STM32F30x/USB_CDC/main.c
+++ b/testhal/STM32F30x/USB_CDC/main.c
@@ -301,7 +301,7 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
usbInitEndpointI(usbp, USBD1_INTERRUPT_REQUEST_EP, &ep2config);
/* Resetting the state of the CDC subsystem.*/
- sduConfigureHookI(usbp);
+ sduConfigureHookI(&SDU1);
chSysUnlockFromIsr();
return;
diff --git a/testhal/STM32F37x/USB_CDC/main.c b/testhal/STM32F37x/USB_CDC/main.c
index 286d26c01..200a0f3d5 100644
--- a/testhal/STM32F37x/USB_CDC/main.c
+++ b/testhal/STM32F37x/USB_CDC/main.c
@@ -300,7 +300,7 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
usbInitEndpointI(usbp, USBD1_INTERRUPT_REQUEST_EP, &ep2config);
/* Resetting the state of the CDC subsystem.*/
- sduConfigureHookI(usbp);
+ sduConfigureHookI(&SDU1);
chSysUnlockFromIsr();
return;
diff --git a/testhal/STM32F4xx/USB_CDC/main.c b/testhal/STM32F4xx/USB_CDC/main.c
index ecf575b4a..8bdf3c0ba 100644
--- a/testhal/STM32F4xx/USB_CDC/main.c
+++ b/testhal/STM32F4xx/USB_CDC/main.c
@@ -294,7 +294,7 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
usbInitEndpointI(usbp, USBD2_INTERRUPT_REQUEST_EP, &ep2config);
/* Resetting the state of the CDC subsystem.*/
- sduConfigureHookI(usbp);
+ sduConfigureHookI(&SDU2);
chSysUnlockFromIsr();
return;