From c3150eb13679314f8bfc02714ae0027dd1658002 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 16 Jun 2016 09:22:22 +0000 Subject: USB fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9628 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F0xx/USB_CDC/usbcfg.c | 2 ++ testhal/STM32/STM32F1xx/USB_CDC/usbcfg.c | 2 ++ testhal/STM32/STM32F2xx/USB_CDC/usbcfg.c | 2 ++ testhal/STM32/STM32F37x/USB_CDC/usbcfg.c | 2 ++ testhal/STM32/STM32F3xx/I2C-LSM303DLHC/usbcfg.c | 2 ++ testhal/STM32/STM32F3xx/SPI-L3GD20/usbcfg.c | 2 ++ testhal/STM32/STM32F3xx/USB_CDC/usbcfg.c | 2 ++ testhal/STM32/STM32F3xx/USB_CDC_IAD/usbcfg.c | 2 ++ testhal/STM32/STM32F4xx/I2C-LSM303DLHC/usbcfg.c | 2 ++ testhal/STM32/STM32F4xx/SPI-L3GD20/usbcfg.c | 2 ++ testhal/STM32/STM32F4xx/SPI-LIS302DL/usbcfg.c | 2 ++ testhal/STM32/STM32F4xx/SPI-LIS3DSH/usbcfg.c | 2 ++ testhal/STM32/STM32F4xx/USB_CDC/usbcfg.c | 2 ++ testhal/STM32/STM32F4xx/USB_CDC_IAD/usbcfg.c | 2 ++ testhal/STM32/STM32F7xx/USB_CDC/usbcfg.c | 2 ++ testhal/STM32/STM32F7xx/USB_RAW/usbcfg.c | 2 ++ 16 files changed, 32 insertions(+) (limited to 'testhal/STM32') diff --git a/testhal/STM32/STM32F0xx/USB_CDC/usbcfg.c b/testhal/STM32/STM32F0xx/USB_CDC/usbcfg.c index 596513957..1a46b170a 100644 --- a/testhal/STM32/STM32F0xx/USB_CDC/usbcfg.c +++ b/testhal/STM32/STM32F0xx/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/STM32F1xx/USB_CDC/usbcfg.c b/testhal/STM32/STM32F1xx/USB_CDC/usbcfg.c index 13a2e7ee3..949321a59 100644 --- a/testhal/STM32/STM32F1xx/USB_CDC/usbcfg.c +++ b/testhal/STM32/STM32F1xx/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/STM32F2xx/USB_CDC/usbcfg.c b/testhal/STM32/STM32F2xx/USB_CDC/usbcfg.c index 13a2e7ee3..949321a59 100644 --- a/testhal/STM32/STM32F2xx/USB_CDC/usbcfg.c +++ b/testhal/STM32/STM32F2xx/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/STM32F37x/USB_CDC/usbcfg.c b/testhal/STM32/STM32F37x/USB_CDC/usbcfg.c index 13a2e7ee3..949321a59 100644 --- a/testhal/STM32/STM32F37x/USB_CDC/usbcfg.c +++ b/testhal/STM32/STM32F37x/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/STM32F3xx/I2C-LSM303DLHC/usbcfg.c b/testhal/STM32/STM32F3xx/I2C-LSM303DLHC/usbcfg.c index 13a2e7ee3..949321a59 100644 --- a/testhal/STM32/STM32F3xx/I2C-LSM303DLHC/usbcfg.c +++ b/testhal/STM32/STM32F3xx/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/STM32F3xx/SPI-L3GD20/usbcfg.c b/testhal/STM32/STM32F3xx/SPI-L3GD20/usbcfg.c index 13a2e7ee3..949321a59 100644 --- a/testhal/STM32/STM32F3xx/SPI-L3GD20/usbcfg.c +++ b/testhal/STM32/STM32F3xx/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/STM32F3xx/USB_CDC/usbcfg.c b/testhal/STM32/STM32F3xx/USB_CDC/usbcfg.c index 13a2e7ee3..949321a59 100644 --- a/testhal/STM32/STM32F3xx/USB_CDC/usbcfg.c +++ b/testhal/STM32/STM32F3xx/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/STM32F3xx/USB_CDC_IAD/usbcfg.c b/testhal/STM32/STM32F3xx/USB_CDC_IAD/usbcfg.c index da342c10e..c265a9fd6 100644 --- a/testhal/STM32/STM32F3xx/USB_CDC_IAD/usbcfg.c +++ b/testhal/STM32/STM32F3xx/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(); 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(); diff --git a/testhal/STM32/STM32F7xx/USB_CDC/usbcfg.c b/testhal/STM32/STM32F7xx/USB_CDC/usbcfg.c index 1a0858af3..e0c0d853b 100644 --- a/testhal/STM32/STM32F7xx/USB_CDC/usbcfg.c +++ b/testhal/STM32/STM32F7xx/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/STM32F7xx/USB_RAW/usbcfg.c b/testhal/STM32/STM32F7xx/USB_RAW/usbcfg.c index 6aff4fc49..9f279edc4 100644 --- a/testhal/STM32/STM32F7xx/USB_RAW/usbcfg.c +++ b/testhal/STM32/STM32F7xx/USB_RAW/usbcfg.c @@ -273,6 +273,8 @@ static void usb_event(USBDriver *usbp, usbevent_t event) { chSysUnlockFromISR(); return; + case USB_EVENT_UNCONFIGURED: + return; case USB_EVENT_SUSPEND: return; case USB_EVENT_WAKEUP: -- cgit v1.2.3