aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-11-28 13:35:00 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-11-28 13:35:00 +0000
commit4b40042078a718f168384534af117f567741f941 (patch)
tree4668a78b8830d12ee3ef444b2d643688327baec5
parentaf649428322234d8816efc0d8ace6c4f481d8250 (diff)
downloadChibiOS-4b40042078a718f168384534af117f567741f941.tar.gz
ChibiOS-4b40042078a718f168384534af117f567741f941.tar.bz2
ChibiOS-4b40042078a718f168384534af117f567741f941.zip
Fixes on USB lld related to STM32L432
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9943 35acf78f-673a-0410-8e92-d51de3d6d3f4
-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