You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by da...@apache.org on 2021/04/12 22:09:38 UTC
[incubator-nuttx] 02/02: stm32h7: Adds guards around
stm32_iocompensation.
This is an automated email from the ASF dual-hosted git repository.
davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 2b46a0fddede86778378cc930bed6d836fff6a97
Author: Anthony Merlino <an...@vergeaero.com>
AuthorDate: Mon Apr 12 15:14:10 2021 -0400
stm32h7: Adds guards around stm32_iocompensation.
---
arch/arm/src/stm32h7/stm32_gpio.c | 2 ++
arch/arm/src/stm32h7/stm32_gpio.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/arch/arm/src/stm32h7/stm32_gpio.c b/arch/arm/src/stm32h7/stm32_gpio.c
index b1974bc..f2da8fd 100644
--- a/arch/arm/src/stm32h7/stm32_gpio.c
+++ b/arch/arm/src/stm32h7/stm32_gpio.c
@@ -472,6 +472,7 @@ bool stm32_gpioread(uint32_t pinset)
*
****************************************************************************/
+#ifdef CONFIG_STM32H7_SYSCFG_IOCOMPENSATION
void stm32_iocompensation(void)
{
/* Enable I/O Compensation. Writing '1' to the CMPCR power-down bit
@@ -486,5 +487,6 @@ void stm32_iocompensation(void)
{
}
}
+#endif
#endif /* CONFIG_STM32H7_STM32H7X3XX || CONFIG_STM32H7_STM32H7X7XX */
diff --git a/arch/arm/src/stm32h7/stm32_gpio.h b/arch/arm/src/stm32h7/stm32_gpio.h
index 4750f18..eaa39e9 100644
--- a/arch/arm/src/stm32h7/stm32_gpio.h
+++ b/arch/arm/src/stm32h7/stm32_gpio.h
@@ -348,7 +348,9 @@ bool stm32_gpioread(uint32_t pinset);
*
****************************************************************************/
+#ifdef CONFIG_STM32H7_SYSCFG_IOCOMPENSATION
void stm32_iocompensation(void);
+#endif
/****************************************************************************
* Name: stm32_gpiosetevent