/* Initializes the IWDG according to the specified parameters.  */
void ald_iwdt_init(uint32_t load, type_func_t interrupt)
/* Initializes the IWDG according to the specified parameters.  */
void ald_iwdt_init(uint32_t load, type_func_t interrupt)
{
    assert_param(IS_FUNC_STATE(interrupt));
    ALD_IWDT_UNLOCK();
    WRITE_REG(IWDT->LOAD, load);
    SET_BIT(IWDT->CON, IWDT_CON_CLKS_MSK);
    SET_BIT(IWDT->CON, IWDT_CON_RSTEN_MSK);
    MODIFY_REG(IWDT->CON, IWDT_CON_IE_MSK, interrupt << IWDT_CON_IE_POS);
    ALD_IWDT_LOCK();
    return;
}