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/STM32L4xx/stm32_rcc.h | |
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/STM32L4xx/stm32_rcc.h')
-rw-r--r-- | os/hal/ports/STM32/STM32L4xx/stm32_rcc.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h index 9c771276c..384449d25 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h @@ -1128,6 +1128,36 @@ /** @} */
/**
+ * @name USB peripheral specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the USB peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableUSB(lp) rccEnableAPB1R1(RCC_APB1ENR1_USBFSEN, lp)
+
+/**
+ * @brief Disables the USB peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableUSB(lp) rccDisableAPB1R1(RCC_APB1ENR1_USBFSEN, lp)
+
+/**
+ * @brief Resets the USB peripheral.
+ *
+ * @api
+ */
+#define rccResetUSB() rccResetAPB1R1(RCC_APB1RSTR1_USBFSRST)
+/** @} */
+
+/**
* @name FSMC peripherals specific RCC operations
* @{
*/
|