stm32h7: Adds guards around stm32_iocompensation.
This commit is contained in:
parent
a45b8cc17c
commit
2b46a0fdde
@ -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 */
|
||||
|
@ -348,7 +348,9 @@ bool stm32_gpioread(uint32_t pinset);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32H7_SYSCFG_IOCOMPENSATION
|
||||
void stm32_iocompensation(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: stm32_gpiosetevent
|
||||
|
Loading…
Reference in New Issue
Block a user