stm32h7: Adds guards around stm32_iocompensation.

This commit is contained in:
Anthony Merlino 2021-04-12 15:14:10 -04:00 committed by David Sidrane
parent a45b8cc17c
commit 2b46a0fdde
2 changed files with 4 additions and 0 deletions

View File

@ -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 */

View File

@ -348,7 +348,9 @@ bool stm32_gpioread(uint32_t pinset);
*
****************************************************************************/
#ifdef CONFIG_STM32H7_SYSCFG_IOCOMPENSATION
void stm32_iocompensation(void);
#endif
/****************************************************************************
* Name: stm32_gpiosetevent