diff options
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_wdg.h')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_wdg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_wdg.h b/nuttx/arch/arm/src/stm32/stm32_wdg.h index ef9a0cb51..38af388f9 100644 --- a/nuttx/arch/arm/src/stm32/stm32_wdg.h +++ b/nuttx/arch/arm/src/stm32/stm32_wdg.h @@ -45,6 +45,8 @@ #include "chip.h" #include "chip/stm32_wdg.h" +#ifdef CONFIG_WATCHDOG + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -81,7 +83,9 @@ extern "C" { * ****************************************************************************/ +#ifdef CONFIG_STM32_IWDG EXTERN void stm32_iwdginitialize(FAR const char *devpath, uint32_t lsifreq); +#endif /**************************************************************************** * Name: stm32_wwdginitialize @@ -100,7 +104,9 @@ EXTERN void stm32_iwdginitialize(FAR const char *devpath, uint32_t lsifreq); * ****************************************************************************/ +#ifdef CONFIG_STM32_WWDG EXTERN void stm32_wwdginitialize(FAR const char *devpath); +#endif #undef EXTERN #if defined(__cplusplus) @@ -108,4 +114,5 @@ EXTERN void stm32_wwdginitialize(FAR const char *devpath); #endif #endif /* __ASSEMBLY__ */ +#endif /* CONFIG_WATCHDOG */ #endif /* __ARCH_ARM_SRC_STM32_STM32_WDG_H */ |