/* Initializes the WWDT according to the specified parameters.  */
void ald_wwdt_init(uint32_t load, ald_wwdt_win_t win, type_func_t interrupt)
/* Initializes the WWDT according to the specified parameters.  */
void ald_wwdt_init(uint32_t load, ald_wwdt_win_t win, type_func_t interrupt)
{
    assert_param(IS_WWDT_WIN_TYPE(win));
    assert_param(IS_FUNC_STATE(interrupt));
    ALD_WWDT_UNLOCK();
    WRITE_REG(WWDT->LOAD, load);
    MODIFY_REG(WWDT->CON, WWDT_CON_WWDTWIN_MSK, win << WWDT_CON_WWDTWIN_POSS);
    SET_BIT(WWDT->CON, WWDT_CON_CLKS_MSK);
    SET_BIT(WWDT->CON, WWDT_CON_RSTEN_MSK);
    MODIFY_REG(WWDT->CON, WWDT_CON_IE_MSK, interrupt << WWDT_CON_IE_POS);
    ALD_WWDT_LOCK();
    return;
}