board/imxrt1050-evk/imxrt_boot.c : Add watchdog initialization
Add imxrt 1050 watchdog initialization in boot code.
There are two watchdogs in imxrt1050, but now we use only one temporarily.(WDOG1)
#include "imxrt_semc_sdram.h"
#endif
+#ifdef CONFIG_WATCHDOG
+#include <tinyara/watchdog.h>
+#include "imxrt_wdog.h"
+#endif
+
#ifdef CONFIG_ANALOG
#include "imxrt_adc.h"
#endif
@@ -260,6 +265,10 @@ void board_initialize(void)
imxrt_spi_initialize();
+#ifdef CONFIG_WATCHDOG
+ imxrt_wdog_initialize(CONFIG_WATCHDOG_DEVPATH, IMXRT_WDOG1);
+#endif
+
#ifdef CONFIG_IMXRT_TIMER_INTERFACE
{
int timer_idx;
