diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-11-20 16:05:49 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-11-20 16:05:49 +0000 |
commit | f64807054ff4ace593c9abc507383bfaf0c7819d (patch) | |
tree | f83e42ea1ece628a836d93cfbe4a01ef490e37f9 /os/hal/ports/STM32/LLD | |
parent | 29ad4508ef7acac4433f64e25fb84c374e47df16 (diff) | |
download | ChibiOS-f64807054ff4ace593c9abc507383bfaf0c7819d.tar.gz ChibiOS-f64807054ff4ace593c9abc507383bfaf0c7819d.tar.bz2 ChibiOS-f64807054ff4ace593c9abc507383bfaf0c7819d.zip |
Updated STM32L432 port.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9932 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD')
-rw-r--r-- | os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h | 10 |
1 files changed, 10 insertions, 0 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 7971189ae..4872cc9c4 100644 --- a/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h +++ b/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h @@ -448,6 +448,16 @@ 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. */
/*===========================================================================*/
|