issue/ORDISO-17: Add wdg support
Signed-off-by: Andrés Sánchez Pascual <tito97_sp@hotmail.com>
This commit is contained in:
parent
77528fbeb9
commit
533a83155b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user