aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx')
-rw-r--r--testhal/STM32/STM32F4xx/I2C-LSM303DLHC/usbcfg.c2
-rw-r--r--testhal/STM32/STM32F4xx/SPI-L3GD20/usbcfg.c2
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS302DL/usbcfg.c2
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS3DSH/usbcfg.c2
-rw-r--r--testhal/STM32/STM32F4xx/USB_CDC/usbcfg.c2
-rw-r--r--testhal/STM32/STM32F4xx/USB_CDC_IAD/usbcfg.c2
6 files changed, 12 insertions, 0 deletions
diff --git a/testhal/STM32/STM32F4xx/I2C-LSM303DLHC/usbcfg.c b/testhal/STM32/STM32F4xx/I2C-LSM303DLHC/usbcfg.c
index 13a2e7ee3..949321a59 100644
--- a/testhal/STM32/STM32F4xx/I2C-LSM303DLHC/usbcfg.c
+++ b/testhal/STM32/STM32F4xx/I2C-LSM303DLHC/usbcfg.c
@@ -285,6 +285,8 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
chSysUnlockFromISR();
return;
+ case USB_EVENT_UNCONFIGURED:
+ return;
case USB_EVENT_SUSPEND:
chSysLockFromISR();
diff --git a/testhal/STM32/STM32F4xx/SPI-L3GD20/usbcfg.c b/testhal/STM32/STM32F4xx/SPI-L3GD20/usbcfg.c
index 13a2e7ee3..949321a59 100644
--- a/testhal/STM32/STM32F4xx/SPI-L3GD20/usbcfg.c
+++ b/testhal/STM32/STM32F4xx/SPI-L3GD20/usbcfg.c
@@ -285,6 +285,8 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
chSysUnlockFromISR();
return;
+ case USB_EVENT_UNCONFIGURED:
+ return;
case USB_EVENT_SUSPEND:
chSysLockFromISR();
diff --git a/testhal/STM32/STM32F4xx/SPI-LIS302DL/usbcfg.c b/testhal/STM32/STM32F4xx/SPI-LIS302DL/usbcfg.c
index 13a2e7ee3..949321a59 100644
--- a/testhal/STM32/STM32F4xx/SPI-LIS302DL/usbcfg.c
+++ b/testhal/STM32/STM32F4xx/SPI-LIS302DL/usbcfg.c
@@ -285,6 +285,8 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
chSysUnlockFromISR();
return;
+ case USB_EVENT_UNCONFIGURED:
+ return;
case USB_EVENT_SUSPEND:
chSysLockFromISR();
diff --git a/testhal/STM32/STM32F4xx/SPI-LIS3DSH/usbcfg.c b/testhal/STM32/STM32F4xx/SPI-LIS3DSH/usbcfg.c
index 13a2e7ee3..949321a59 100644
--- a/testhal/STM32/STM32F4xx/SPI-LIS3DSH/usbcfg.c
+++ b/testhal/STM32/STM32F4xx/SPI-LIS3DSH/usbcfg.c
@@ -285,6 +285,8 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
chSysUnlockFromISR();
return;
+ case USB_EVENT_UNCONFIGURED:
+ return;
case USB_EVENT_SUSPEND:
chSysLockFromISR();
diff --git a/testhal/STM32/STM32F4xx/USB_CDC/usbcfg.c b/testhal/STM32/STM32F4xx/USB_CDC/usbcfg.c
index 13a2e7ee3..949321a59 100644
--- a/testhal/STM32/STM32F4xx/USB_CDC/usbcfg.c
+++ b/testhal/STM32/STM32F4xx/USB_CDC/usbcfg.c
@@ -285,6 +285,8 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
chSysUnlockFromISR();
return;
+ case USB_EVENT_UNCONFIGURED:
+ return;
case USB_EVENT_SUSPEND:
chSysLockFromISR();
diff --git a/testhal/STM32/STM32F4xx/USB_CDC_IAD/usbcfg.c b/testhal/STM32/STM32F4xx/USB_CDC_IAD/usbcfg.c
index 3bab607bc..c6318049a 100644
--- a/testhal/STM32/STM32F4xx/USB_CDC_IAD/usbcfg.c
+++ b/testhal/STM32/STM32F4xx/USB_CDC_IAD/usbcfg.c
@@ -399,6 +399,8 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
chSysUnlockFromISR();
return;
+ case USB_EVENT_UNCONFIGURED:
+ return;
case USB_EVENT_SUSPEND:
chSysLockFromISR();