aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-08-05 14:40:07 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-08-05 14:40:07 +0000
commitadb186c90adbf6ae1fc37bbc68673943286715bf (patch)
tree490418b377c22c2ee664faf7d2e8a554f5a63317 /os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
parent0f926c98c2daf116eb94edcc752dce1d4f4f7456 (diff)
downloadChibiOS-adb186c90adbf6ae1fc37bbc68673943286715bf.tar.gz
ChibiOS-adb186c90adbf6ae1fc37bbc68673943286715bf.tar.bz2
ChibiOS-adb186c90adbf6ae1fc37bbc68673943286715bf.zip
Added support for I2C3 and I2C4 to the STM32 I2Cv2 I2C driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8164 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F7xx/stm32_rcc.h')
-rw-r--r--os/hal/ports/STM32/STM32F7xx/stm32_rcc.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
index cce276e1b..49e9c63f1 100644
--- a/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
+++ b/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h
@@ -639,6 +639,31 @@
* @api
*/
#define rccResetI2C3() rccResetAPB1(RCC_APB1RSTR_I2C3RST)
+
+/**
+ * @brief Enables the I2C4 peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableI2C4(lp) rccEnableAPB1(RCC_APB1ENR_I2C4EN, lp)
+
+/**
+ * @brief Disables the I2C4 peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableI2C4(lp) rccDisableAPB1(RCC_APB1ENR_I2C4EN, lp)
+
+/**
+ * @brief Resets the I2C4 peripheral.
+ *
+ * @api
+ */
+#define rccResetI2C4() rccResetAPB1(RCC_APB1RSTR_I2C4RST)
/** @} */
/**