aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h10
-rw-r--r--os/hal/ports/STM32/STM32L4xx/stm32_registry.h4
2 files changed, 2 insertions, 12 deletions
diff --git a/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h b/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h
index 4872cc9c4..7971189ae 100644
--- a/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h
+++ b/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h
@@ -448,16 +448,6 @@ struct USBDriver {
#endif
#endif /* STM32L1XX */
-#if defined(STM32L432xx)
-#if !defined(usb_lld_connect_bus)
-#define usb_lld_connect_bus(usbp) (USB->BCDR |= USB_BCDR_DPPU)
-#endif
-
-#if !defined(usb_lld_disconnect_bus)
-#define usb_lld_disconnect_bus(usbp) (USB->BCDR &= ~USB_BCDR_DPPU)
-#endif
-#endif /* STM32L432xx */
-
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
index 9e0bb36f6..6d74dd4bd 100644
--- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
@@ -323,8 +323,8 @@
/* USB attributes.*/
#define STM32_HAS_USB TRUE
#define STM32_USB_ACCESS_SCHEME_2x16 FALSE
-#define STM32_USB_PMA_SIZE 512
-#define STM32_USB_HAS_BCDR FALSE
+#define STM32_USB_PMA_SIZE 1024
+#define STM32_USB_HAS_BCDR TRUE
#define STM32_USB1_HP_HANDLER Vector14C
#define STM32_USB1_LP_HANDLER Vector14C
#define STM32_USB1_HP_NUMBER 67