#include "wdt.h" #include "iwdg.h" void wdt_init(uint32_t tmo) { (void)tmo; #ifndef __debug__ MX_IWDG_Init(); #endif } void wdt_feed(void) { #ifndef __debug__ __HAL_IWDG_RELOAD_COUNTER(&hiwdg); #endif }