23#include "px_stm32cube.h"
49 LL_IWDG_EnableWriteAccess(IWDG);
51 LL_IWDG_SetPrescaler(IWDG, prescaler);
53 LL_IWDG_SetReloadCounter(IWDG, reload);
57 LL_IWDG_SetWindow(IWDG, window);
60 while(!LL_IWDG_IsReady(IWDG)) {;}
63 LL_DBGMCU_APB1_GRP1_FreezePeriph(LL_DBGMCU_APB1_GRP1_IWDG_STOP);
69 LL_IWDG_ReloadCounter(IWDG);
#define PX_LOG_NAME(name)
Macro to declare a log name string once for each file to reduce code size.
#define PX_LOG_ASSERT(expression)
Macro that will test an expression, and block indefinitely if false.
void px_iwdg_init(px_iwdg_prescaler_t prescaler, uint16_t reload, uint16_t window)
Initialise Independent Watchdog.
px_iwdg_prescaler_t
Independent Watchdog clock prescaler (40 kHz LSI clock source)
void px_iwdg_reload_counter(void)
Reload watchdog counter, a.k.a.