issue/ORDISO-17: Add wdg support

Signed-off-by: Andrés Sánchez Pascual <tito97_sp@hotmail.com>
This commit is contained in:
Andrés Sánchez Pascual 2022-10-31 12:30:49 +01:00 committed by Xiang Xiao
parent 77528fbeb9
commit 533a83155b

View File

@ -28,6 +28,8 @@
#include <syslog.h>
#include <errno.h>
#include <arch/board/board.h>
#include <nuttx/fs/fs.h>
#ifdef CONFIG_USBMONITOR
@ -53,6 +55,10 @@
# include "stm32_romfs.h"
#endif
#ifdef CONFIG_STM32H7_IWDG
# include "stm32_wdg.h"
#endif
#include "stm32_gpio.h"
/****************************************************************************
@ -333,5 +339,11 @@ int stm32_bringup(void)
#endif /* HAVE_PROGMEM_CHARDEV */
#endif /* CONFIG_MTD */
#ifdef CONFIG_STM32H7_IWDG
/* Initialize the watchdog timer */
stm32_iwdginitialize("/dev/watchdog0", STM32_LSI_FREQUENCY);
#endif
return OK;
}